Slow AxisSweep3 startup
Posted: Fri Aug 18, 2006 7:59 pm
I found that the first and possibly second calls to PerformDiscreteCollisionDetection with AxisSweep3 are very slow if I have ca. > 150-200 collision objects. The time for the first calls seems to explode with the number of objects. I get e.g. times of 7 seconds, while later calls need only 8 milliseconds. The time is apparently burned in the Sort... routines in AxisSweep3.
I built my own broadphase using Opcode, and this doesn't show such a behaviour. But Opcodes Sweep and Prune is generally much faster, I am getting average times of 0.3 milliseconds vs. 8 milliseconds with AxisSweep3.
Perhaps there is some room for improvement.
I built my own broadphase using Opcode, and this doesn't show such a behaviour. But Opcodes Sweep and Prune is generally much faster, I am getting average times of 0.3 milliseconds vs. 8 milliseconds with AxisSweep3.
Perhaps there is some room for improvement.