Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Animator vs Animation (Legacy) or sth else

Discussion in 'Animation' started by Arikanu, Nov 8, 2018.

  1. Arikanu

    Arikanu

    Joined:
    Sep 20, 2017
    Posts:
    2
    We are developing a game which has approximately 50 different game objects with animations at the same time on the scene. These objects have 4-5 sprite renderers on them for different parts. If we use animators on these objects we saw that our fps rate drops over time. But if we use legacy animations there is no fps drop or at least unrecognizable. These are the only two things we could come up with. Is there a third option for this or is there a way to minimalize the animator's load? Also if we use legacy animations what kind of problems that we could encounter with?
     
  2. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    3,410
    If you're using the legacy Animation, a much better alternative is SimpleAnimation, which is an official tool made by Unity to replace the legacy animation component.

    The third option is using Playables. It's gives you a very low-level control the animation graph. You could either roll your own system, or use an existing one that lives on top of it. SimpleAnimation is an example of that, there's plenty others.

    If the Animator's performance degrade over time, that's a big problem for many people. You could probably report it as a bug. That being said, check that you have sensible culling settings for the Animators.
     
  3. Arikanu

    Arikanu

    Joined:
    Sep 20, 2017
    Posts:
    2
    Thank you Baste. It seems Playables and SimpleAnimation also uses animator component but it seems like when there isn't any animator controller inside the animator performance degradation over time does not happen.
     
  4. Mecanim-Dev

    Mecanim-Dev

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    1,615
    @Arikanu
    it's the first time I heard a bug like that and it clearly not expected.

    Could you log a bug with your project? we would like to investigate what is going on.

    Thanks