Cordova stuttering on Android

Post » Wed May 24, 2017 8:34 pm

Message: Ultimadark can only post plain text URLS until they have 500 rep. 3 URLS modified. Why?
Update: Since I experience frequent stuttering even though I have a high fps I decided to measure the highest values of the variable dt each second. When I run my game with the "Remote preview" feature on my phone with the chrome browser, after a short while in the beginning of each scene I get a smooth experience with 17 ms of maximum dt most of the time, a few seconds have a maximum dt of 33/34 ms.

However, when I run my game as an exported Cordova app I frequently get maximum dt values of 34 ms, 51 ms and even 68 ms some times. Any idea why some of the dt values would be larger when running as a Cordova app? I have a Samsung Galaxy 5 Neo.

You can try the app version that counts the maximum dt values here: https://drive.google.com/open?id=0B4VUO ... FVKSXphNVE

Old post
To get a feel for Construct 3 I've made a simple Flappy Bird clone with the Tappy Plane assets from Kenney. When running the game on my android phone with the Chrome browser it works fine but when running as an app made with the built in Cordova building service the app is stuttering even though the reported FPS is high. Has anyone else experienced this before? Feel free to try my game using your android phone to see if you get stuttering when using the cordova built app.

Tappy plane on a webserver: https://eddeland.com/tappyplane
Tappy plane .apk for android: https://drive.google.com/file/d/0B4VUO9 ... sp=sharing
Last edited by eddeland on Fri Jun 02, 2017 9:05 am, edited 3 times in total.
B
10
S
1
Posts: 13
Reputation: 481

Post » Wed May 24, 2017 8:59 pm

Ultimadark wrote:To get a feel for Construct 3 I've made a simple Flappy Bird clone with the Tappy Plane assets from Kenney. When running the game on my android phone with the Chrome browser it works fine but when running as an app made with the built in Cordova building service the app is stuttering even though the reported FPS is high. Has anyone else experienced this before? Feel free to try my game using your android phone to see if you get stuttering when using the cordova built app.

Tappy plane on a webserver: https://eddeland.com/tappyplane
Tappy plane .apk for android: https://drive.google.com/file/d/0B4VUO9 ... sp=sharing


No idea. I've made a much more sophisticated game using whopping amounts of memory, way above the recommended limit, tested on my crappy $30/month Alcatel Metro PCS phone via Cordova and it works fantastic. I've even used tons of transparency, which is not recommended at all. Needless to say I was blown away and glad I've invested years of my time, probably like 5 or 6 now into C2.

I was going to say how incredibly addictive these are even as a clone, but it turns out not so without the frequent dying.
B
35
S
19
G
18
Posts: 242
Reputation: 12,732

Post » Fri Jun 02, 2017 9:02 am

Message: Ultimadark can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Update: Since I experience frequent stuttering even though I have a high fps I decided to measure the highest values of the variable dt each second. When I run my game with the "Remote preview" feature on my phone with the chrome browser, after a short while in the beginning of each scene I get a smooth experience with 17 ms of maximum dt most of the time, a few seconds have a maximum dt of 33/34 ms.

However, when I run my game as an exported Cordova app I frequently get maximum dt values of 34 ms, 51 ms and even 68 ms some times. Any idea why some of the dt values would be larger when running as a Cordova app? I have a Samsung Galaxy 5 Neo.

You can try the app version that counts the maximum dt values here: https://drive.google.com/open?id=0B4VUO ... FVKSXphNVE
B
10
S
1
Posts: 13
Reputation: 481

Post » Fri Jun 02, 2017 10:28 am

What does it say if you visit chrome://gpu on the device? Usually driver blacklisting is the cause of any performance problems.
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,842

Post » Fri Jun 02, 2017 11:05 am

Ashley wrote:What does it say if you visit chrome://gpu on the device? Usually driver blacklisting is the cause of any performance problems.


I have performance problems too. I exported C2 project using crosswalk and got FPS around 60. Same project using C3 export got fps in the 50s and stuttered a lot.

I am using Galaxy tab 4 10.1

I get the following when I type chrome://gpu

WebGL: Hardware accelerated
WebGL2: Unavailable
B
12
S
4
Posts: 28
Reputation: 894

Post » Fri Jun 02, 2017 11:26 am

Message: Ultimadark can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Ashley wrote:What does it say if you visit chrome://gpu on the device? Usually driver blacklisting is the cause of any performance problems.


In regards to what DarkSide posted, I get the following when going to chrome://gpu on my android device
WebGL: Hardware accelerated
WebGL2: Hardware accelerated

Note that the game runs without a lot of stuttering when running in the chrome browser on my android device, the cordova exported app is the version that is experiencing more stuttering.

I uploaded all of the information from chrome://gpu here: https://docs.google.com/document/d/1-HH ... sp=sharing
B
10
S
1
Posts: 13
Reputation: 481

Post » Fri Jun 02, 2017 12:05 pm

@Ultimadark

Only an idea may be is nonsense, have you tried to update webview in Google Play?
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Fri Jun 02, 2017 12:50 pm

Asmodean wrote:@Ultimadark

Only an idea may be is nonsense, have you tried to update webview in Google Play?


Absolutely not nonsense but i checked that already ;) last update to my WebView was april 20 this year.
B
10
S
1
Posts: 13
Reputation: 481

Post » Fri Jun 02, 2017 2:06 pm

DarkSide110902 wrote:I have performance problems too. I exported C2 project using crosswalk and got FPS around 60. Same project using C3 export got fps in the 50s and stuttered a lot.


Crosswalk is a wrapper. Wrappers usually enhance FPS, but at a cost of features, stability and the bloat of including the runtime in the final build size. You seem to have a good fps gap. My own tests are so close performance wise, I ditched crosswalk a good while ago.

Ultimately, mobile is a minefield for performance. Always has been. Try and test on some different devices to see what you get. Never, ever, test on one single device as take that as a final benchmark. Ive tested builds on older hardware and actually got better performance.
Image
B
30
S
9
G
3
Posts: 171
Reputation: 3,329

Post » Fri Jun 02, 2017 5:18 pm

DarkSide110902 wrote:I have performance problems too. I exported C2 project using crosswalk and got FPS around 60. Same project using C3 export got fps in the 50s and stuttered a lot.

C2 and C3's runtimes are nearly identical, so this is odd. I'd suspect it's random variation or the test mechanism more than Construct.
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,842

Next

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests