- Home /
Physics2D.Step is using too much resources (Profiler)
I have a game like Jetpack Joyride for mobile phone, testing on Android, and whenever i press on screen my player moves, and whenever my character starts to play Step functions uses a lot of resource - it is around %51 - and a lot of lag occurs, but whenever my character stops it immediately drops and fps is back to normal again, I have two colliders on my character and both of them are circle collider.
Under Physics2D.Step there is Physics2D.BeginContact with usage of %0.6 but has 662 calls - seems a lot to me don't know why - where character moves
Is it normal, if not what may be causing the problem?
Any help or idea is greatly appreciated
Comment
Your answer
