gearvrf / GearVRf-Demos

Collection of GearVRf demo apps
176 stars 165 forks source link

WebView browsing and scrolling is a bit jumpy. #359

Open Maqsood007 opened 8 years ago

Maqsood007 commented 8 years ago

I have render android WebView in GVR FrameLayout to load my webpages but its experience is jumpy and scrolling is not smooth. i am unable to read it continuously.

frameLayout = new GVRFrameLayout(this); frameLayout.setBackgroundColor(Color.TRANSPARENT); View.inflate(this, R.layout.activity_irisvision_browser, frameLayout); mWebView = (WebView) frameLayout.findViewById(R.id.webView); if (mWebView != null) { mWebView.loadUrl("http://theirisvision.com/media/", preventCaching); }

And i inflate the Android webview in GVRFrameLayout.

liaxim commented 7 years ago

It must be down to the motion events that get dispatched to the WebView. @rahul27 @parthmehta209 any suggestions, ideas?

rahul27 commented 7 years ago

@parthmehta209 remember you working on interaction with webviews. Did you notice any issues with the performance?

Maqsood007 commented 7 years ago

I was unable to render video frames in webview but now i am simply displaying web pages but performance is slow in respect of clicking links and scrolling the web pages.

On Tue, Nov 8, 2016 at 1:36 AM, rahul notifications@github.com wrote:

@parthmehta209 https://github.com/parthmehta209 remember you working on interaction with webviews. Did you notice any issues with the performance?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gearvrf/GearVRf-Demos/issues/359#issuecomment-258954700, or mute the thread https://github.com/notifications/unsubscribe-auth/AUE33e7psyEe9oKJ6iDqakBnoDNaXSA7ks5q74uxgaJpZM4KqkZM .

rahul27 commented 7 years ago

Let me see if I can modify the events sample to test the webview.

liaxim commented 7 years ago

@Maqsood007 Do you see any difference with hardware acceleration disabled vs enabled?

rahul27 commented 7 years ago

@Maqsood007 Could you try the following modified events sample and let me know if you see the same issue:

https://github.com/rahul27/GearVRf-Demos/commit/c29636d3d1e7b573ab005288c68f42e67e5100d8

Also could you let me know the GPU on your mobile device? You can use the following adb command to print the GPU info:

adb shell dumpsys | grep GLES

Maqsood007 commented 7 years ago

@rahul27 Yes i tried the GVRWebview instead of Android native Webview now its scrolling and clicking is much batter ..Thanks @rahul27 ..

rahul27 commented 7 years ago

Awesome. Good to hear. Can we close this issue?

Maqsood007 commented 7 years ago

Yes we can close it now... but one thing there is lot of difference between webview experience and samsung internet... why ? Is samsung works on different architectue... ???

On Nov 18, 2016 11:40 PM, "rahul" notifications@github.com wrote:

Awesome. Good to hear. Can we close this issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gearvrf/GearVRf-Demos/issues/359#issuecomment-261607948, or mute the thread https://github.com/notifications/unsubscribe-auth/AUE33bDrp0CDW-nWgT2OoNBkTc_UlDMQks5q_fEvgaJpZM4KqkZM .

thomasflynn commented 7 years ago

Samsung Internet has its own completely custom webview that it uses. It does not use Android's WebView.

Maqsood007 commented 7 years ago

Hmmmm but in android webview we are facing a fatal issue in geervr of rendering videos... do you experience it ?

On Nov 19, 2016 12:05 AM, "thomasflynn" notifications@github.com wrote:

Samsung Internet has its own completely custom webview that it uses. It does not use Android's WebView.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gearvrf/GearVRf-Demos/issues/359#issuecomment-261614299, or mute the thread https://github.com/notifications/unsubscribe-auth/AUE33WJmn3jXvBFNlK18S4dt08qzGeZKks5q_fcPgaJpZM4KqkZM .