Version: Unity 6.2 (6000.2)
Language : English
Optimize Rigidbody component collision detection modes
Optimize collision callbacks

Optimize the physics system for memory usage

You can optimize how the Unity physics system uses memory resources by managing collisionA collision occurs when the physics engine detects that the colliders of two GameObjects make contact or overlap, when at least one has a Rigidbody component and is in motion. More info
See in Glossary
callback allocations and optimizing various physics queries. Efficient memory usage helps reduce garbage collection overhead and ensures smoother gameplay.

Use the guidance in these pages to 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 these optimizations described in the documentation in this section and throughout your development, you must be familiar with these diagnostic tools:

Topic Description
Optimize collision callbacks Reduce memory allocations caused by frequent collision events.
Optimize raycasts and other physics queries Optimize physics query performance and reduce garbage collection overhead by using efficient query versions and batch processing.

Additional resources

Optimize Rigidbody component collision detection modes
Optimize collision callbacks