Discuss issues specific the Java port of Box2D
4 posts • Page 1 of 1
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?
Is the value of 'framerate' a constant number, the same on each device?
no its not constant. Its constantly changing
How about making it constant?
Who is online
Users browsing this forum: No registered users and 2 guests