-
When I loads one texture by
Why dose the This is my code.
https://codesandbox.io/s/r3f-and-use-gesture-forked-r3wpv?file=/src/App.js |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
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.