Mathieu Anthoine Posted August 13, 2015 Share Posted August 13, 2015 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. Quote Link to comment Share on other sites More sharing options...
xerver Posted August 13, 2015 Share Posted August 13, 2015 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 Quote Link to comment Share on other sites More sharing options...
Mathieu Anthoine Posted August 14, 2015 Author Share Posted August 14, 2015 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. Quote Link to comment Share on other sites More sharing options...
xerver Posted August 14, 2015 Share Posted August 14, 2015 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. Quote Link to comment Share on other sites More sharing options...
Mathieu Anthoine Posted August 14, 2015 Author Share Posted August 14, 2015 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.Ok, is there something I can do ? or it's an issue you're aware or working on ? Thanks for your help Quote Link to comment Share on other sites More sharing options...
xerver Posted August 15, 2015 Share Posted August 15, 2015 If you are referring to the not 100% on complete issue, I linked the GitHub issue where we are working on it Hopefully will have a patch in a few days. Quote Link to comment Share on other sites More sharing options...
Mathieu Anthoine Posted August 15, 2015 Author Share Posted August 15, 2015 If you are referring to the not 100% on complete issue, I linked the GitHub issue where we are working on it Hopefully will have a patch in a few days.Just perfect Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.