refactor: render tick
This commit is contained in:
parent
c30c4cfdc2
commit
70f30c4576
|
@ -141,7 +141,7 @@ export default (latus) => class Emitter extends decorate(Trait) {
|
|||
this.#emitter.destroy();
|
||||
return true;
|
||||
}
|
||||
this.tick(elapsed);
|
||||
this.renderTick(elapsed);
|
||||
return false;
|
||||
};
|
||||
hooks.destroy = () => () => 0 === this.#streams.length;
|
||||
|
@ -330,7 +330,7 @@ export default (latus) => class Emitter extends decorate(Trait) {
|
|||
: [];
|
||||
}
|
||||
|
||||
tick(elapsed) {
|
||||
renderTick(elapsed) {
|
||||
this.#emitter.update(elapsed);
|
||||
for (let i = 0; i < this.#emissions.length; i++) {
|
||||
this.#emissions[i].tick(elapsed);
|
||||
|
|
Loading…
Reference in New Issue
Block a user