Hi Riccardo, On 1/17/07, Riccardo Corsi <[EMAIL PROTECTED]> wrote:
Fine, so to sum it up, is it correct that: Fullscreen means 1 single window, if I want stereo AND fullscreen I'm forced to run single threaded. If I want multithread I must open 2 windows (RenderSurface or upcoming osgViewer::GraphicsWindow) and render each camera in one window.
I'd have to say yes this is correct, but with a qualification... If you have one graphics card, it by nature will be single threaded, so it'll generally best to drive OpenGL data to it from a single graphics window with a single thread as well. What you would gain is multi-threading of cull, but this might be offset by the driving data to the graphics card inefficiently. Right now osgViewer has a single thread per GraphicsWindow, so if you have one window you have one thread, if you have two windows you have two threads. These threads do both the cull and draw right now. My plan is decouple the cull and draw so that they can work in their own threads - so we will end up with a thread per window + a thread per camera (for the cameras cull traversal - its draw will be handled by the windows threads.) I'll discuss more about threading in osgViewer later this week. Robert. _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/