RE: Removing FLT files properly

New Message Reply Date view Thread view Subject view Author view

Michael Jones (mtj++at++babar)
Thu, 22 Feb 1996 07:51:56 -0800


: I'm loading a FLT file into performer (1.2) and attaching it to a
: pfNode. After I have finished using it I pfRemove and then successfully
: pfDelete the object from the hierarchy (TRUE is returned). Although the
: object has been removed I'm not actually certain that the memory has
: been deallocated properly (gr_osview -a doesn't change). My question is
: simple :- Does it de-allocate all memory associated with the FLT file
: (Including all textures and materials) and if not is it possible ?

The memory allocator in IRIX (and all other environments I know of) does
not reduce the size of the dynamic allocation arena as memory is freed.
This is because it's expecting that you'll soon be allocating more data
and it should therefore keep it's cache of abandoned allocations ready
for service.

This implies that the memory allocated to your application represents
the high-water mark of dynamic allocation requests. This is not so bad,
though, as virtual memory operation means that any large unused memory
areas will be paged out if the physical RAM becomes needed later.

Michael Jones

Be seeing you, Phone:415.933.1455 Fax:415.965.2658 M/S:8U-590
Michael T. Jones Silicon Graphics, Advanced Systems Division
mtj++at++sgi.com 2011 N. Shoreline Blvd., Mtn. View, CA 94039-7311
                    "Du musst Amboss oder Hammer sein" -- Goethe


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:26 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.