perf: lazy
This commit is contained in:
parent
d6af0199c9
commit
9afb5bba81
|
@ -564,10 +564,14 @@ export default class Ecs {
|
|||
}
|
||||
}
|
||||
// update indices
|
||||
this.deindex(this.$$deindexing);
|
||||
this.$$deindexing.clear();
|
||||
this.reindex(this.$$reindexing);
|
||||
this.$$reindexing.clear();
|
||||
if (this.$$deindexing.size > 0) {
|
||||
this.deindex(this.$$deindexing);
|
||||
this.$$deindexing.clear();
|
||||
}
|
||||
if (this.$$reindexing.size > 0) {
|
||||
this.reindex(this.$$reindexing);
|
||||
this.$$reindexing.clear();
|
||||
}
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user