Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: coxy17 on March 12, 2017, 12:49:44 PM

Title: NGUI 40B Garbage per frame
Post by: coxy17 on March 12, 2017, 12:49:44 PM
Hi

I have one NGUI UI Sprite which is taking 40B of garbage every frame (attached screenshot)

I have 3 other buttons which have exactly the same setup and use the same atlas to choose the sprite from, the other UI sprites never create any garbage. Any ideas why this one is generating garbage?

Nick

Title: Re: NGUI 40B Garbage per frame
Post by: ArenMook on March 15, 2017, 01:17:31 PM
Are you running the latest version of NGUI? It should tell you in the profiler that these kinds of allocations are editor-only. I explicitly added profiler entries to clarify this kind of stuff.
Title: Re: NGUI 40B Garbage per frame
Post by: coxy17 on March 19, 2017, 06:42:51 AM
Hi

no i havent got the latest version, im a few versions back, ill try updating to the latest version then, as im new to profiling i haven't managed read the whole documentation of NGUI yet so i wasnt sure what should/shouldn't be showing in the profiler.

thanks

Nick