refactor: no emitter frequency update for now
This commit is contained in:
parent
414a1eb5a0
commit
cec3769802
|
@ -11,7 +11,7 @@ export class Emitter extends decorate(Trait) {
|
|||
super(entity, params, state);
|
||||
this.emitters = {};
|
||||
if (AVOCADO_CLIENT) {
|
||||
this.ticker = new Ticker(1 / 10);
|
||||
this.ticker = new Ticker(1 / 60);
|
||||
this.ticker.on('tick', this.onTick, this);
|
||||
}
|
||||
}
|
||||
|
@ -48,7 +48,6 @@ export class Emitter extends decorate(Trait) {
|
|||
}
|
||||
|
||||
onTick(elapsed) {
|
||||
this.updateFrequency();
|
||||
for (const key in this.emitters) {
|
||||
const emitter = this.emitters[key];
|
||||
emitter.tick(elapsed);
|
||||
|
|
Loading…
Reference in New Issue
Block a user