Hey guys. I am making a 2d physics platformer with box2d in c++ opengl. My level/world is pretty big i would say and when i finally loaded my whole level today after days and days of planning, i noticed that it started lagging. At first I thought it was tile grounds but it wasnt. So I researched in the forum and read that you cant have alot of overlapping bodies going on because of cpu usage. So this is where my lag comes in when I have boxes and crates stacked on top of each other throughout the level.
Is there a way to go around this problem?
Is there a solution for this other than reducing the boxes on my level? Or is this the only way.
Any suggestions?
I dont want to reduce it but if there is no other way than I guess I have no choice.
Is there a way to go around this problem?
Is there a solution for this other than reducing the boxes on my level? Or is this the only way.
Any suggestions?
I dont want to reduce it but if there is no other way than I guess I have no choice.