I am building a game for android that requires me to use a physics engine (I am using Phys2D). Before creating the physics world I get a frame rate of more than 60fps. Once I create the world and start it in the game loop I get a sharp decrease in the frame rate (drops to ~20). I think that the sharp decrease is due to the fact that the Garbage collector is working like crazy after the world is created.
Is there a way around it? is there some other way I can create the physics world without having the Garbage collector working all the time?