How to make the dynamic accuracy of physics dependent on the speed of the object?

Hello, I would like to know how to implement a different number of physics calls for different objects. This is necessary to optimize the physics of a huge number of objects. When an object is stationary, then its physics is calculated, say, 5 times per second, if it moves at a speed of 1 meter per second, then 5 + 5 = 10 times physics per second, if 2 meters per second , then + 10 and so on, and so that one object’s physics could be calculated 100 times per second and the other 5. If anyone has any suggestions on how to implement this in any of the game engines, then please write.

what do you mean by a physics call? you can disable and reenable the colliders if that is what you are looking for, which will prevent trigger and collision detection. You could also set myObjectsRigidBody.isKinematic to true, but physics forces would stop acting on them (in this case you may want a script that manages the objects to maintain their inertia while “un-physicsed” and repopulate the inertia when “re-physicsed”). Again though, not sure what aspect of physics you’re looking to limit, and im skeptical of how much these solutions would actually optimize at the bottom line.

Unity already implements this optimization for you with the “sleeping” feature.

fixed update updates physics by rearranging all objects simultaneously with a frequency of 0.02 by default, but I need to make sure that each physical object has its own physics update depending on its speed at the moment.