Currently, I am in the process of developing an application that dynamically retrieves images from a server to use as textures within the scene. However, my focus is now on understanding the correct method for loading and unloading these textures.
My specific query revolves around the Three.js call graph: At what point does the GPU load and update textures? Does this occur when initializing a texture (var tex = new THREE.Texture()
), or when applying it to a mesh (
var mesh = new THREE.Mesh(geom, mat)
)? Examining the Texture class in Three.js indicates that textures are not loaded during texture creation. Yet, I cannot seem to locate relevant information within the Mesh component.
Could it be possible that I am overlooking a crucial detail? Are textures actually loaded during the render loop rather than upon object initialization? This could potentially align with the expected behavior.
I appreciate any insights you may offer!