Hello, i made a simple example to start practice with box2d.
My code is something like: a rectangle will be in the air, and a circle will be in the air after rectangle, they both will fall due to gravity and when rectangle hits the circle, it splits in 20 circles, and then the normals physics.
Everything is ok, i can compile and test it! But my question is:
If i increase the number of circles from 20 to 200, the program wont run and it will freeze, because the load resources are too many.
How to increase the perfomance? The normal games have alot more resources than 200 circles, how they keep the game with good perfomance?
Thanks in advance.
Apokaliptor
My code is something like: a rectangle will be in the air, and a circle will be in the air after rectangle, they both will fall due to gravity and when rectangle hits the circle, it splits in 20 circles, and then the normals physics.
Everything is ok, i can compile and test it! But my question is:
If i increase the number of circles from 20 to 200, the program wont run and it will freeze, because the load resources are too many.
How to increase the perfomance? The normal games have alot more resources than 200 circles, how they keep the game with good perfomance?
Thanks in advance.
Apokaliptor