Skip to content

How to prevent TextureLoader from using memory of 2 textures when loading one texture. #1397

Answered by drcmda
takerfume asked this question in Q&A
Discussion options

You must be logged in to vote

i wouldnt bother, this is something internal in three, textures that are created for nothing as a default - something like that. useLoader(Textureloader is nothing more than new TextureLoader().load(url, data => ... useLoader by design doesn't load twice, whereas plain three would. useLoader is cached. so no matter where in the component tree, if you request the same texture again, it will fetch from cache directly without loading/parsing it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@takerfume
Comment options

Answer selected by takerfume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants