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

 Share

  • Recently Browsing   0 members

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