Texture Memory

New Message Reply Date view Thread view Subject view Author view

Yves Martel (martel++at++signifi.com)
Thu, 19 Mar 1998 14:18:24 -0500


Hi !

I have a problem with my texture memory on an Ocatane MXI...

Displaying a simple scene with 5 textures, 2 of these keep
bumping each other out of the texture memory. Now I could
understand this if they where HUGE textures (don't I have
4 Megs of texture with an MXI ?) but the where puny little
128x128 16 bits images...

I am using the texture->idle() to free-up unused textures
and texture->isLoaded() to keep track of who is in memory.

Earlier on in my program, I loaded a few big textures
and then, "idled" them when I didn't need them anymore.
Indeed "isLoaded" tells me that they are no longer loaded,
but just to be sure, I replaced these big textures by smaller
one and ... the problem disapered! Now I'm baffled!

How can I get rid of these textures when I don't need them ?
(I've put a call-back in the draw process of every node using
textures, so I am sure they are not called anymore, and yet
they take up space ?)

How is the texture memory managed ? I more or less expected
something like normal memory (page aging or something like
that...). If this whas the case, even if "idle" didn't work,
the small textures should take the place of the old unused
ones. An yet, the small textures keep bumping each other out...

_______________________________________________________
Yves Martel Signifi.gVR
mailto:Martel++at++signifi.com 417 St-pierre suite 208
Tel: (514) 288-1453 Montreal, QC, CANADA
Fax: (514) 288-4112 H2Y 2M4
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


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:57:03 PDT

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