Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Turandours on January 09, 2014, 06:45:12 PM

Title: Help with UIPanel's late update [Solved]
Post by: Turandours 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.
Title: Re: Help with UIPanel's late update
Post by: ArenMook 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.
Title: Re: Help with UIPanel's late update
Post by: Turandours 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.
Title: Re: Help with UIPanel's late update
Post by: ArenMook on January 09, 2014, 07:07:16 PM
Then you most definitely don't have the latest. August is pre-3.0.
Title: Re: Help with UIPanel's late update
Post by: Turandours on January 09, 2014, 07:08:02 PM
I will try an update then, and see if that fixes this.
Title: Re: Help with UIPanel's late update
Post by: Turandours on January 09, 2014, 07:35:22 PM
Yep, thanks, the update fixed the CPU usage, thanks for letting me know that was changed.