Search Unity

NetworkAnimator.FixedUpdate - GC.Alloc - Bad Performance - Cause/Ideas?

Discussion in 'Animation' started by ZackNewworldcoders, Mar 30, 2020.

  1. ZackNewworldcoders

    ZackNewworldcoders

    Joined:
    Jul 19, 2016
    Posts:
    20
    Hi Everyone, Thank you in advanced.

    We have added AI and Animated enemys to our network game.

    First off i Know the Old NetworkAnimator Scripts and things are ancient and being replaced.
    Is there a concensis on a replacement? is there somthing much much better that may solve this issue?

    Basicly i have maybe 10-15 animated AI Enemys roaming around and the NetworkAnimator.FixedUpdate() is pulling close to 30% of the CPU, resulting in poor frame rate.

    You can See by the picture attached, that the GC.Alloc is caled 200k+ times,

    Is there some optimization to Animatons? or the skinned animator? or is it just what it is and needs to be ripped out and replaced by somthing newer?

    I cannot find alot of information on what the UNET HLAPI is being replaced, but there is not alot of documentation about what it is being replaced with.

    Any help is appreciated,
     

    Attached Files: