Log in or register to post comments

Framerate drop when loading content for UIWebView

October 7, 2011 - 8:51am #1

Hi,
I've noticed that when i'm loading content for a UIWebview i notice a serious drop in the frame rate of the camera. the request is performed on the web thread.
Any idea how to solve this?
Thanks,
Inja

Re: Framerate drop when loading content for UIWebView

October 15, 2011 - 5:09am #5

I will try to test this, however in my previous test the WebView is set to hidden and I still see a problem. If this is indeed the problem is there anyway I can solve it?
Thanks,
Inja

Re: Framerate drop when loading content for UIWebView

October 10, 2011 - 2:02am #4
Inja wrote:

I still notice the frame rate drop. Do you have any other pointers?

I suspect you're saturating the processor - the web view may be being redrawn every time the underlying camera/AR frame is redrawn, and that could be expensive. Try temporarily stacking your web view behind the EAGLview (or off screen, or in a non-overlapping space on the screen) to test if that is the cause. If this hunch is correct swapping it from behind to infront would show the drop in frame rate.

Re: Framerate drop when loading content for UIWebView

October 7, 2011 - 10:36am #3

Hi,
Thanks for your quick answer!
I tried this using the ImageTargets example:
- create a webview, set it to hidden and add it to the EAGLView
- the first time a trackable is identified start loading a url in the web view

I still notice the frame rate drop. Do you have any other pointers?
Thanks,
Inja

Re: Framerate drop when loading content for UIWebView

October 7, 2011 - 9:40am #2
Inja wrote:

Hi,
I've noticed that when i'm loading content for a UIWebview i notice a serious drop in the frame rate of the camera.

Hi Inja,

As QCAR won't be doing anything put keeping its pipeline running the impact must be from the Web View loading overheads. It maybe that the first time you run it it's loading a lot of state.

Can I suggest that you have the web view created already (either to the required url, or if you don't know it, to an internal page) but hidden - you would then show it after setting the new web page url.

Log in or register to post comments