[info-performer] Clear textures

Date view Thread view Subject view Author view

From: ciuti elisa (eciuti++at++yahoo.fr)
Date: 02/09/2005 01:19:10


Hi,

I would like to know how to really clear texture
memory.
I have 2 models with large amount of textures. Each
uses about 90% of the memory.
I want to use them one after the other.
In order to not exceed the texture memory available I
do:
        - load model1
        - download textures of the 1st model
        - destroy textures of the 1st model
        - unload model1
        - load model2
        - download textures of the 2nd model
        - destroy textures of the 2nd model
        - unload model2

//download
pfuDownloadTexList(texList_model1, PFUTEX_APPLY);

//destroy
foreach textures in texList_model1 {
        texture->idle();
        texture->deleteGLHandle();
}

However, after destroying the textures of the 1st
model, the textures seems to be still in memory; and
then when I try to draw the 2nd model, the impact on
the performance is hight (because, I think, the
texture requirement is greater than the texture memory
available ).

If I use the same model in the 2 cases (load/unload
textures of model and then load/unload textures of the
same model), I haven't problems and it works well.

Last point, I have tried to use the pfuTextureManager
but it crashes when I use
"addTextureList" (Segmentation fault). So I have just
read what pfuTextureManager does and re-use what I
need.

Any info would be appreciated.

Thanks,

Elisa

        

        
                
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Feb 09 2005 - 01:19:34 PST