branchrust_reboot/main/horse_optimscancel
12 Commits over 0 Days - Infinitycph!
Fixed SM_DisableHorseProceduralMotion OnStateEnter allocs...
Fixed SM_DisableHorseProceduralMotion OnStateExit allocs
Fixed server hip movement causing the horse to never sleep (regression from
167107
Fixed dismounted horses keeping their head turned and hip braced
Fixed pooling bugs messing with horse animations
We can now get rid of the duped ridersync in the LateUpdate now that we don't control the spine pos from the IK
Chops another 0.42ms per frame for 50 moving horses
Removed LegsAnimator on the server, we now use the existing ground normal raycasts to calculate the hip position
Hip pos calulcation on the server for 50 moving horses:
2.2ms -> 0.09ms
LegsAnimator batched raycast commands
50 moving horses: server legs 4.5 ms down to 2.1 ms per frame in the editor (still too much)
LegsAnimator optim: legs that haven't moved reuse their last ground hit instead of raycasting every frame, with a fresh raycast at least every 30 frames
Reduced the legs animator culling distance if the horse is not ridden. Force fade out when stationnary
Skip animator updates once settled, ScaleBySpeed stops rewriting its scale while standing still
Disable the 4 RotationConstraint on horses when not wearing the LNY armour