-
Notifications
You must be signed in to change notification settings - Fork 928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force sounds to download even when "preload in cache" is unchecked #5984
Conversation
@@ -245,6 +252,13 @@ namespace gdjs { | |||
); | |||
this._progressBarGraphics.endFill(); | |||
} | |||
} else if (this._state === LoadingScreenState.FINISHED) { | |||
// Display a black screen to avoid a stretched image of the loading |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, great polishing work.
} else if (resource.preloadInCache) { | ||
} else if ( | ||
resource.preloadInCache || | ||
// Force downloading of sounds. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't there a risk to download large files that have not been tagged as "preload as a music" by the user?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, we have the choice between:
- the previous behavior, the sound won't play the 1st times which sounds like a bug in the engine (pun intend)
- the new behavior, the loading takes more time which is easy to understand for users to try and fix it
I didn't update the UI because we may make it asynchronous if it's a good trade off.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok! What do we do about the other TODO "Decide if sounds should be allowed to be downloaded after the scene starts"?
Changes