mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 16:46:35 +00:00
update duration for warn messages
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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`)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user