Loader Style *slow load*

Discussion and feedback on Construct 2

Post » Tue Nov 18, 2014 3:16 am

Hi, I'm been working on a project, and I figured out why it takes so long for my game to load. Its because I clicked "yes" on set the loader style. However when I click no the audio in my game is delayed. So my question is this, how do I fix the delayed audio issue while keeping my game loading time short.
B
7
S
1
Posts: 25
Reputation: 523

Post » Tue Nov 18, 2014 1:49 pm

Which platform are you testing on? Chrome for Android has a bug where decoding audio is very slow, which can make preloading audio take a long time. All other platforms should be fast though.
Scirra Founder
B
402
S
238
G
89
Posts: 24,628
Reputation: 196,023

Post » Tue Nov 18, 2014 2:20 pm

@frenzyace, I cannot PM to you, I don't have enough reputation points to your question in PM try change encoding settings in audio such as lower bitrate and codec. Should do the trick.
B
6
S
1
Posts: 57
Reputation: 514

Post » Tue Nov 18, 2014 11:56 pm

Ashley wrote:Which platform are you testing on? Chrome for Android has a bug where decoding audio is very slow, which can make preloading audio take a long time. All other platforms should be fast though.


Ok thanks for the response, and it was on default.
B
7
S
1
Posts: 25
Reputation: 523

Post » Tue Nov 18, 2014 11:58 pm

@Lazarus1988 I tried that yet nothing really changed. I'm assuming if I change the platform it will load faster. So I'm going to try now.
B
7
S
1
Posts: 25
Reputation: 523

Post » Fri Nov 21, 2014 1:23 am

@ashley I'm still having issues. The loading screen is slow due to me using the preload feature in the configuration setting., not the one in the event sheet. Once I set the preloading feature to no the game runs fast, however there is a delay in the game. When I use the preloading feature in the event sheet there is still a delay in the game. How do I fix this issue. Btw I did put my audio in the correct folders.
B
7
S
1
Posts: 25
Reputation: 523

Post » Fri Nov 21, 2014 9:26 am

There is a fundamental tradeoff: either you preload the audio so it can play instantly, which makes loading take longer, or you can not preload the audio, which makes a delay the first time each sound is played. The audio has to be loaded at one time or another, and those are your two options.

How long does it take exactly? Which browsers/OSs have you tried? Desktop machines should be able to decode large amounts of audio in just seconds. Also as ever share a .capx to demonstrate the problem better.
Scirra Founder
B
402
S
238
G
89
Posts: 24,628
Reputation: 196,023

Post » Sat Nov 22, 2014 11:01 pm

Okay, and on my desktop I have no issues, however when I'm using my android phone the delay is about 40 seconds. And I will upload the .capx
B
7
S
1
Posts: 25
Reputation: 523

Post » Sat Nov 22, 2014 11:09 pm

There is a fundamental tradeoff: either you preload the audio so it can play instantly, which makes loading take longer, or you can not preload the audio, which makes a delay the first time each sound is played.

@Ashley If you go with the second option does everything else freeze while the audio downloads? E.g. could the game begin and download sounds silently in the background without affecting the visual play?
Image
B
9
S
3
G
1
Posts: 346
Reputation: 1,560

Post » Mon Nov 24, 2014 3:12 pm

The second way (not preloading) downloads and decodes sounds in the background, it doesn't freeze the game. But it means if say something explodes, the sound might play half a second later, which can give an odd feel.
Scirra Founder
B
402
S
238
G
89
Posts: 24,628
Reputation: 196,023


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests