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

Tutorial - Bake Your Animations to Greatly Improve Performance...For Some Use Cases

Discussion in 'Community Learning & Teaching' started by ChrisKurhan, Nov 8, 2022.

  1. ChrisKurhan

    ChrisKurhan

    Joined:
    Dec 28, 2015
    Posts:
    266


    Hey all! Happy #TutorialTuesday!

    Improve the performance of your game by baking animations, completely removing the SkinnedMeshRenderer from your scene, boosting FPS!

    The concept here is attacking a similar problem as Animation Instancing, but is still handled by the CPU and does not require any "shader magic" to manipulate the vertices.
    It also does not reduce the Draw Calls, as Animation Instancing will do. Instead, this approaches the problem by resolving the "CPU Skinning" taking up a lot of CPU time on the main Unity thread to improve FPS.
    As with most performance optimizations, this may not be applicable in all cases. In the full video I also discuss when you would and would not consider this optimization technique for your game!

    As always, all code from this video is available on GitHub!