Hi,

He, Yefei wrote:
Hello, Robert,

    I noticed that when using the osgviewer, the draw and swapbuffers
operations take place within the same function call, ViewerBase::renderingTraversals(). Before, with Producer, I can call Producer::Camera::frame(false) to perform draw operation without swapping the buffers, and do swapbuffers later explicitly. This way I can insert my own vertical sync code or some other process between draw and swapbuffers. Is there already something similar provided for doing this with osgviewer? The only sample code that calls swapbuffers
explicitly is osgSlice but that program doesn't use osgviewer, rather
it creates sceneView and graphicsContext directly. I'm hesitant to break up ViewerBase::renderingTraversals() on my own since there are thread sync related code around the loop that calls GraphicsContext::runOperations() and the loop that calls GraphicsContext::swapBuffers(), and I'm worried about any implications
of interrupting it.

I'm not sure, but doesn't swapBuffers just call some other windowing implementation swapbuffersimplementation function? Maybe you can override that?

jp


    Thanks,

    Yefei
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to