From e2d4581443793ac41082194a37b55d613eb88277 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 7 Feb 2007 21:16:22 +0000 Subject: [PATCH] Disabled the toggling to ThreadModel CullThreadPerCameraDrawThreadPerContext --- applications/osgviewer/osgviewer.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/applications/osgviewer/osgviewer.cpp b/applications/osgviewer/osgviewer.cpp index 4e2b92304..70770e831 100644 --- a/applications/osgviewer/osgviewer.cpp +++ b/applications/osgviewer/osgviewer.cpp @@ -46,6 +46,25 @@ public: { if (ea.getKey()=='m') { +#if 1 + switch(viewer->getThreadingModel()) + { + case(osgViewer::Viewer::SingleThreaded): + viewer->setThreadingModel(osgViewer::Viewer::CullDrawThreadPerContext); + osg::notify(osg::NOTICE)<<"Threading model 'CullDrawThreadPerContext' selected."<setThreadingModel(osgViewer::Viewer::DrawThreadPerContext); + osg::notify(osg::NOTICE)<<"Threading model 'DrawThreadPerContext' selected."<setThreadingModel(osgViewer::Viewer::SingleThreaded); + osg::notify(osg::NOTICE)<<"Threading model 'SingleThreaded' selected."<getThreadingModel()) { case(osgViewer::Viewer::SingleThreaded): @@ -69,6 +88,7 @@ public: osg::notify(osg::NOTICE)<<"Threading model 'AutomaticSelection' selected."<