add updatesPerSecond
This commit is contained in:
parent
cf054b01d9
commit
d42774ad1f
@ -46,6 +46,10 @@ export class World {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get updatesPerSecond() {
|
||||||
|
return (this.numTicks / this.timer.time()) * 1000;
|
||||||
|
}
|
||||||
|
|
||||||
loopStep() {
|
loopStep() {
|
||||||
window.requestAnimationFrame(() => this.loopStep());
|
window.requestAnimationFrame(() => this.loopStep());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user