[osg-users] I created 10000 cylinder, osg run very slow

LUO Jianguo luojianguo at tsinghua.org.cn
Mon Jul 20 18:22:18 PDT 2015


Hi,

I need to use cylinder to simulate the “ladder”.  So there are many cylinder to create. I new a osg::Geode , and then use it to new 10000 osg::MatrixTransform, all these osg::MatrixTransform were added to one group. 

But the program runs very very slow.
In fact I create the same scene using opengl, the program runs quickly.

How can I upgrade my program? 
thanks.

Thank you!

Cheers,
LUO

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=64386#64386




Attachments: 
http://forum.openscenegraph.org//files/mfc_osg_124.cpp





More information about the osg-users mailing list