Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Whether it improve performance when a mask some bone by use layers.

Discussion in 'Animation' started by watsonsong, Mar 18, 2018.

  1. watsonsong

    watsonsong

    Joined:
    May 13, 2015
    Posts:
    555
    I build a complex skeleton for our player, with a lot of hairs and trails bones. There bones will be used for different appearances of the player. But each appearance will not use the whole skeleton bones, but just a subset of them.

    I don't want the animation to calculate the bones not necessary by current player appearance. Could I mask the other bones out of the animation. Will it help for the animation performance?
     
  2. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
    The best way to confirm/deny any performance improvement is to profile the two setups. It may help to mask 30+ bones, or it might not since the process of masking is not 'free'.
    I'm skeptical it will help with anim performance - but I'd be interested in your test results.