Log in or register to post comments

Nexus 10 - Very low camera FPS

April 18, 2013 - 2:45am #1

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

July 29, 2013 - 8:08am #32

yes I'm using the Nexus 10, and I tested it on two devices.

Now I see a little improvment, around 18-22 fps, but not more.

Plus no difference beetween fast and optimized quality. And it's no difference too if I use a 1,6mlion poly model or just a simple cube.

Nexus 10 - Very low camera FPS

July 29, 2013 - 8:04am #31

Hi paatz04, do you also have Nexus 10 ?

just to confirm you don't refer to Nexus 4 or Nexus 7...

Nexus 10 - Very low camera FPS

July 29, 2013 - 2:29am #30

I Updated my Nexus to 4.3 and no improvment.

Maximum FPS are 18....?!

Nexus 10 - Very low camera FPS

July 29, 2013 - 1:35am #29

Thanks nachac for the update!

Nexus 10 - Very low camera FPS

July 29, 2013 - 1:01am #28

I've had the same issue with Android 4.2.2 on my Nexus 10. Now It works fine with Android 4.3.

Nexus 10 - Very low camera FPS

June 3, 2013 - 4:58am #27

http://stackoverflow.com/questions/15580619/slow-gltexsubimage2d-performance-on-nexus-10-android-4-2-2-samsung-exynos-5-w

 

This is a known driver issue that we have reported to ARM. A future update should fix it.

 

Nexus 10 - Very low camera FPS

June 2, 2013 - 9:37am #26

Hi, as I indicated in my comment #12 (see below in this thread), the bottleneck seems to be (probably) related to  glTexSubImage(), which appears to be a bit slower on that device, compared to others; the glTexSubImage() function is a key element of the video background update, and there is not workaround or faster solution;

no other news at the moment.

 

 

Nexus 10 - Very low camera FPS

June 2, 2013 - 6:31am #25

Extrenous problem, with the same problem and I can`t use the device for AR stuffs with Vuforia...Did someone from qualcomm resolve?

Nexus 10 - Very low camera FPS

May 13, 2013 - 12:21am #24

Hi and thanks for the reply,

In my player settings, the OpenGL version was already set to 2.0, so that's not the case here.

Nexus 10 - Very low camera FPS

May 11, 2013 - 12:53am #23

Yes in unity there is an option under the buildsettings. there you can select openGl 1.0 or openGL 2.0

Hope it helps...

 

Nexus 10 - Very low camera FPS

May 10, 2013 - 9:37am #22

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?

Nexus 10 - Very low camera FPS

May 10, 2013 - 9:00am #21

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

 

Maybe this could help you to! Good luck!

Nexus 10 - Very low camera FPS

April 22, 2013 - 4:37am #20

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

April 22, 2013 - 4:21am #19

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

April 19, 2013 - 7:42am #18

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.

 

Is there anything we can do to minimize the impact? I mean, 1- it displays badly in demo; 2- customers with this (supposedly top of the line device) WILL have issues using it.

To me, a device (even with a bad driver) as popular as this should still get good aps, not every user will care about updates, if there's anything we can do, it would be greatly appreciated.

Nexus 10 - Very low camera FPS

April 19, 2013 - 3:11am #17

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

April 18, 2013 - 8:38am #16

Yes, I would be interested to see the video, so to get a clearer idea.

Nexus 10 - Very low camera FPS

April 18, 2013 - 8:00am #15

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

April 18, 2013 - 7:52am #14

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

April 18, 2013 - 7:49am #13

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

April 18, 2013 - 7:30am #12

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;

this seems to be confirmed by some of the forum discussions I have found online on the Nexus 10; in particular, it seems that the low-level function (glTexSubImage()) used by OpenGL to upload/update textures is particularly slow on the Nexus 10 with Android 4.2.2 (despite the fact that this device is generally quite fast);

this is one example:

http://stackoverflow.com/questions/15580619/slow-gltexsubimage2d-performance-on-nexus-10-android-4-2-2-samsung-exynos-5-w

The thread seems to indicate that this is a known issue with the ARM driver, which should be fixed soon.

 

Nexus 10 - Very low camera FPS

April 18, 2013 - 6:57am #11

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

April 18, 2013 - 6:29am #10

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.

Another quick test would be to try changing the "Camera Device Mode Settings" (in your ARCamera object) from DEFAULT to MODE_OPTIMIZE_SPEED

if that makes a difference, this could be a useful hint.

 

Nexus 10 - Very low camera FPS

April 18, 2013 - 6:16am #9

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

April 18, 2013 - 6:04am #8

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

April 18, 2013 - 5:54am #7

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!

AttachmentSize
Image icon unity_build_settings.png32.61 KB

Nexus 10 - Very low camera FPS

April 18, 2013 - 5:19am #6

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

April 18, 2013 - 5:03am #5

Yes, I've tried that. I downloaded the imagetargets-2-0-7.unitypackage sample code package from https://developer.vuforia.com/resources/sample-apps/image-targets-sample-app, built it and ran it on the device. That also gives me low camera FPS.

Nexus 10 - Very low camera FPS

April 18, 2013 - 4:55am #4

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

April 18, 2013 - 4:41am #3

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.

Could there perhaps be a difference between building via Unity vs Java? (I'm assuming that the hosted .apk was built without Unity...)

Nexus 10 - Very low camera FPS

April 18, 2013 - 2:52am #2

Hi,

have you tested some of the reference sample Apps (ImageTargets for instance) ?

what frame rate do you observe there ?

Log in or register to post comments