Multi-threaded collisions issue

ProfessionalUser
Posts: 14
Joined: Fri Oct 14, 2011 12:10 am

Multi-threaded collisions issue

Post by ProfessionalUser »

Hi there,

I'm trying to multi-thread the collision detection. I do have the code in place (using pthreads on Linux), based on MultiThreadedDemo. While the results are correct, it doesn't multi-thread unfortunately. I tracked it down to the SpuGatheringCollisionDispatcher not supporting proxies of type GIMPACT_SHAPE_PROXYTYPE and SOFTBODY_SHAPE_PROXYTYPE. It hence dispatches a single threaded PPU fallback. I tried adding these proxy types to the supportsDispatchPairOnSpu() method. There's no error but it fails to detect any collisions when I do that.

Is there any way to multi-thread these shape types?

Any suggestions would be much appreciated.

Regards,
Christian