Author Topic: Help with UIPanel's late update [Solved]  (Read 4694 times)

Turandours

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Help with UIPanel's late update [Solved]
« on: January 09, 2014, 06:45:12 PM »
I'm working on an interactive book using NGUI, functionally it works well. The problem is when I take the build from my PC to a tablet I'm only getting about 5 frames a second. After looking at the profiler in unity it seemed like Late update in my UIPanels were eating up about 97% of my CPU. I attempted to modify a child class as to not disrupt panels that aren't photos or text on a page, but my attempts have just caused every other panel to never draw or display any image or text.
I see that the UIPanel class has a list to check to see if it is the first one and update all the rest, but that doesn't seem to be happening. Is there some layout that I'm missing to get that to work?

Thanks in advance.
« Last Edit: January 09, 2014, 07:36:14 PM by Turandours »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Help with UIPanel's late update
« Reply #1 on: January 09, 2014, 06:47:00 PM »
What version of NGUI? 3.0.8 had a lot of performance optimizations that significantly reduced time spent in LateUpdate.

Turandours

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Help with UIPanel's late update
« Reply #2 on: January 09, 2014, 07:02:39 PM »
is there an easy way to tell? I've deleted the example folder, and I downloaded it off the unity asset store so I don't have the compressed file. I started the project in mid August and haven't updated since then.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Help with UIPanel's late update
« Reply #3 on: January 09, 2014, 07:07:16 PM »
Then you most definitely don't have the latest. August is pre-3.0.

Turandours

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Help with UIPanel's late update
« Reply #4 on: January 09, 2014, 07:08:02 PM »
I will try an update then, and see if that fixes this.

Turandours

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Help with UIPanel's late update
« Reply #5 on: January 09, 2014, 07:35:22 PM »
Yep, thanks, the update fixed the CPU usage, thanks for letting me know that was changed.