[osg-users] Possible improvement for CullThreadPerCameraDrawThreadPerContext threading model

Jannik Heller scrawl at baseoftrash.de
Tue Jun 9 13:08:22 PDT 2015

Hi again,

I just noticed that what I need to achieve is actually quite simple: the dynamicObjectRenderingCompletedCallback needs to be called from the culling thread, rather than the drawing thread. This would ensure the next frame can commence when the culling phase has ended, rather than commencing when the last camera starts drawing.

Then I read the OSG code again, and noticed that precisely the same idea *is* already in the OSG, but it's commented out. See: https://github.com/openscenegraph/osg/blob/master/src/osgViewer/Renderer.cpp#L641

I don't know why it's commented out, the svn history doesn't give any indication.

I will try enabling that code and if it works, post to osg-submissions.

Read this topic online here:

More information about the osg-users mailing list