Search Unity

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:
    6,334
    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

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    @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