Hi.
I'm currently developing an app with the latest unity plugin, and I'm having some trouble with very low camera FPS (approximately 3-5) on a brand new Nexus 10. The actual unity scene is running at a smooth framerate, so that's not the problem. The camera FPS is reasonable when the AR target isn't in view (probably 15-20), however there's a pretty obvious delay of about 0.5 seconds between moving the camera and the display updating. When the AR target is in view, the FPS drops, and it becomes especially low when moving the camera very close to the target. In comparison, the bundled camera app runs at a fairly smooth framerate with almost no delay.
I've tried a very simple 3D scene with just one standard unity box, there's no obvious difference in framerate. I've also tried to minimize shutter-related frame drops by testing the app in a very well lit room. Furthermore, i've tried playing around with some focus mode settings via scripts as well as the camera device mode settings both via scripts and the inspector view, there's no visible difference though.
Any ideas of what might be causing this, or is the Nexus 10 simply not fully supported yet?
Thanks in advance!
Nexus 10 - Very low camera FPS
Hi,
have you tested some of the reference sample Apps (ImageTargets for instance) ?
what frame rate do you observe there ?
Nexus 10 - Very low camera FPS
Hi, thanks for your reply.
I just tried downloading the ImageTargets .apk file, and that ran smoothly! So then I grabbed the unity source, created an entirely new unity project and deployed it to the android, which resulted in low FPS again.
Nexus 10 - Very low camera FPS
Hi,
the ImageTargets.apk is not using Unity; that can make a difference, yes. But, have you tried importing the Unity Image Targets sample in Unity, building for Android platform and running it ?
That's the test you should do first.
Nexus 10 - Very low camera FPS
Yes, I've tried that.
Nexus 10 - Very low camera FPS
Ok, thanks for confirming. I wonder if maybe you are using some Player Settings which are not ideal (when you build the app);
could you attach a screenshot of your Player Settings ?
Nexus 10 - Very low camera FPS
Sure, I've attached the player settings I'm currently using, should be the unity standard (I assume you weren't interested in the icon and keystore stuff...).
For the record, I'm using the latest android SDK version (4.2.2)
Thanks for your time!
Nexus 10 - Very low camera FPS
Thanks for the screenshot. COuld you change your "Minimum API Level" to 2.2 (first test) and 4.0 (second test) to see if does make any difference ?
ALso, what Unity version are you using ?
Nexus 10 - Very low camera FPS
Nope, no difference when trying the minimum levels 2.2, 4.0 nor 4.2 (The tablet is running 4.2.2).
I did however run the sample app on a samsung galaxy tab 10.1 (GT-p7500) running android 4.0.4, there were no framerate problems at all there.
I'm using Unity 4.1.2f1
Nexus 10 - Very low camera FPS
Ok, so, the fact that on the galaxy tab runs fine (and the fact that a simple Unity scene without Vuforia runs smooth) seems to suggest that the video camera background rendering/processing might cause some performance issue with the graphics hardware of your Nexus.
Nexus 10 - Very low camera FPS
No difference after switching to optimize_speed. There doesn't seem to be an even slight improvement.
Any other ideas?
Nexus 10 - Very low camera FPS
Hi,
ok, the impression I have is that the video background image is consuming quite a large portion of your GPU; as a consequence, whenever you add some extra rendering tasks such as for the 3D augmentation models (teapots), then the slow-down becomes more obvious;
Nexus 10 - Very low camera FPS
Ouch, that sounds like a big hurdle.
I still find it strange that the java-built demo runs smoothly though, surely that version would use the same function, wouldn't it?
Nexus 10 - Very low camera FPS
The fact that the native ("java-built") demo runs smoothly might be due to some implementation differences with the Unity version;
what I am saying is that even the native demo (despite looking "quite smooth" to your eyes) might potentially run much faster even.
Nexus 10 - Very low camera FPS
Right, makes sense.
The FPS difference between the two builds is pretty extreme though, I could probably record a video of each version tomorrow and upload them if you're interested.
Nexus 10 - Very low camera FPS
Yes, I would be interested to see the video, so to get a clearer idea.
Nexus 10 - Very low camera FPS
Hi, seems that I won't have time to record the video today, should be able to record one this monday though.
Sorry about that.
Nexus 10 - Very low camera FPS
We have the same issue here; running on an Nexus 10 have slow CAMERA RATE (and good 3D rate) while the same app runs smoothly on a samsung galaxy S2.
Nexus 10 - Very low camera FPS
Hi, uploaded a video with a side-by-side comparsion with a galaxy tab 10.1 on the left, nexus 10 on the right.
https://dl.dropboxusercontent.com/u/11976509/Augmented/vuforia.mov
Nexus 10 - Very low camera FPS
Thanks jhassel for sharing the video;
the difference is quite remarkable indeed; at the moment the only thing I can suggest is to keep an eye on Nexus 10 software updates about OpenGL driver fix.
Nexus 10 - Very low camera FPS
Hello Hassel.
I have had a similair problem witn my scene only i have a Samsung Galaxy tab 10.1 and an LG L9 phone.
I solved my problem by turning the OpenGl to 2.0
I guess my LG phone has problems with open Gl 1.0
Nexus 10 - Very low camera FPS
You mean your code was previously using openGL 1 and now it uses openGL 2?
Or you changed something in the settings of the devices?