Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

ResourceLoader / Loader, Json Texture and progress value


Mathieu Anthoine
 Share

Recommended Posts

I have started to work with the new pixi 3 Loader.

It is really great and with the "before" and "after" methods, you can easily do what you want without creating a custom Loader Manager, thank you :)

 

I have a question about the progress value.

In the list of files I download, there's a json file that describes a Texture and that is linked to a png file. The Loader detects it, download the png and at the end triggers the complete event but the progress value doesn't end with a value of 100.

 

Did I missed something ?

 

Thank for your help.

Link to comment
Share on other sites

That is a bug, but its strange because I have a unit test specifically for this situation that tests that:

https://github.com/englercj/resource-loader/blob/master/test/unit/Loader.test.js#L382-L394

I think this is happening due to some rounding issues though, which I have been discussing here:

https://github.com/englercj/resource-loader/issues/24

Link to comment
Share on other sites

Adding files during the loading (with middleware) has the same effect.

It seems that the _progressChunk  returns a wrong result after adding new files to load.

I feel like that isn't true, because the test cases that check those very things are passing. I think the problem is simply a rounding issue.

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...