Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: coxy17 on February 23, 2017, 08:31:12 AM

Title: UI Panel Late Update Garbage Spike
Post by: coxy17 on February 23, 2017, 08:31:12 AM
Hi

Attached is the profiler screenshot of UI panel update for the first frame of my scene. Is this normal? or should it 0 garbage?

Nick
Title: Re: UI Panel Late Update Garbage Spike
Post by: coxy17 on February 23, 2017, 09:12:23 AM
It wont me edit the post but im using

- atlas for all sprites
- bitmap font
- buttons with anchors on them.
- 3 draw calls in total

also i can see UIrect.start() in the profiler (attached) and this creates garbage for my buttons too.

Nick
Title: Re: UI Panel Late Update Garbage Spike
Post by: ArenMook on February 24, 2017, 08:31:24 AM
When the UI first starts up it has to allocate buffers, so of course there will be some memory allocations. Otherwise it wouldn't work. :P
Title: Re: UI Panel Late Update Garbage Spike
Post by: coxy17 on February 24, 2017, 08:36:28 AM
ok thanks for this, i was just checking if all was ok and i can understand that it needs to do this.