Search Issue Tracker

Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.

Postponed

Votes

18

Found in

5.0.0f4

Issue ID

682890

Regression

No

Severe lag in animation window in Unity 5.x

Animation Window

-

To reproduce:
1. Open attached project
2. Open TestScene
3. Select any cube in scene
4. Press record in animation
5. Change rotation of cube
6. Observe the lag

Comments (15)

  1. Nikunj-Kareliya

    Nov 11, 2017 15:56

    Even the animation window bugs aren't fixed in version 2017.1.2f1

    Samples value does not change in animation window!

  2. oumur

    Jul 20, 2017 13:02

    still hasnt been fixed in 5.6.2

  3. SpaffHawk-

    Nov 03, 2015 17:02

    Still having issues with this in 5.1.2f1, This has definitely not been resolved. More than about 50 properties added to the animator windows results in huge lag. Please fix.

  4. etekiller

    Aug 25, 2015 14:29

    Same here

  5. robin.theilade

    Jul 28, 2015 07:22

    I've tried 5.1.2p1 and the issue is resolved for me in this version.

  6. robin.theilade

    Jul 27, 2015 20:00

    A patch might be available that I suspect fixes the issue. I have not tried it yet but I might try it out tomorrow.

    The patch is 5.1.2p1
    https://unity3d.com/unity/qa/patch-releases

    The issue that the patch resolves
    http://issuetracker.unity3d.com/issues/editor-animationutility-dot-seteditorcurve-is-several-orders-of-magnitude-slower-in-unity-5-dot-1-than-in-5-dot-0

  7. robin.theilade

    Jul 18, 2015 10:43

    Still an issue in 5.1.2f1

  8. blackstaffgames

    Jul 03, 2015 15:52

    I have animation with rotations, transforms etc with approx 50 curves. Animations play fine both in the Animator Window and in Game. There is however a HUGE lag when changes any of the key frames. Moving or changing the value of keyframes seems to work fine, however once confirmed there is more than 10 seconds of waiting for the curves to settle.

  9. robin.theilade

    Jun 28, 2015 13:14

    As Unity have not yet provided any information on when this lag could be fixed I went ahead and looked into the possibility of making a temporary fix using a script.

    What I found was that I had slightly misread the profiler. Where I thought the issue was with the number of times the OnInvalidateAnimatorController was called the lag was actually inside the very secret and quite external AnimationUtility.Internal_SetEditorCurve method.

    As you can see from these two before and after screenshots, making the invalidation code be ignored does not change the lag.

    https://dl.dropboxusercontent.com/u/9933904/before.png
    https://dl.dropboxusercontent.com/u/9933904/after.png

    Unity I really looking forward to hear from you.

  10. robin.theilade

    Jun 27, 2015 13:23

    I think I'm experiencing the same issue so I would like to supply a little more information.

    It seems like AnimatorController.OnInvalidateAnimatorController is called too many times per update (in my case 3200+ times) which results in a single update takes 3000+ ms.

    Here is a video of the issue:
    https://dl.dropboxusercontent.com/u/9933904/bandicam%202015-06-26%2009-02-45-955.avi

    I'm using Unity 5.1.0f3

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.