Mason D. Menninger (mason++at++praxis.jsc.nasa.gov)
Mon, 19 Apr 1999 15:18:32 -0500 (CDT)
Yes, the tiles contain large textures (512 x 512).
I took a look at pfuTextureManager and the example
"texman.C." Are there any equivalent C functions?
My program is not C++. I would agree that it is
likely that the textures are not being properly
removed from memory.
The files I load in are in OpenFlight format. I am
using their loader (R15.4g) to read in the tiles.
Each tile is only being used once in the scene so
I don't think I have any referencing issues. I've
tried monitoring the reference count. Then I realized
that I'm not sure when pfBufferRemoveChild() takes
effect so that number may not prove much.
I tried out:
amallopt(M_MXFAST, some-value-bigger-than-28, pfGetSharedArena());
and played with a few values. No noticeable effect so far.
I'll keep at it....
-Mason
mason++at++praxis.jsc.nasa.gov
> From zhz++at++dandan.engr.sgi.com Sat Apr 17 03:48 CDT 1999
> Date: Sat, 17 Apr 1999 01:47:43 -0700
> From: zhz++at++dandan.engr.sgi.com (Jenny Zhao)
> To: "Mason D. Menninger" <mason++at++praxis.jsc.nasa.gov>
> Subject: Re: The infamous dbase paging memory leak
> Cc: info-performer++at++dandan.engr.sgi.com
>
> Hi, Mason,
>
> Does your tiles contain textures?
> You have to delete pfTextures in a special way.
> Please look at pfuTextureManager.C
> for details.
> There is an example of using pfuTextureManager
> in pguide/libpfutil/texman.C
>
> What format is your data in? flt? pfb? or?
>
> A lot of the suggestions you see on info-performer
> deals with memory fragmentation, not memory leaks.
> Here is another useful tip found by Angus:
> amallopt(M_MXFAST, some-value-bigger-than-28, pfGetSharedArena());
> Play with the value to see if
> it helps.
>
> Make sure the tiles you want to delete are not
> being reference by other parts of the scene graph. Otherwise
> the reference count on them do not go to zero
> and AsyncDelete can never delete them.
>
> Hope my 2 cents can help.
>
> Jenny Zhao zhz++at++engr.sgi.com 650 933-5091 IRIS Performer Manager
>
This archive was generated by hypermail 2.0b2 on Mon Apr 19 1999 - 13:18:49 PDT