Processing
 

Why performance WebGL of PhoneGap is different from firefox or chrome?

25/02/2014 10:24#1

Joined at: 5 months ago

Post: 1

Thank: 0

Thanked: 0

I am developing a game with WebGL. When I compile the app with PhoneGap (Apache cordova), the game runs at 10 FPS.

Instead in mobile browsers like firefox or google chrome, I have 60 fps.

Why??

Is there a way to deploy an app made ​​with WebGL that is as fast as a normal desktop?

27/02/2014 13:57Top#2

Kinlan

Member

Joined at: 11 months ago

Post: 188

Thank: 0

Thanked: 0

WebGL is not enabled in the current WebView. If you are using ThreeJS then you are likely falling back to a software renderer which in most cases will be performing slower.

25/02/2014 10:44Top#3

Joined at: 11 months ago

Post: 34

Thank: 0

Thanked: 0

It depends on the engine behind the WebView, and it's usually the same as the built-in browser which almost never updated, and could be months behind the latest build. It means it's not optimized for much recent developments, like WebGL for instance.

Mobile browsers, on the other hand, such as Firefox or Chrome are regularly updated (6-week release cycle) and optimized so they do get an edge in dealing with recent tech.

WebView for Android 4.4 onwards are Chrome-based, so they should perform faster.

Similar articles

Chrome, THREE.js: Cross-origin image load denied

5 years ago - Reply: 5 - Views: 269

Prevent Google Chrome Log XMLHttpRequest

3 years ago - Reply: 5 - Views: 276

How can I include ChromeDriver in a JAR?

3 years ago - Reply: 3 - Views: 81

Chrome geolocation not working on any site

3 years ago - Reply: 1 - Views: 46

wrong borders' width in android browser

3 years ago - Reply: 4 - Views: 206

Uncaught SyntaxError: Unexpected token < On Chrome

3 years ago - Reply: 10 - Views: 468

Flashdata not getting cleared in Codeigniter

3 years ago - Reply: 5 - Views: 57

Illegal access Javascript error in Chrome

3 years ago - Reply: 1 - Views: 51

ng-repeat not updating in Chrome

3 years ago - Reply: 1 - Views: 81

Applying border to a checkbox in Chrome

4 years ago - Reply: 2 - Views: 118

open browser plugin using access vba

3 years ago - Reply: 1 - Views: 25

vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re