update duration for warn messages

This commit is contained in:
Evan
2024-12-23 10:34:19 -08:00
parent 4e1b37d976
commit 07f8e4dd26
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ export class GameRunner {
const start = performance.now()
this.gs.executeNextTick()
const duration = performance.now() - start
if (duration > 100) {
if (duration > 200) {
console.warn(`tick ${this.gs.ticks() - 1} took ${duration}ms to execute`)
}
} catch (error) {
+1 -1
View File
@@ -143,7 +143,7 @@ export class GameRenderer {
requestAnimationFrame(() => this.renderGame());
const duration = performance.now() - start
if (duration > 10) {
if (duration > 50) {
console.warn(`tick ${this.game.ticks()} took ${duration}ms to render frame`)
}
}