This commit is contained in:
33333-33333 2026-06-19 02:27:19 +09:00
commit 0e8ece2dc0
23 changed files with 2030 additions and 395 deletions

View file

@ -19,7 +19,9 @@ function loop() {
world.update(dt);
render();
statsTimer += dt;
if (statsTimer > 0.2) {
const perf = world.performanceLevel ? world.performanceLevel() : 0;
const statsInterval = perf >= 3 ? 1.20 : perf === 2 ? 0.92 : perf === 1 ? 0.68 : 0.48;
if (statsTimer > statsInterval) {
renderStats();
statsTimer = 0;
}