www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: gamenewer on March 24, 2015, 03:16:22 pm

Title: Free Texture memory
Post by: gamenewer on March 24, 2015, 03:16:22 pm
Hello Egon,  How to free the  texture memory?  I use  removeAndUnload method, but I'm not sure if this clean up the texture used memory. 
another question, I have some common texture and some  scene texture , I only free the scene texture and not free the common texture,  I use preWarm  method for every new scene start,  If this  cost more  memory for common texture ?

Thanks !
Title: Re: Free Texture memory
Post by: EgonOlsen on March 24, 2015, 05:50:37 pm
removeAndUnload is fine. And no, doing a preWarm on an already uploaded texture does no harm.
Title: Re: Free Texture memory
Post by: gamenewer on March 25, 2015, 04:22:09 am
thans ! :)