HI Csaba,

Are you working on the SVN version of the OSG?  As the new
StatsHandler additions aren't thread safe yet - I've also seen crashes
when bringing up the scene graph statistics, although not any OpenGL
error report.

FYI, the DrawSerialization was added to improve performance when
running multi-threaded, counter-intuitive it may that be... but
driver/hardware limitations on the PC's with 2 graphics cards + 2 (or
4) outputs I've tested all have show better performance when running
with the draw threads serialized.

Robert.

On Mon, Oct 20, 2008 at 2:15 AM, Csaba Halász <[EMAIL PROTECTED]> wrote:
> Hello,
>
> In the osgcamera example I disable draw serialization like this:
>
> Index: osgcamera.cpp
> ===================================================================
> --- osgcamera.cpp       (revision 9034)
> +++ osgcamera.cpp       (working copy)
> @@ -204,6 +204,7 @@
>     while (arguments.read("-g")) {
> viewer.setThreadingModel(osgViewer::Viewer::CullDrawThreadPerContext);
> }
>     while (arguments.read("-d")) {
> viewer.setThreadingModel(osgViewer::Viewer::DrawThreadPerContext); }
>     while (arguments.read("-c")) {
> viewer.setThreadingModel(osgViewer::Viewer::CullThreadPerCameraDrawThreadPerContext);
> }
> +    osg::DisplaySettings::instance()->setSerializeDrawDispatch(false);
>
>     bool limitNumberOfFrames = false;
>     unsigned int maxFrames = 10;
>
> I start it on a dual-core machine with the following command line:
> ./osgcamera -2 --CullDrawThreadPerContext cow.osg (side note: argument
> parsing is wrong, -g or -c does not work)
> It runs, as long as I don't bring up the stats graph, because that
> causes a crash within a couple of seconds either with a segfault or
> with memory corruption message, such as:
> *** glibc detected *** ./osgcamera: malloc(): memory corruption
> (fast): 0x00002aaab81e6c2f ***
> Sometimes, but not always, preceded by a number of "Warning: detected
> OpenGL error 'invalid operation' after RenderBin::draw(,)" messages.
>
> Anybody else see this?
> Are there any known caveats with disabling draw serialization?
>
> --
> Thanks,
> Csaba
> _______________________________________________
> 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

Reply via email to