Threading and OpenCL Bullet

mspong
Posts: 6
Joined: Tue May 05, 2009 11:25 pm

Threading and OpenCL Bullet

Post by mspong »

My engine runs the physics in a separate thread than the OpenGL rendering. Should I reconsider this in light of the coming OpenCL support for Bullet? Will there be issues caused by trying to use the GPU from multiple threads simultaneously?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Threading and OpenCL Bullet

Post by Erwin Coumans »

Good point. We are still doing R&D on the OpenCL work, but we need to make sure that synchronization is provided in case graphics and physics run in separate threads.
Of course you need some spare GPU cycles for OpenCL, unless you want to run OpenCL on the CPU.

Thanks,
Erwin