Hi Allen, > I have been trying to track down some memory leaks in my application > today and I noticed that the _changedStore and _createdStore vectors in > OSG::ChangeList seem to grow without bound in all the current sample > applications and tutorials. It looks like there is no where in the > system that ever calls clear (or commitChangesAndClear or ...) to > actually apply and clear the change lists. > > I know I don't understand the change list code very well, but this seems > like a "bad thing". > > Is this something that the user just needs to remember to do once per frame? > > -Allen
adding a Thread::getCurrentChangeList()->clear() in the glut display callback should fix this but that's not very nice. Perhaps we should add this to the SimpleSceneManager redraw method? Andreas > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Opensg-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/opensg-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
