Author Topic: NGUI 40B Garbage per frame  (Read 1672 times)

coxy17

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 23
    • View Profile
NGUI 40B Garbage per frame
« 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


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 40B Garbage per frame
« Reply #1 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.

coxy17

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 23
    • View Profile
Re: NGUI 40B Garbage per frame
« Reply #2 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