memory cleanup

beta.r3js.org
-=yb4f310 2017-11-16 15:10:12 +01:00
parent 4569ad90b8
commit 4870bc285a
1 changed files with 3 additions and 0 deletions

View File

@ -203,6 +203,9 @@ GameLib.System.Particle.prototype.beforeRender = function(data) {
particle.material.opacity < 0
) {
particle.userData.scene.remove(particle);
particle.geometry.dispose();
//particle.material.map.dispose();
particle.material.dispose();
} else {
result.push(particle);
}