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. robin.theilade

    Jul 18, 2015 10:43

    Still an issue in 5.1.2f1

  2. 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.

  3. 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.

  4. 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

  5. cloud9-imac

    Jun 23, 2015 03:55

    I also encountered this in animation window in Unity 5.1.1f1.

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.