Search code examples
androidunity3d-2dtoolsunity-game-engine

Unity 5 2d physics lags


I created a project(2D) with the last version of Unity. I added a tiny circle and attached a physics CircleCollider2D and RigidBody2D. When I launch the game I see little freezes when the ball is falling down. On Android I have the same. The profiler shows huge renderer load. What to do with this poor performance?


Solution

  • Change Rigidbody2d->interpolate->none to interpolate.

    Quote from Rigidbody2d.interpolation documentation:

    Interpolation is used to estimate the position of the Rigidbody between physics updates. It can be useful to switch this on when the graphics update is much more frequent than the physics update because the object can appear to move along in jerky "hops" rather than having smooth motion.