Hi,
does anybody have numbers/evidence on the performance of the Box2D broadphase in different situations/implementations, and particularly how it scales with the number of bodies (I'd expect a O(n*logn) behaviour)? I read in some forum post that in the ActionScript implementation this seems to be a bottleneck, but other posts suggest that for typical games the broadphase takes only a fraction of total Box2D time. Is this still true for, say, 1000 or 10,000 bodies?
I have an idea (and initial prototype) for a O(n) broadphase (in contrast to the O(n*logn) dynamic tree) that has some nice properties for physics simulations, but I don't want to waste my time implementing it if there's no demand...
If somebody is interested to have this in Box2D I'd be happy to implement it if somebody can help me a bit with the current Box2D broadphase source code.
does anybody have numbers/evidence on the performance of the Box2D broadphase in different situations/implementations, and particularly how it scales with the number of bodies (I'd expect a O(n*logn) behaviour)? I read in some forum post that in the ActionScript implementation this seems to be a bottleneck, but other posts suggest that for typical games the broadphase takes only a fraction of total Box2D time. Is this still true for, say, 1000 or 10,000 bodies?
I have an idea (and initial prototype) for a O(n) broadphase (in contrast to the O(n*logn) dynamic tree) that has some nice properties for physics simulations, but I don't want to waste my time implementing it if there's no demand...
If somebody is interested to have this in Box2D I'd be happy to implement it if somebody can help me a bit with the current Box2D broadphase source code.