Improving the performance of Unity's animation system
In Unity, the implementation of animation may cause excessive memory usage and CPU overhead. In this section, we will talk about how to avoid performance problems caused by animation. Specifically, we'll first introduce the Unity Profiler tool and how to use it to view animation-related performance metrics, and then we'll look at how to reduce the CPU overhead and memory footprint of animations.
The Unity Profiler
First, we should learn how to use tools to view and locate performance bottlenecks rather than relying on subjective guesses and experience. Of course, it's not that experience is not important, but using tools will help you locate problems more quickly.
The Unity Editor provides developers with a Profiler tool, which we can use to view the detailed memory usage of the game and real-time CPU overhead.
In order to view performance data about the CPU overhead of animation, we should follow...