I have a world that has a large number of static objects I want to interact with. Im wondering what the best practices are.
Its a BIG fast moving tile based engine, tiles 400 x 400 pixels wide map 10000 x 10000 all up
- Ive found that rectangles are less processor hungry then circles.
- Whats the best way to deal with 2000 static objects.. I tried a tiled method of instantiating and destroying depending on what tiles were viewed, but this seemed
slower then just having them all created at the start. I am wondering what sort of optimisations box2d has naturally for this sort of thing.... or if there is a smart way of turning them on and off....
Any advice appreciated and gratefully received.
Mark
Its a BIG fast moving tile based engine, tiles 400 x 400 pixels wide map 10000 x 10000 all up
- Ive found that rectangles are less processor hungry then circles.
- Whats the best way to deal with 2000 static objects.. I tried a tiled method of instantiating and destroying depending on what tiles were viewed, but this seemed
slower then just having them all created at the start. I am wondering what sort of optimisations box2d has naturally for this sort of thing.... or if there is a smart way of turning them on and off....
Any advice appreciated and gratefully received.
Mark