PDA

View Full Version : glAreTexturesResident



golem
09-07-2005, 08:34 AM
I render 100 polygons.
A DXT5 2048x1024 mipmapped texture (~3 Mbytes) is mapped on each polygon. The texture is different for each polygon.

My video card has 256 Mb video memory.

glAreTexturesResidency always returns GL_TRUE.
Why ?!!!

Any help appreciated

WinXP SP1 - Nvidia 5950 Ultra - ForceWare 77.77

Korval
09-07-2005, 09:47 AM
A DXT5 2048x1024 mipmapped texture (~3 Mbytes)That's only 2MB. Not 3. DXT5 textures are 1-byte per pixel in size.

golem
09-07-2005, 10:07 AM
Yes, but my textures are mipmapped.
2048x1024x4/3 = 2.7 Mbytes

100 of them + RGB double Z frame buffer > 256 Mb

ZbuffeR
09-07-2005, 10:36 AM
Did you try reducing AGP aperture size ? With even more textures ?

golem
09-07-2005, 11:09 AM
I will try with even more textures tomorrow and will let you know.

Are you saying a texture is considered resident if it is stored in video or AGP memory ?

Korval
09-07-2005, 03:07 PM
Are you saying a texture is considered resident if it is stored in video or AGP memory ?It's up to the driver what it considers "resident". It could be a perfectly correct implementation that calls all textures resident. What ATi cards and nVidia cards consider this concept can easily be two different things.

golem
09-09-2005, 06:12 AM
i have done another test with even more textures and now the performance really drops and glAreTexturesResident notifies texture swapping.

so the API seems to work.