Page 1 of 1

Multithreading contactTest()

Posted: Fri Feb 28, 2020 7:11 pm
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.

Re: Multithreading contactTest()

Posted: Sat Apr 11, 2020 8:18 pm
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