Chrome jank during first audio play-at-object

Discussion and feedback on Construct 2

Post » Tue Aug 30, 2016 5:15 pm

A few months ago I reported a jank bug in chrome, but the bug report was duly closed when the devs were unable to repeat the problem. This is also evident in NWjs and, although it can be worked around, it would be great to get it fixed. Could you please spare a minute and check out the bug report - I'd be interested if you experience the bug as well or, like the chrome devs, don't see a problem... The bug report can be found here.
A big fan of JavaScript.
B
76
S
20
G
73
Posts: 2,244
Reputation: 45,962

Post » Tue Aug 30, 2016 5:58 pm

It is the same as this? sound-issue_t180275
Ashley closed it before a capx was loaded, but it was reproduced recently.
B
18
S
12
G
1
Posts: 45
Reputation: 2,340

Post » Tue Aug 30, 2016 6:15 pm

DankP3 wrote:It is the same as this? sound-issue_t180275
Ashley closed it before a capx was loaded, but it was reproduced recently.


Probably... It's been a chrome problem for a while now.
A big fan of JavaScript.
B
76
S
20
G
73
Posts: 2,244
Reputation: 45,962

Post » Tue Aug 30, 2016 6:23 pm

I tried on chrome mobile.
And yes I get the delay and jank.

This doesn't happen with my own "games" though.

Are you loading the sound as music? And are you preloading?
...
B
46
S
24
G
7
Posts: 319
Reputation: 8,201

Post » Tue Aug 30, 2016 8:16 pm

Sounds are loaded as sounds and preloading is set to yes. Here's the capx.
A big fan of JavaScript.
B
76
S
20
G
73
Posts: 2,244
Reputation: 45,962

Post » Tue Aug 30, 2016 9:03 pm

yes, strange it is the play at position causing the issue also happens on my PC Chrome.

if you replace the code with just play sound every 3 seconds then no issue.

sorry i was being a bit dumb when I said I dont have that problem i didn't realize you are talking specifically positional audio even though says in title :D
(I have never used positional audio. :oops: )

it is like it goes to play the sound then it realizes, crap I quickly have to do some positional calcs, then its too late.....

Internet Explorer has no Issue.

if there is something I / we can do to bump the issue let us know....

I so badly want to introduce positional audio to my game now.....
...
B
46
S
24
G
7
Posts: 319
Reputation: 8,201

Post » Tue Aug 30, 2016 10:37 pm

I tried it on my desktop too. In Chrome, I get the jank as you reported. Works fine on Edge. With firefox, there is no jank, but the first time there is almost no sound at all.
B
98
S
34
G
20
Posts: 438
Reputation: 17,825

Post » Wed Aug 31, 2016 10:20 am

I think it's caused by the browser initialising the positioned audio engine the first time you use it.

It looks like from the other report they made some changes to improve it, but you're not testing with the changes, your report still says you're using Chrome 52. Try grabbing Chrome Canary (currently v55) and seeing if there's still an issue there. It can take a few months for any changes to propagate from Canary to Beta to stable.
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,361

Post » Wed Aug 31, 2016 5:57 pm

In the latest Chrome Canary the jank is almost gone.... There's clearly a dropped frame or two but it's way better than before.
A big fan of JavaScript.
B
76
S
20
G
73
Posts: 2,244
Reputation: 45,962

Post » Thu Sep 01, 2016 2:45 pm

Even though it's going to be a non-issue eventually, just play a silent positioned sound at the beginning of the game to make the jank hidden.
B
103
S
38
G
19
Posts: 962
Reputation: 17,996


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests