Multi-threading with bullet

Mako_energy02
Posts: 171
Joined: Sun Jan 17, 2010 4:47 am

Multi-threading with bullet

Post by Mako_energy02 »

I've recently started looking into multi-threading my engine and different ways it can be done. Specifically I've learned about Task/Job based multi-threading using a scheduler.

I have yet to take a look at multi-threading in Bullet as it is now, so I apologize if what I am about to ask has already been done. I was wondering how difficult it would be to modify Bullet so the work done for the simulation could be divided up into tasks that could be run by a Task Scheduler(custom or by something like what TBB has). I'm also wondering what that would mean should I want to run Bullet on GPU's through OpenCL. Currently I'm guessing the methods are mutually exclusive, but again I still know very little on the subject.

If anyone can help me shed some light on the subject so I can explore my options more in depth, I would greatly appreciate it.
XMight
Posts: 32
Joined: Tue Feb 22, 2011 1:00 pm

Re: Multi-threading with bullet

Post by XMight »

Hi,
I don't know much about such things, but what I really discovered once is that Bullet 3.0 will include some parallel processing, I don't remember the source though.