Yes, you can write a NodeVisitor to convert DrawArrays to DrawElements. I wrote one just recently and saw a huge performance boost on NVIDIA's OS X drivers for the GF8800.
The display list default is probably historical. OSG's Drawables predate buffer objects. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Harold Comere Sent: Tuesday, April 14, 2009 5:38 AM To: [email protected] Subject: [osg-users] Drawable optimization Hi all, I am currently working on a kind of drawable optimizer. My goal is to make primitive set groups and have only one drawable per group. ( grouping vertexs linked by any face of the group ) The effect will be to avoid to have separated objects in a same drawable. In same way, i want to merge small drawables containing only few faces but are in the same object. I have a node visitor wich will do this for all drawable in each geode. When i look at primitive set types generated by any importer, i notice that sometimes it is drawArrays, and other times drawElements. So my question is if there is any osg optimisation wich choose between drawArrays or drawElements alone ? drawElements is usually faster than drawArray calls, so i wonder if i can convert everything in drawElements type without lose fps .. Another question, osg doesnt seem to use VBOs by default, is there any reason ? thank you for your attention. Regards, Harold ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10191#10191 _______________________________________________ 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

