Hi, The fact the OSG frame rate drops when other threads are hogging the machine is not something the OSG can do much about itself, its largely an issue of OS scheduling of threads, if it does it well then you shouldn't see threads hanging completely, if it does it poorly then you'll see what you are getting - some threads totally dominating the machine.
The best you can do as app develop is to set priorities on the various threads such that the non graphics threads have lower priority, and set set processor affinity if you multiple cores. The other thing you can do is try out an OS that can do multi-threading properly. Robert. On Nov 16, 2007 2:21 PM, <[EMAIL PROTECTED]> wrote: > Hi everyone. We are building a system that uses OSG and several additional > "job" threads (on windows XP sp2.) Whenever one of these side jobs runs, the > frame rate on OSG drops, very often to zero. Since some of these side jobs > may take several seconds, this is obviously a problem. The behavior is worst > when one of the side threads is building an OSG object (and, therefore, I > assume is competing with the rendering thread for OSG locks), but the problem > is still severe even on threads that don't touch OSG. For example, we have a > thread that makes calls into an XML parser, which, of course, doesn't even > know about OSG; but, whenever we are in the xml parser, OSG comes to a > complete standstill. Is this an issue others have run into with OSG? I have > noticed that OSG has several threading configuration options - is it just a > matter of picking the right threading option for OSG? My guess is that this > is just an OS issue and has nothing to do with OSG, > but I'm asking here in hopes that someone might say "Oh, yeah, you just > gotta set this flag over here", or something along those lines. Thanks. > _______________________________________________ > 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

