2D Toolkit Forum

2D Toolkit => Support => Topic started by: Clet_ on December 02, 2013, 10:39:12 pm

Title: PNG atlases lead to memory leak
Post by: Clet_ on December 02, 2013, 10:39:12 pm
When building atlases in PNG instead of Unity textures, I've realized that they are not unloaded between each application's start.
The RAM get filled at each press of play, eventually leading to Unity's own "Blue screen of death".
This error does not occur when building atlases in Unity Texture.

I've noticed this leak while outputting materials name and InstanceId from Resources.FindObjectsOfTypeAll(typeof(Material)).

I hope it will help you to locate the bug.

Title: Re: PNG atlases lead to memory leak
Post by: Dreamkind on December 03, 2013, 06:30:32 pm
Edit: Sorry our issue appears to be something separate. We have still noticed this leak in the editor though.
Title: Re: PNG atlases lead to memory leak
Post by: unikronsoftware on December 03, 2013, 11:11:25 pm
The PNGs leaking in the editor is a known issue. We're working on a solution for this but its taking a bit longer than expected. FWIW, It should work fine at runtime.