Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Bullet optimization
PostPosted: Thu Nov 08, 2012 1:35 am 
Offline

Joined: Sun Apr 15, 2012 3:34 pm
Posts: 8
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?


Top
 Profile  
 
 Post subject: Re: Bullet optimization
PostPosted: Thu Nov 08, 2012 8:04 am 
Offline

Joined: Sat Aug 18, 2012 2:20 am
Posts: 16
Location: Chennai, India
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group