Folks, I'm rendering a scene with 3 different objects instanced 500 times each.
When I run it in osgviewer is achieves 1000 hz, when I run it in a simple osgViewer::Viewer based app it runs at 1000 hz, when I run it in a more complex osgViewer::Viewer based app it runs at 30 hz. All the additional time is in the draw process. I used bugle to capture the opengl output (bugle is fantastic!) from the 3 apps and the first two outputs were practically identical - the 3 objects graphics state are setup once, followed by 500 glLoadMatrix and glCallList calls. 3 x (graphics setup, 500 x (matrix, calllist)) 3 graphics state changes The more complex app is completely different, the objects are drawn in arbitrary order with their graphics state updated every time. 3 x (500 x (graphics, matrix, calllist)) 1500 graphics state changes All apps call osgUtil::Optimizer::optimize on the scene. I'm digging through the complex app to see if there's a "disable_rendering_optimizations" call..... Does anyone know what would cause this type of behavior? Thanks, Brian This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

