refactor: no emitter frequency update for now

This commit is contained in:
cha0s 2019-05-09 19:49:44 -05:00
parent 414a1eb5a0
commit cec3769802

View File

@ -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);