Search Issue Tracker
By Design
Votes
0
Found in
5.5.0f3
Issue ID
866731
Regression
No
Disabling Animator layers does not improve performance
To reproduce:
1. Open attached project "AnimationLayerPerformanceRepro.zip"
2. Open "Profiler" window.
3. Open and Play "main" scene and open stats in Game view.
4. Press "Use Animator with layers", now each "peep_happybot" will have Animator with "Base Layer" and 11 other empty Layers. (~40 FPS)
5. Press "Use Animator with layers (weight = 0), now only the "Base Layer" will be active, other 11 layers have "weight = 0" and are not playing. (~40 FPS)
6. Press "Use Animator without layers", now there's only "Base Layer" in the Animator. (~72 FPS)
Expected result: When the weight of the layer is zero, the layer update will be skipped. Performance should be closer to the Animator without layers.
Actual result: Setting layer's weight to 0 has almost no impact (0 fps or just a few more frames increase).
Reproducible with: 5.3.6p7, 5.4.2f1, 5.5.0f3, 5.6.0b3
Note that the layers contain empty states. The performance difference between the "disabled layers" and "no layers" case increases further if the states in the disabled layers aren't empty.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- After converting a Built-in project to URP render texture related errors are spammed that can lead to Game view being rendered on top of Scene view
- UI Builder slider value lags and stutters when sliding/modifying certain property values
- "Reset UI Builder Layout" functionality inconsistently changes Canva Size when "Match Game View" is enabled/disabled
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
Add comment