Currently the time for adding objects grows with each object I add. The times here are taken from the debug version of my current program on a iPhone (ms for adding 128 btBoxShapes to a world):
78.89799
119.02400
146.56900
177.49400
210.33800
296.58401
Seems that the time is wasted on updating the broad phase data structures for every object.
Is there a possibility to start a bulk-add?
Something like:
Code: Select all
dynamicWorld.startAdding();
for(int i=0; i<1000; i++)
{
// add your objects here
}
dynamicWorld.stopAdding();