Game Optimizing Techniques. How to get to 60 FPS consistently!

Just figured this one out. Not exactly graphical but still improved my performance by leaps and bounds.

I scaled my physics down and it made a huge difference, much better performance.

Default is 30 i set it to 100 so 100 px = 1 m

you can use

1
physics.setScale(100)
Did this after reading this,
http://www.box2d.org/forum/viewtopic.php?f=8&t=2740

and watching this
http://www.kerp.net/box2d/displaylesson.php?chapter=1&lesson=8

Hope this helps you. [import]uid: 8192 topic_id: 2726 reply_id: 13743[/import]

I am going to revive this thread.

I am experience some strage frame rate differences if I have a static bakground or not in my game.

The texture is 640 x 200 and doesn’t move at all. The stuff in from barely moves. Yet I notice a drop of about 10 FPS on the latest ipod touch when I make it visible.

Any tips on these from Ansca? It’s coming from a sprite.

[import]uid: 8192 topic_id: 2726 reply_id: 30212[/import]