Box2d step function giving different result on different devces, help...

I have made a physics based game using Processing and Eclipse that is using Box2d. My game is working fine on PC and my Samsung s3 but the physics simulation is too slow on LG G2 (although G2 is running at 60fps while S3 at 45-50fps). I am stepping Box2d as: box2d.step((float) (1.0 / frameRate * 1.4), (int) frameRate / 8, (int) frameRate / 8); Kindly tell me what can I do to run the simulation smoothly on every device?

Answers

Sign In or Register to comment.