Audio lag in chrome mobile?

Discussion and feedback on Construct 2

Post » Fri Feb 13, 2015 9:56 pm

Construct 2's engine doesn't add any latency, so it must be in Chrome or the Android OS. Which version of Android is it? I think the latest Android updates have significantly reworked the audio engine in the OS. I've never noticed much latency with our test devices either (Nexus 5, Nexus 9, Moto X) so maybe it depends on the device too?
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,361

Post » Fri Feb 13, 2015 10:22 pm

android version 4.4.2
My phone isn't the greatest, just a prepaid virgin mobile phone. I have not tried my apps on any newer devices to see if the lag is any less.
Thanks for the quick response though!
Yeah its only chrome on my phone that I notice it in too, will try firefox as someone else mentioned for playtesting maybe. As far as I know the exporter always uses chrome though?
B
3
Posts: 3
Reputation: 381

Post » Fri Feb 13, 2015 10:33 pm

@Ashley

I have KitKat 4.4.2.

As I said before, I don't believe this is a shortcoming of C2, since firefox mobile has very low latency. However, that means it's not an inherent shortcoming of android either. It's possible that this is related to higher input lag in chrome, I'm not sure. I'm having trouble coming up with a capx that can measure it.

For an example: tapping as fast as possible on a sprite that causes a sound to play, I can:

    Chrome for Android: manage three taps before hearing the sound play.

    Firefox for android: sound plays before I can land a second tap, specifically on the upswing of my finger.

As I reason it, that works out to FF having about a quarter the latency of chrome.
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Sat Feb 14, 2015 1:16 pm

I'd provide a demo and file it on crbug.com so the Chrome developers can take a look. I think you're right that given Firefox for Android does not have the same latency, it must be Chrome and not Android or C2.
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,361

Post » Sat Feb 14, 2015 1:51 pm

For older devices and Android editions, the chances of this getting fixed are zilch, unfortunately. That's the biggest curse of the Android world.
B
78
S
28
G
32
Posts: 481
Reputation: 19,788

Post » Sat Feb 14, 2015 9:44 pm

Seems like the only way to get rid of sound and touch lag (yes the touch events lag quite a bit to) on android is to make actual native apps/games. :(

edit: on the brighter side crosswalk has improved on these issues over time :)
B
33
S
10
G
6
Posts: 259
Reputation: 6,801

Post » Sat Feb 27, 2016 2:03 am

Ashley wrote:given Firefox for Android does not have the same latency, it must be Chrome and not Android or C2.


Sadly Firefox Mobile is a dead duck. They're officially putting it to bed :cry:

"To be yourself in a world that is constantly trying to make you something else is the greatest accomplishment."

Ralph Waldo Emerson
B
10
S
2
G
1
Posts: 56
Reputation: 1,300

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: mammothe and 13 guests