I have a particle group with 80 emitters attached (clouds). After an emitter has existed for about 3 minutes I remove the emitter. Unfortunately each Group.removeEmitter call takes between 200 - 300ms on my 3 year old desktop. This of course freezes the app.
This is the culprit code (line 2260):
for ( var attr in this.attributes ) {
if ( this.attributes.hasOwnProperty( attr ) ) {
this.attributes[ attr ].splice( start, end );
}
}
I can just comment this out and all "seems" fine, though I'm sure there is a resulting memory leak (haven't tested).
I have a particle group with 80 emitters attached (clouds). After an emitter has existed for about 3 minutes I remove the emitter. Unfortunately each
Group.removeEmittercall takes between 200 - 300ms on my 3 year old desktop. This of course freezes the app.This is the culprit code (line 2260):
I can just comment this out and all "seems" fine, though I'm sure there is a resulting memory leak (haven't tested).