Search Unity

Avatar Mask Improve performance?

Discussion in 'Animation' started by suzukiXSX, Oct 23, 2018.

  1. suzukiXSX

    suzukiXSX

    Joined:
    Mar 29, 2015
    Posts:
    1
    Hello guys,

    So I check the Unity Avatar Mask Document. It said it can tend to reduce the CPU overhead of the animation.
    But I run my Test project on Android. It just reduces a little bit CPU Time.

    Here is my test case.
    I have a character with Face and Body Animation.
    And these two animations will not control the same bones.
    1. 1 Animators, 2 Layers which separates Face and Body, and I use Avatar Mask to mask the whole Face.
    playing the face and body animation at the same time.
    2. 1 Animators, 2 Layers, Face Layer weight = 0
    3. 2 Animators control Face and Body separately, and I disable the Face animator.
    These 3 cases do the same thing which is only playing body animation.

    So the best performance I get is No.3. And the worst is Avatar Mask
    (I get the data from profile UpdateAnimationBegin + UpdateAnimationEnd)
    In my assumption, I thought using Avatar Mask can make animator ignore those mask bone.
    But in fact, using Avatar Mask only affect a little bit on the CPU performance.

    Is my test case wrong?
    Or should I just use 2 Animator control face and body separately?

    Thanks, Suzu
     
    DeathUman likes this.
  2. DeathUman

    DeathUman

    Joined:
    Dec 17, 2012
    Posts:
    3
    I'd like to know the answers to these questions as well.