<div dir="ltr">Hi Robert, <div><br></div><div>The codes looks like this: </div><div>```</div><div><div>root = GroupOfSwitch(); </div><div>viewer->setSceneData(root);</div><div>while (!viewer->done()) {</div><div>    root->removeChild(0); // Remove the point cloud </div><div>    pc = sensor.Capture();  // Get the point cloud</div><div>    geo = CreateGeometryNode(pc);</div><div>    root->addChild(geo); // Add the pointcloud </div><div>    viewer->frame();</div><div>}</div></div><div>```</div><div><br></div><div>Thanks, </div><div><br></div><div>Hui</div><div><br>On Monday, May 25, 2020 at 6:33:59 PM UTC+8, OpenSceneGraph Users wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div>Hi??<br></div><div><br></div><div>There is nothing we can advice as you say nothing how you are managing your scene graph.  All we know is you are doing something with a point dataset and memory keeps growing.</div><div><br></div><div>You need to provide some source of how to you are setting up your scene graphs and how you are updating it.  Once we know what you are doing we'll be able recommend  a better way to do it without memory growth.<br></div><div><br></div><div>Robert.<br></div></div>
</blockquote></div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/fb930ca9-ea99-401a-93eb-3d0d823670a6%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/fb930ca9-ea99-401a-93eb-3d0d823670a6%40googlegroups.com</a>.<br />