How to optimize a box2d simulation in action game?
- by nathan
I'm working on an action game and i use box2d for physics. The game use a tiled map.
I have different types of body:
Static ones used for tiles
Dynamic ones for player and enemies
Actually i tested my game with ~150 bodies and i have a 60fps constantly on my computer but not on my mobile (android). The FPS drop as the number of body increase.
…