Ogre and threads

Problems building or running the engine, queries about how to use features etc.
slapin
Bronze Sponsor
Bronze Sponsor
Posts: 388
Joined: Fri May 23, 2025 5:04 pm
x 28

Ogre and threads

Post by slapin »

Hi, all!

I need to generate meshes procedurally and use threads for that to make whole thing a bit faster.
I use Ogre's task system and it works fine. The problem occurs when I have to set mesh's hardware buffers.
This takes a few ms in my case and it can't be done in thread. Is there any way to make it faster so to keep as little as possible in main thread for this?
I understand that buffer copying and uploading is unavoidable but I'd like to get data logic out of this. Any ideas?