Author Topic: UI Panel Late Update Garbage Spike  (Read 2013 times)

coxy17

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 23
    • View Profile
UI Panel Late Update Garbage Spike
« 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

coxy17

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 23
    • View Profile
Re: UI Panel Late Update Garbage Spike
« Reply #1 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI Panel Late Update Garbage Spike
« Reply #2 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

coxy17

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 23
    • View Profile
Re: UI Panel Late Update Garbage Spike
« Reply #3 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.