Skip to content

Conversation

@Kulltero
Copy link
Contributor

@Kulltero Kulltero commented Nov 7, 2022

Avoids Re-downloading the same image for following instances of the same image, re-using the texture instead, doesnt persist through restarts

(Also Removing a now-useless if check, since it shouldnt happen and would only confuse anyone if it did, this was left from my change to prevent mipmap issues)

i chose not to use the CachedTexture system added in a recent commit, because sprites cant currently be loaded from the web & there didnt seem to be a trivial way to get the CRC just from the url, feel free to change it over if desired 👍

Avoids Re-downloading the same image for following instances of the same image, re-using the texture instead

(Also Removing a now-useless if check, since it *shouldnt* happen and would only confuse anyone if it did, this was left from my change to prevent mipmap issues)
slight syntax fix
Added A Request Queue to avoid cases where multiple images load the same url if they get created before the first image is cached, instead the components get added to a queue and then applied at the end
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 this pull request may close these issues.

1 participant