javascript - ThreeJS loadTexture collects images into memory and memory raises fast -


if open kemooolep.com/three chrome/windows, browser crash soon, beware! :)

maybe have ideas how change materials dynamically without having memoryleak

it's not clear trying achieve here.

first, onloaded function called infinitely, if not seem necessary. part, especially:

if (loadedcount == 6){   onloaded(); } 

then, don't understand why want call three.imageutils.loadtexture when scene ready ? easier load them directly, , assign them mesh.material.materials[index] in respective callbacks.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -