Performance: Animation clips
MEDIUM IMPACT
Animation clips impact the rendering performance by controlling how many animations are processed and how often the GPU and CPU update the animated objects.
Animator.CrossFade("Run", 0.2f); Animator.CrossFade("Jump", 0.3f); // smooth blending between clips
Animator.Play("Walk"); Animator.Play("Run"); Animator.Play("Jump"); // called every frame without blending
| Pattern | CPU Load | GPU Load | Frame Stability | Verdict |
|---|---|---|---|---|
| Multiple clips played abruptly | High (many recalculations) | Medium | Low (frame drops) | [X] Bad |
| Smoothly blended clips | Medium (optimized recalculations) | Medium | High (stable frames) | [OK] Good |