Hi Antoine, osg::ShapeDrawable was only ever intended for very light usage, quick looks on the shapes, rather than an efficient and flexible basis for rendering geometry. I now regret every writing ShapeDrawable as I have to recommend so often not to use it.
osg::Geometry is not quite so straight forward to use as you'll need to compute the geometry data yourself but it'll be far more flexible and efficient. Cheers, Robert. On Mon, Jan 10, 2011 at 12:15 PM, Antoine Rennuit <[email protected]> wrote: > Hiya Ulrich, > > You are right, the slow down came from building the display lists twice. > > I am a bit surprised to see a slow down when rebuilding 30 display lists for > osg::Spheres though (that is 15 spheres built twice per update loop). This > does not seem to be computationally heavy, does it? Could it be that > osg::Spheres are so highly tesselated by default that they becomes costly to > update? > > Cheers, > Antoine > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=35472#35472 > > > > > > _______________________________________________ > 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

