diff --git a/artworld/world.js b/artworld/world.js index 7e2d1e4..19cc69c 100644 --- a/artworld/world.js +++ b/artworld/world.js @@ -46,6 +46,10 @@ export class World { } } + get updatesPerSecond() { + return (this.numTicks / this.timer.time()) * 1000; + } + loopStep() { window.requestAnimationFrame(() => this.loopStep());