HiYanling, On 7/21/06, Yanling Liu <[EMAIL PROTECTED]> wrote:
Hi Robert, I have added flushDeletedGLObjects as this:m_sceneView->PreRenderProcess(); m_sceneView->RenderScene(); double time = 1.0; m_sceneView->flushDeletedGLObjects(time); m_pGLCanvas->swapBuffers(); Still, black screen with keep growing memory consumption.
Well if that isn't successfully then it'd suggest that display lists arn't being put in for deletion. Are you leaking geometry? Without more code infront of me I can't really say what is wrong, and its beyond the call of duty to debug all end user code so you'll need to start step through with the debugger to find out more in detail. General things though, display lists rarely hit 40Mb, only for huge osg::Geometry objects will you have this. But if you are creating geometry on the fly and updating the values don't use display lists, it simply isn't efficient performance wise. It shouldn't cause a memory issue though. And as general rule, the OSG doesn't memory leak, you have to abuse it to get it to memory leak. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
