Author Topic: UIAtlas's memory  (Read 3862 times)

shokinhan

  • Guest
UIAtlas's memory
« on: June 23, 2013, 09:04:35 AM »
I load uiatlas from server , and save in the memory.
But it will occupy a lot of memory. How to do for saving memory?
Because I must use the atlas dynamic, so put the atlas in memory!



ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIAtlas's memory
« Reply #1 on: June 23, 2013, 10:23:04 AM »
How to do for saving memory? I'm not sure what you mean. Once you load something, it will remain in memory until you unload it yourself. And before you unload an atlas (and more importantly -- its texture) you have to make sure that nothing is referencing it.

shokinhan

  • Guest
Re: UIAtlas's memory
« Reply #2 on: June 24, 2013, 01:10:43 AM »
Why the NGUI demo don't find the UIAtlas at memory?


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIAtlas's memory
« Reply #3 on: June 24, 2013, 10:40:46 AM »
Until Unity loads some atlas, there is nothing available in memory. An atlas is loaded into memory when it's used, or when you select it in inspector.