Multithreading Particles with Geometry Instancing,
Members - Reputation: 737
Posted 13 December 2012 - 04:57 PM
Will I benefit from multithreading particles with geometry instancing in D3D9? I know it has the multi-threaded flag... but it's known to cause problems.
Moderators - Reputation: 17882
Posted 13 December 2012 - 05:06 PM
- lock buffers on main thread
- on multiple threads, simulate particles and write updated vertex data to the pointer from the locked buffer
- unlock on main thread and issue draw call
This may give you some gains if you're spending a lot of time simulating the particles and writing the data into the vertex buffer.