Hi Stephan,
On 2/14/07, Stephan Maximilian Huber <[EMAIL PROTECTED]> wrote:
Robert Osfield schrieb:
> Could you try:
>
> osgviewer file.osg --SingleThreaded
>
> Then see if the stats fails.
Here are the results for osgviewer, pressing 2 x s, press 1 x h:
osgviewer cow.osg --SingleThreaded OK
osgviewer cow.osg --CullDrawThreadPerContext OK
osgviewer cow.osg --CullThreadPerCameraDrawThreadPerContext CRASH
osgviewer cow.osg --DrawThreadPerContext CRASH
I have now added a Mutex to osg::Stats and use of it in the various
get/set methods.
I have tested it out by running with DrawThreadPerContext and
CullThreadPerCameraDrawThreadPerContext and holding down the 's' key
and so far so good, no crashes. I'm not noticing a performance hit
with this extra mutex, you only pay it when collect stats too so I
think safety is certainly better than what little gain one might have
on performance.
Could you do a cvs update and see if the above now work?
Cheers,
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/