Author Topic: Free Texture memory  (Read 678 times)

Offline gamenewer

  • long
  • ***
  • Posts: 171
    • View Profile
Free Texture memory
« 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 !

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: Free Texture memory
« Reply #1 on: March 24, 2015, 05:50:37 pm »
removeAndUnload is fine. And no, doing a preWarm on an already uploaded texture does no harm.

Offline gamenewer

  • long
  • ***
  • Posts: 171
    • View Profile
Re: Free Texture memory
« Reply #2 on: March 25, 2015, 04:22:09 am »
thans ! :)