Ah, seems you're right.. I just tweaked it to load an oBJ I've been using for testing (company logo graphic) and now I'm up at 200fps in each of my 2 viewers, much better.

Can I get a quick run-down on what exactly kicks it off the "fast path"? Or is this documented on the Wiki somewhere?

September 10, 2012 11:26 PM


  Yes. Virtually everything about that geometry will kick you off the fast path.

  Unless your ultimate application purpose involves rendering teapots, you need to try using a better example model. cow.osg or cessna.osg I think are better samples.

--
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Digital Imaging • GIS • GPS • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android

September 10, 2012 11:04 PM
hrm.. Well, I'm using the osgteapot example code ( http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/examples/osgteapot/osgteapot.cpp ), that i modified to use basic front/back emissive materials instead of textures.

--
Randall Hand
http://www.vizworld.com



September 10, 2012 10:32 PM
It's better, but still slower than I'ld expect. Hovers now around 100-110fps.


  Something in the back of my mind makes me think the Teapot is using a really poor geometry representation that forces OSG onto old, slow OpenGL code paths. I didn't actually see the vertices or polygons in the OSG file above, so I can't say for sure.
 

--
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Digital Imaging • GIS • GPS • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android

September 10, 2012 10:29 PM
It's better, but still slower than I'ld expect. Hovers now around 100-110fps.
--
Randall Hand
http://www.vizworld.com



September 10, 2012 10:10 PM
On Mon, Sep 10, 2012 at 8:35 PM, Randall Hand <randall.h...@gmail.com> wrote:
I'm experimenting with OpenScenegraph for a new project, and I've build a simple application that opens 2 viewer windows, and places 3 teapots in them (using the teapot object from the osgteapot example), translating them into different positions.  My resulting scene graph (saved as an osg) looks like this:
 
Pretty basic.. However, I'm only getting about 60-70fps (in each of my 2 viewers).  I've already set the vsync=false in my Stateset for the viewer (if I run with _nothing_ in my Scene Graph I get over 1000fps).  Is this typical performance? I really expected to still be getting 100+fps easy with such trivial geometry.


  I didn't really dissect your graph structure, but it would seem like it could perform better.

  How does it perform with only one window, especially one window with two teapots in it? It could be that some adverse effect of how you have set up your two windows is hurting your performance.
 

--
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Digital Imaging • GIS • GPS • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

--
Randall Hand


http://www.yeraze.com

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to