Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: edover on February 25, 2017, 07:29:28 PM

Title: Atlas Editor - Uses all RAM, freezes computer
Post by: edover on February 25, 2017, 07:29:28 PM
I installed NGUI today and am I'm using the Atlas Maker to make a brand new atlas with one texture (512x512 128Kb) inside of it using default settings.  Doing so causes my machine to freeze up randomly then lock up completely. After trying twice and resorting to completely rebooting twice, I popped open the task manager and saw that my RAM usage went from 280MB while running Unity to 'Sky's the Limit' when I hit 'Update/Add' on the Atlas Maker. Eventually it caps out and causes my machine to hang.  Attaching a screen snip just for proof/fun.

Anyone have any idea what the deal is?
Title: Re: Atlas Editor - Uses all RAM, freezes computer
Post by: ArenMook on February 26, 2017, 11:37:49 AM
Make sure your quality settings don't force half-size textures or anything silly like that. You can also try to use a different packer (your checkbox is set to Unity, you can try a custom one). Also note that a 512x512 texture is a bit on the large side to be added to an atlas. You can keep it as a separate texture, especially considering that its dimensions are a power of two already. Atlases are ideal for packing lots of small elements together in order to reduce draw calls.