We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug (REQUIRED) Web. Progress bar show percentage -start from 50 -then return to 40 -then load from 50-100
To Reproduce (REQUIRED) Make web build. Show percent of loading(or look at progress bar)
Expected behavior (REQUIRED) Progress bar go from 0-100
Defold version (REQUIRED):
Platforms (REQUIRED):
https://user-images.githubusercontent.com/2655263/165980108-95738858-0111-4eb0-9e1f-e4a53948118b.mp4
The text was updated successfully, but these errors were encountered:
Version 1.3.0
Have you tried to disable Wasm Streaming? i.e. by adding EngineLoader.stream_wasm = false; into your .html file.
EngineLoader.stream_wasm = false;
.html
Sorry, something went wrong.
With EngineLoader.stream_wasm = false; progress bar is correct
Note: From 1.3.1 the WASM streaming is turned off as default and it is available as an option in game.project in the HTML5 section.
But regardless of that there's an issue with the progress bar calculation in dmLoader.js that we need to look into when was streaming is enabled.
The problem is that there's now out-of-the-box way to get the wasm streaming progress and instead we simply ignore the progressbar:
https://github.com/defold/defold/blob/dev/com.dynamo.cr/com.dynamo.cr.bob/src/com/dynamo/bob/bundle/resources/jsweb/dmloader.js#L136-L148
The proper solution seems to be to implement a custom ReadableStream and get progress from it. See:
https://stackoverflow.com/questions/65491241/get-webassembly-instantiatestreaming-progress
We're open for a PR to dmLoader.js!
Successfully merging a pull request may close this issue.
Describe the bug (REQUIRED)
Web. Progress bar show percentage
-start from 50
-then return to 40
-then load from 50-100
To Reproduce (REQUIRED)
Make web build.
Show percent of loading(or look at progress bar)
Expected behavior (REQUIRED)
Progress bar go from 0-100
Defold version (REQUIRED):
Platforms (REQUIRED):
https://user-images.githubusercontent.com/2655263/165980108-95738858-0111-4eb0-9e1f-e4a53948118b.mp4
The text was updated successfully, but these errors were encountered: