Physics performance optimizations

Now that we have an understanding of the most significant features of the Unity Physics Engine, we can cover some optimization techniques to improve our game's physics performance.

Scene setup

Firstly, there are a number of best practices we can apply to our Scenes to improve consistency of the physics simulation. Note that these techniques will not necessarily improve CPU or memory usage, but they will result in a reduced likelihood of instability from the Physics Engine.

Scaling

We should try to keep all physics object scales in the world as close to 1:1:1 as we possibly can. This means that for the default gravity value of -9.81, the unit scale of the world is implied to be 1 meter per unit, since the force of ...

Get Unity 5 Game Optimization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.