Profiler: Evaluate AnimationClip

So in the profiler under Animator.Update → FK & Statemachine Job scheduling → Evaluate AnimationClip? i get a pretty high performance. Now i do have a lot of NPC’s, but just want to know when this is called. Is it everytime i change between animations? Attached an image.

Kindest regards, BFGames.

2296559--154517--AnimationProfiler.png

Bump

I’m experiencing the same issue right now, and I would be glad to know how to optimize this!
I am using a humanoid setup, and tried changing/not changing parameters at runtime, but it didn’t improved anything. It looks like it comes from the animator itself. Does anybody have a suggestion?

This is called at every frame, it the animation curve evaluation, for each animation curve in your animation clip we do evaluate the curve at the current clip time.

How many curve your animation clip do have? you can see it in the inspector when you select the animation clip.

Total: 127, Constants 69, Dense 58, Stream 0. Mixamo animations.

This is a standard clip for a humanoid rig.

how many humanoid character you do have in your scene? and also what are the spec of your pc?

Got around 400 NPC’s in the scene (rather small scene), but we use cull completely.
We got around 100-150 on screen at once at most.

But actually i handled it by using my own region culling system that disables the animator at a certain distance and or in certain connected regions. Took performance to 50% of what is was before. So can live with that for now. :slight_smile: