Hi J-S, I bet that historically osgshadow had SingleThreading initialized for the reason Robert mentioned. But notice that it was also possible to change it by command arguments.
Then osgViewer got the argument parser and started to initilize threading model. But this functionality was being overwirtten by explicit SingleThreading setting left from earlier times. And ThreadingHandler was developed later thats why it was not added to osgshadow example. Sure, I might be wrong. Robert can tell us about passed development milestones or svn history could shed some light on this problem.. But I doubt that continuing this disucssion would be productive. Whatever was the flow of changes we both agree we should try to make it work with ThreadingHandler and other ThreadingModes. Cheers, Wojtek ----- Original Message ----- From: "Jean-Sébastien Guay" <[EMAIL PROTECTED]> To: "OpenSceneGraph Users" <[email protected]> Sent: Thursday, March 20, 2008 2:22 PM Subject: Re: [osg-users] osgShadow example and gerneral question > Hi Wojtek, > >> I believe that setting threading model to SingleThreaded was not >> deliberate >> but was done as a default. Consecutive lines of code check arguments and >> switch to other Threading modes accordingly. > > Well, it sets the threading model to SingleThreaded and does not add a > ThreadingHandler... So once the example is started, you're stuck in the > threading mode that was set (SingleThreaded by default) and cannot > change it at runtime. > > I think that's the more telling element. > > IMHO, all examples should have the standard event handlers (Threading > mode, stateset manipulator, stats, window size/fullscreen, etc.). Most > do, but not all. (I can help with that soon) And if an example doesn't > play well with an event handler, the problem should be fixed instead of > just omitting the handler... > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay [EMAIL PROTECTED] > http://www.cm-labs.com/ > http://whitestar02.webhop.org/ > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

