fix: oh right, math

This commit is contained in:
cha0s 2019-04-19 23:35:33 -05:00
parent 0b9f9e48b8
commit 02bee09853

View File

@ -342,7 +342,7 @@ export class App extends decorate(class {}) {
this.actionState = this.actionRegistry.state;
this.socket.send(InputPacket.fromState(this.actionState));
}
}, 1 / config.inputFrequency);
}, 1000 * config.inputFrequency);
// Mouse/touch movement.
this.pointerMovementHandle = setInterval(() => {
do {
@ -371,7 +371,7 @@ export class App extends decorate(class {}) {
}
});
} while (false);
}, 1 / config.pointerMovementFrequency);
}, 1000 * config.pointerMovementFrequency);
// Focus the stage.
this.stage.focus();
}
@ -401,7 +401,7 @@ export class App extends decorate(class {}) {
// Tick synchronized.
this.synchronizer.tick(elapsed);
this.state = this.synchronizer.state;
}, 1 / config.simulationFrequency);
}, 1000 * config.simulationFrequency);
}
stopProcessingInput() {