2D Toolkit Forum
2D Toolkit => Support => Topic started by: Bohdon on February 07, 2012, 05:44:32 pm
-
I've been getting a lot of crashes when dealing with a good amount of large sprite collections. Watching my system's memory, it seems like every time I pack a new sprite collection atlas, or even just select a sprite collection in the hierarchy the textures it's using are thrown into memory, but they never seem to leave. I've got around 15 collections, each with a few 2048 atlases that they generate. The source textures (that are packed) are all very large as well. If I mess around with about 5 or 6 of these collections actively my memory starts hitting its wall (Unity at ~2.5gb). I'm wondering if there's something I can do to get collections to release their textures without restarting Unity (my current workaround).
Thanks!
-
A few questions -
What version of Unity are you running on?
Can you check if the memory usage goes down significantly when you clcik on file > new scene
I believe this isn't a memory leak, but rather how Unity does things handles loaded objects. Its fixable to some extent though.
Look forward to your response