-
-
Notifications
You must be signed in to change notification settings - Fork 36.2k
Closed
Description
Description
I can't dispose nodeMaterial correct , I try many times find the question , the problem is nodeMaterial , memory is rising , not stop
Reproduction steps
Code
render(deltaTime: number, timestamp: number): void {
if (this.renderer.hasInitialized()) {
const reflection = reflector();
scene.add(reflection.target);
const floorMaterial = new THREE.NodeMaterial();
floorMaterial.colorNode = reflection;
const floor = new THREE.Mesh(new THREE.BoxGeometry(50, 0.001, 50), floorMaterial);
scene.add(floor);
renderer.render(scene,camera);
floor.geometry.dispose();
floorMaterial.dispose();
floorMaterial.colorNode.dispose();
reflection.dispose();
scene.remove(floor);
console.log(renderer.info.memory);
}
}Live example
https://jsfiddle.net/aqybh64u/1/
Screenshots
Version
r175
Device
No response
Browser
Chrome
OS
Windows
Mugen87
