I try to understand how to unload texture.
How references are counted?
For example, I try to create collection that have GO with GUI component. GUI component has one atlas 2048x2048.
After start the app I’m waiting 5 seconds, then delete GO with GUI component. But memory usage didn’t change.
Then I thought that this is classic GC and it will free memory when something want to use this memory. I try to create few collection factory (every collection have it’s atlas). Memory use is increase, but first atlas did not removed.
I have next questions:
- Where is the counter of atlas? It depend on Component, GO or Collection?
- Is it possible to unload texture without unloading collection? (by removing GO, or some other way)
Would be great to have more information about texture management.