Hello Guest

Author Topic: About collection Memory  (Read 5277 times)

zynbasil

  • Newbie
  • *
  • Posts: 5
    • View Profile
About collection Memory
« on: January 02, 2014, 02:34:35 am »
I test collection in ios.

Make a collection with many pic.  (create about 14 atlas)

Create sprite just use one pic in this collection, then I open profiler check the memory, i found all atlas load in memory.   

This case can be solved? or  what can I do ?


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: About collection Memory
« Reply #1 on: January 02, 2014, 05:30:39 pm »
That how memory management in Unity works. Only use multi atlas spanning for long animations where you need all of them resident in memory. Otherwise create separate atlases explicitly.

zynbasil

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: About collection Memory
« Reply #2 on: January 03, 2014, 02:57:15 am »
How can I remove  null used atlas when game running ? 

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: About collection Memory
« Reply #3 on: January 03, 2014, 12:37:34 pm »
Destroy the sprites using the sprite collection, then call Resources.UnloadUnusedAssets.

zynbasil

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: About collection Memory
« Reply #4 on: January 03, 2014, 03:02:56 pm »
Can I Auto create many collection with pic name?

case:

pic:

a_1.jpg  a_2.jpg .....
b_1.jpg  b_2.jpg .....

create collection:

a_collection
b_collection

May be tk2d next update?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile

zynbasil

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: About collection Memory
« Reply #6 on: January 07, 2014, 07:22:14 am »
excellent!!! :-* :-* :-* :-*