Skip to content
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

[HTML5] Preloader does not reflect progress of a packed asset library #1726

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

scanline
Copy link

@scanline scanline commented Nov 30, 2023

When using:
<library name="default" type="zip" />

to wrap individual assets like images into a single default.pak file, the preloader
(indirectly) does not take the size of the file into account. So if we have a packed library of e.g.
1MB and no other assets, the preloader bar jumps directly from 0 to 100% as soon as the file
finished loading.

This issue has been mentioned years ago in this thread: [Preloader Progress Doesn’t Update When Using “default” Library](https://community.openfl.org/t/preloader-progress-doesnt-update-when-using-default-library/10688/)

The findings by singmajesty did not get rid of the issue though. The problem is that
PackedAssetLibrary.hx does not monitor the loading of default.pak itself.

This pull request will take care of it.

By the way - HTML5 is surely not the only affected target but it's where I've noticed it.

@justin-espedal
Copy link
Contributor

Looks like this tackles the same problem as #1542, right?

I missed the request there to rebase on the latest development branch, but if desired I can still do that. If this PR is gone with on the other hand, feel free to close that one. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants