Great. Yeas, that is what I was thinking as well. the sun direction set dirties the scene so the init is called over and over again. I am not into the details of osgscene too much, but for me it looks like an overhead to recreate just about everything on sun position change.
Thanks !!! Nick http://www.linkedin.com/in/tnick Sent from Istanbul, 34, Turkey On Sun, Jan 24, 2010 at 5:05 PM, Jean-Sébastien Guay < [email protected]> wrote: > Hi Nick, > > > I nailed this down to >> >> ocean->getOceanScene()->setSunDirection(sunpos); >> >> calling this each frame increases the mem usage >> > > I'll check this out on Monday at work. At first glance setSunDirection() > shouldn't cause leaks but perhaps it's the dirty each frame that it causes > that leaks. Perhaps a missing ref_ptr or a circular ref_ptr. > > I'll get back to you on Monday. > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay [email protected] > http://www.cm-labs.com/ > http://whitestar02.webhop.org/ > _______________________________________________ > 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

