this is the fourth incarnation of my multi-threading support for Bullet and it is by far the best one

First things first: Patch Download (19KiB) - for Bullet 2.66
This patch will add PosixThreadSupport.[cpp|h] to Extras/BulletMultithreaded/. I modified the MultiThreadedDemo to use the Posix Thread support. So far I have seen no errors or problems

To verify it works, I made some benchmarks on my 2.8Ghz Core 2 Duo with the MultiThreadedDemo (click for bigger image):

These numbers are just meant to give an estimation, there are some details missing for a "real" benchmark

The work dispatcher seems to have a (very) high overhead. When I add the parallel solver, frame time increases ca. 20ms.
Code's license is Public Domain, however it would be nice if you add my name as author and leave the name in the code =)
Erwin, did you know, that BulletMultiThreaded does not compile under AMD64 Linux?


So the patch works (and is tested) only on x86.
Best regards,
Enrico