Re: [osg-users] Minimizing OSG app window frees memory

2009-04-02 Thread Paul Martz
I don't believe this has anything to do with OSG. This looks like typical MS
Windows memory management. Are you saying you don't see this same kind of
behavior in non-OSG apps? I certainly have.

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Miro
Janosik
Sent: Thursday, April 02, 2009 3:18 AM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Minimizing OSG app window frees memory

Hi, I was wondering why my OSG application frees lots of memory when I
minimize its window, and why that memory is not freed if I don't. I noticed
that when I create some objects in the scene by loading flt model files and
remove them from scene afterwards that not all memory is freed (when looking
at application's allocated memory through Task Manager ).
If I minimize application's window afterwards then application's allocated
memory decreses to level as it was before creation of objects.

Any ideas what could be causing this and if this freeing of memory can be
executed by some function call ? I would be handy for me, to keep my
allocated memory low.

My application is using osgViewer::Viewer and dynamic terrain paging, OSG
2.8.0 rc3, Windows XP SP2, Visual Studio 2008.

I'm newbie at OSG's mailing list so I hope this was not discussed already.
I've been looking through mailing archives and I could not find answer to
this question.



___
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] Minimizing OSG app window frees memory

2009-04-02 Thread Miro Janosik
Hi, I was wondering why my OSG application frees lots of memory when I
minimize its window, and why that memory is not freed if I don't. I noticed
that when I create some objects in the scene by loading flt model files and
remove them from scene afterwards that not all memory is freed (when looking
at application's allocated memory through Task Manager ).
If I minimize application's window afterwards then application's allocated
memory decreses to level as it was before creation of objects.

Any ideas what could be causing this and if this freeing of memory can be
executed by some function call ? I would be handy for me, to keep my
allocated memory low.

My application is using osgViewer::Viewer and dynamic terrain paging, OSG
2.8.0 rc3, Windows XP SP2, Visual Studio 2008.

I'm newbie at OSG's mailing list so I hope this was not discussed already.
I've been looking through mailing archives and I could not find answer to
this question.



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org