Website powered by

Visual Physics-Sleeping methods

Testing methods to speed up physics for a large number of physics bodies in Unity3D. Red blocks are asleep and not calculating physics every frame, green blocks are awake.

Unity's PhysX originally uses the "Island" sleep method which performs poorly when there are several physics bodies. My custom Individual sleep script is less accurate but performs much better in large quantities.

Physics "Island" sleep method

Physics "Island" sleep method

Physics "individual" sleep method

Physics "individual" sleep method