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

recall PIXI.Assets.load(...) get warning in console #8613

Closed
littleboarx opened this issue Aug 25, 2022 · 2 comments · Fixed by #8949
Closed

recall PIXI.Assets.load(...) get warning in console #8613

littleboarx opened this issue Aug 25, 2022 · 2 comments · Fixed by #8949
Assignees

Comments

@littleboarx
Copy link

Expected Behavior

as the recommended usage shown in the doc, recalling PIXI.Assets.load(...) should be no warning here

Current Behavior &Steps to Reproduce & Environment

warning BaseTexture added to the cache with an id [examples/assets/bunny.png] that already had an entry
image

Possible Solution

@driuqzy
Copy link

driuqzy commented Nov 12, 2022

Same issue here. Per the docs: https://pixijs.download/dev/docs/PIXI.Assets.html "Do not be afraid to load things multiple times - under the hood, it will NEVER load anything more than once."

And it works as desired. We just need a way to suppress this warning to now blow up the console logs.

@bigtimebuddy
Copy link
Member

Some of this was added for debugging as we were building. We should either have a verbose logging flag on Assets, or remove these. This at least shouldn't be a warning, since it's the intended behavior to load things more than once.

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 a pull request may close this issue.

4 participants