Hello everyone,
I’m using unity 4.6 to develop an application using Vuforia SDK. The app uses the cloud recognition feature of the SDK which means that the camera and some internet threads are working in the background. Also the app has a menu developed in it that will pop up when button is pressed. The menu contains a 2 separate panels each with a scroll rect and each scroll rect has a number of images that are downloaded using the WWW class using coroutines (3 downloads at a time).
However, when I test my app on my Android phone, the scroll rect react very poorly. Sometimes it respond to my touch and sometimes it doesn’t. I tested it a couple of times trying to reduce the number of threads and the performance was better but still far from the native feel and its very noticeable that its not responding well.
Is there someway I can improve the performance? Has this issue faced anyone here before? if so, how did you fix it? Is there any different approach to this menu than simple Canvas and scroll rects?
Thanks.
Update
I have cleaned my project and removed all the gameobjects that are not needed and reduced the WWW coroutines to two at a time. I have also implemented a frame per second (fps) counter to measure the performance. While the Camera is on and the augmentation is ongoing, the fps measures between 33 fps to 45 fps. But when I open my menu the fps drops down between 23 fps to 28 fps.
I’m using a Samsung SIII mini with 1GB of RAM and a CPU 1 GHz dual-core Cortex-A9.
Are these states good or bad?
Update 2
I have tested the app on different (more powerful) devices and the fps registered almost always over 45 fps even if the Menu is opened. However the scrollrect performance isn’t respond well. Maybe this issue is not really related to the performance of the App?
Update 3
I have just implemented another testing script on my app. It uses the OnBeginDrag event to trigger a counter to show if the “touches” are being registered or not. almost 95% of all touches have been registered but about 50%-70% of the time, the scrollrect doesn’t get dragged up or down.