Multithreading contactTest()

Post Reply
nickak2003
Posts: 17
Joined: Thu Mar 04, 2010 10:35 pm

Multithreading contactTest()

Post by nickak2003 »

So id like to have a bunch of btghostobjects and it to me it would make sense to multithread contactTest with the ghost object. I think i just need to add mutexes to various places, anyone have any suggestions? Right now, if i try to call contact test in parallel, it breaks pretty hard.
nickak2003
Posts: 17
Joined: Thu Mar 04, 2010 10:35 pm

Re: Multithreading contactTest()

Post by nickak2003 »

So to get contact test to multithread, it's pretty easy. All you need is to add one mutex to collisiondispatcher and then lock it in new/release/dispatch.

infinite performance gains
Post Reply