Agents animation runs High

Shanmukh

Member
hi. i am using 15 agents, i removed character Ik script for agents, and setup animator cull Update Transform, and detect horizontal collisions unchecked. when i gat 1 visible skinned mesh then also animators run high on profiler. ultimatecharacterlocomation.OnAnimatorMove() is get 51 instances for 15 agents.

UCC Profiler 1.JPG
how to stop animators.update when not visible.
 
got it. if i change fixed update to update for the agents, its running good.
ultimatecharacterlocomation.OnAnimatorMove() gets 18 instances and 5ms.
but still more optimisation for agents. how to do that.
 
Take a look at the section titled "Performance" at the bottom of this page, in particular the links to GPU Instancer and Mesh Animator:

 
if i disable Detect Vertical Collisions toggle, agent falling through ground.
and i add empty animator to agents, it doesn't change profiler. if i disable animator then its work.
if i disable animator agent doesn't use weapon. is it possible to without animator agent can use weapon ?.
just i want health damage, without animator.

if i disable animator for agents then kinematic object manager runs heavy.
 
Last edited:
All AI Agents need an animator but you should create your own animator controller that doesn't contain the weapon states.
 
Top