branchrust_reboot/main/skinned_mesh_bakercancel
5 Commits over 0 Days - ∞cph!
Added SkinnedMeshBaker to player model, switches to a non skinned mesh at 10m (obviously too low but good for a/b testing)
Added graphics.bakedSkinnedMeshes and graphics.RefreshAllAnimatorLods convars for testing
Seems to save about 0.6ms/frame in an isolated bandit town
AnimatorLOD now has a BakedSkinnedMesh field, if assigned the skinned mesh will be baked and the LOD will switch to that renderer when the animator is disabled
Remove all Linq usage in PlayerModel (not really related to this task but should help garbage)
Spawning new player_model prefab with baker component for NPC's
Experimenting with a skinned mesh baker to swap out static NPC's with static meshes at a distance
Setup baker component, currently spits out a series of static meshes for the given lod level
Very WIP