Page 1 of 1

Bullet optimization

Posted: Thu Nov 08, 2012 1:35 am
by PgrAm
I have recently determined that a large performance bottleneck in my game is physics. Right now I run bullet without any parallelization. I tried using btParallelConstraintSolver but weird things happened such as my character not slowing down and objects not making contact. Is there more work required for multithreaded physics than just changing the solver? Does anyone have any general advice for speeding up my simulation?

Re: Bullet optimization

Posted: Thu Nov 08, 2012 8:04 am
by codetiger
Making Bullet Multi-Threaded gives a big performance boost in most cases. In our case it was twice the performance.

To add multi-threaded support, just change the solver, and dispatcher to parallel alternatives. See multi-thread demo in the examples folder. The project file is not created so you wont see it in the solution file.