<div dir="ltr"><div><div><div><div><div>Hi Luo,<br><br></div>You've created a scene graph is one of the least efficient ways possible, well done :-)<br><br></div>Basically you're scene graph is overloaded with MatrixTransform, which will create a big CPU bottleneck.<br><br></div>There are number of ways to improve things, how best to go about it will depend upon what you are actually trying to achieve and the hardware constraints you have. The only info you provide is that you are trying to simulate a ladder, but 10,000 rungs on a ladder is quite an extraordinary amount so I can't believe this is a normal ladder, leaving me wonder what you actually mean.<br><br></div>Could you explain what you are trying to achieve, providing a screenshot would be helpful.<br><br></div>Robert.<br><div><div><div><br><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 21 July 2015 at 02:22, LUO Jianguo <span dir="ltr"><<a href="mailto:luojianguo@tsinghua.org.cn" target="_blank">luojianguo@tsinghua.org.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
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.<br>
<br>
But the program runs very very slow.<br>
In fact I create the same scene using opengl, the program runs quickly.<br>
<br>
How can I upgrade my program?<br>
thanks.<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
LUO<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=64386#64386" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=64386#64386</a><br>
<br>
<br>
<br>
<br>
Attachments:<br>
<a href="http://forum.openscenegraph.org//files/mfc_osg_124.cpp" rel="noreferrer" target="_blank">http://forum.openscenegraph.org//files/mfc_osg_124.cpp</a><br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br></div>