Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: vip_prizrak_3 on June 20, 2013, 08:55:33 AM

Title: Problem with low FPS
Post by: vip_prizrak_3 on June 20, 2013, 08:55:33 AM
Hi everyone! I have some problem with FPS on UI ;(
When in UI closed all panels i've FPS 28-30 (look at img_1).

(http://s019.radikal.ru/i608/1306/c8/cc87e8c51e4e.jpg)

When i open new panel on full screen(look at img_2) then FPS falls to 20.

(http://s004.radikal.ru/i205/1306/78/e6b89c8a202f.jpg)

When i open new panel again then FPS falls  more ;( (look at img_3)

(http://s55.radikal.ru/i147/1306/f5/0b1e86006417.jpg)

What can I do to raise the FPS? 
My device: ACER ICONIA A500
Title: Re: Problem with low FPS
Post by: ArenMook on June 20, 2013, 01:27:19 PM
You have a full-screen panel covering your entire screen. You should disable your main camera (3D camera drawing your tank) when that happens.
Title: Re: Problem with low FPS
Post by: vip_prizrak_3 on June 21, 2013, 02:53:44 AM
But what can be done when the panel does not cover the whole screen and you can not turn off the main camera?
(http://s56.radikal.ru/i152/1306/13/08dea779985a.jpg)
Title: Re: Problem with low FPS
Post by: ArenMook on June 21, 2013, 02:55:36 AM
Version 2.6.3 has some major performance improvements for Unity 4.1+ users. Other than that -- it's all about how you optimize your UI. Making use of "widgets are static" property within panels is a great way to boost performance.
Title: Re: Problem with low FPS
Post by: vip_prizrak_3 on June 21, 2013, 03:35:24 AM
In Asset Store is currently available only version 2.6.2.
Title: Re: Problem with low FPS
Post by: Cripple on June 21, 2013, 03:57:11 AM
Did you profile your game with unity profiler ?
Is this scene running on a particular phone or tablet ?

You can take a screenshot of your scene when you open a panel, disable the camera and show that screen in the background.
Title: Re: Problem with low FPS
Post by: vip_prizrak_3 on June 21, 2013, 04:09:59 AM
When the panel is closed in the profiler UIPanel.LAteUpdate takes 5% CPU, when opened - 20% CPU and FPS falls to 20.
This does not happen on top devices, but on older devices the performance is very falls (for example ACER ICONIA A500).
Title: Re: Problem with low FPS
Post by: ArenMook on June 21, 2013, 05:20:39 AM
Yeah just wait for 2.6.3. It should be out shortly.