- Home /
Dropping frame rate in NGUI UIDraggable Panel.
Hi,
I have been using unity for about 6 months but I am new to NGUI. I am facing an issue with low frame rate while scrolling (UIDraggable Panel) 150 buttons which has an atlas of 2048x2048 pixels RGBA 32 bit.
The frame rate drops to 10 fps only while scrolling and 30 fps otherwise.
Please advice me how to solve this problem.
Thank you in advance.
Please provide more detail, which device are you testing on? Do you use clipping?
I am testing on iphone5 and ipad. Yes i am using hard clipping and i am using NGUI 2.6.
Answer by tarasfromlviv · Dec 13, 2013 at 04:20 PM
I suggest you checking out this thread and investigate it thoroughly:
http://www.tasharen.com/forum/index.php?topic=4777.0
The reason of performance drop can be in multiple places. My advice:
Run profiler and analyse the result. You will see what takes the most time to process and investigate further.
Taking a NGUI original example and start building your panel in a new scene following the example step by step and checking performance each time you change anything. This is a little bit boring but you will get solid understanding how it works and will help you to avoid problems in future.