[osg-users] Draw thread per opengl context instead of per GraphicsContext

Ben Meijering bmeijering at tree-c.nl
Fri Nov 10 01:41:41 PST 2017


Hi Robert,

Thank you for your response.

I don't want to share the context or GL objects in multiple threads.
Basically what I want is 1 draw thread for the 1 opengl context if have and 1 cull thread.

I want this 1 opengl context to be shared by multiple windows.
However, for each window that I create, a new draw thread is created, even when they share the same opengl context.

So I was hoping that it was possible to have 1 draw thread per opengl context, instead of 1 draw thread per window (GraphicsContext).

The opengl context would only be used by one thread, so thread safety shouldn't be an issue right?

Cheers,

Ben

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72353#72353







More information about the osg-users mailing list