30000 is a trivially small amount, so it does sound like optimizing is in order. Unfortunately, you've said nothing about the organization of your scene graph, so it's difficult to make concrete suggestions. Other ways to provide the group with more info would be to post an .osg file or a screenshot showing your statistics display.
As a wild guess, if you have a single Drawable per line segment, this might explain your poor performance. Try storing multiple lines together within a Drawable, grouping them together by their spatial proximity. 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 hemanth korrapati Sent: Sunday, December 28, 2008 10:11 AM To: OpenSceneGraph Users Subject: [osg-users] drawing huge number of lines Hi, I am trying to plot around 30000 lines. While drawing these lines the system becomes very slow and ultimately stops. Can we optimize this somehow ? Thanks Hemanth _______________________________________________ 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

