Hi Chris, The delete and flush mechanism was in place in 1.2, just not a complete and coherent, it should be sufficient though.
Robert. On Fri, Apr 11, 2008 at 3:42 PM, Dorosky, Christopher G < [EMAIL PROTECTED]> wrote: > Thanks Robert. > That is really, really slick. I had to do this myself on Performer and it > really stunk. > > For the contract I am working on, I may be stuck with OSG 1.2. > > Is there something different I have to do under the old regime? I imagine > you don't remember back that far, but if you could point me to the > appropriate files to check I'd appreciate it. > > Thanks, > Chris > > ------------------------------ > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Robert Osfield > *Sent:* Friday, April 11, 2008 2:26 AM > *To:* OpenSceneGraph Users > *Subject:* Re: [osg-users] Cleaning up old textures. > > Hi Chris, > > When a scene graph is deleted all the OpenGL objects are placed in buffers > awaiting deletion of reuse. They can't be deleted right away as you can > only delete OpenGL objects from the graphics thread associated with a > graphics context - not only might you be calling delete for a thread which > doesn't have a context current, you might actually have several contexts to > deal with... this is why the OSG has these buffers. The graphics threads > call a flush on these buffers on each new frame, and when a graphis context > is delete (in OSG-2.x) the GL objects buffers are automatically flushed. > > Robert. > > On Thu, Apr 10, 2008 at 10:12 PM, Dorosky, Christopher G < > [EMAIL PROTECTED]> wrote: > > > > > If I have an IVE model, with texture, and I delete the model, what > > happens to the texture memory the texture was using? > > > > Is it freed? > > > > What about if the model is on a switch, and I turn the switch off? > > > > I am assuming that I have to do something manually to deal with this, > > either way. > > I seem to remember an osg::deleteOldTextureObjects() or something like > > that. > > > > > > Thanks, > > > > Chris > > _______________________________________________ > > osg-users mailing list > > osg-users@lists.openscenegraph.org > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org