Jump to content

Accuracy of Loading Progress


rodri042
 Share

Recommended Posts

My game has to load some big files (one of them is 3mb and the other 4mb). The thing is:

When all the small files are loaded, the loading progress gets stuck at almost 99% and then pass a lot of time until the loading is complete (because it's loading one of these big files at the end).

How can implement some accurate loading progress that take into account the file sizes? I think it would be possible if I have access to the XHR requests that the Phaser Loader is making.

Link to comment
Share on other sites

Phaser 2 doesn't use XHR to load images, which is why the progress is a 'per file' progress, not 'per byte'. There's nothing you can really do about this other than either fake it, or just make the loading process more interesting so no-one really cares.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...