Optimize physics system performance in the Unity Editor.
Use the guidance in these pages to optimize the physics system so you can maintain your target frame rate and ensure smooth, responsive gameplay. The instructions in these pages address issues identified by Unity Editor diagnostic tools. Before you apply the optimizations described in the documentation in this section and throughout your development, you must be familiar with these diagnostic tools:
Physics.FixedUpdate and Physics.Simulate, and in its detailed breakdowns of physics phases such as broad phase and narrow phase processing. To open the Profiler window, go to Window > Analysis > Profiler.RaycastHit arrays or frequent collision data creation. You can use this information to reduce your garbage collection overhead.| Topic | Description |
|---|---|
| Optimize the physics system for CPU usage | Optimize Unity’s physics system’s CPU usage by adjusting simulation frequency, managing colliders, and configuring Rigidbody components. |
| Optimize the physics system for memory usage | Optimize Unity’s physics system’s memory usage by controlling collision callbacks and optimizing physics queries. |
| Understand physics performance issues | Understand performance issues related to physics in your application. |