1
0
Fork 0
polaris-task-force/src
Z8MB1E 2713a786e4 fix(arena): clamp early-timer catch-up so the tick loop holds 20Hz
Node timers can fire a sub-millisecond early relative to
performance.now(); Math.floor((now - scheduledFor) / TICK_MS) then yields
-1, and (1 + extra) shaved a whole tick off the next schedule. The
resulting delay-0 re-fire doubled the sim rate (~33-40Hz observed on the
live arena during integration testing; local repro confirmed it is the
scheduler, not the host).

Clamp extra to [0, TICK_CATCHUP_CAP] and add a wall-clock regression test
that pins driftReport ticksRun to ~20/s (fails at the doubled rate).
2026-10-19 13:12:20 -04:00
..
app feat(arena): websocket match replication for Ordnance Disposal 2026-10-19 12:27:17 -04:00
arena fix(arena): clamp early-timer catch-up so the tick loop holds 20Hz 2026-10-19 13:12:20 -04:00
assets/images feat: application staging deployment (ensure better commits after this) 2025-12-15 01:14:30 -05:00
bot feat(bot): add edit modal to /changelog for last-minute copy tweaks 2026-10-15 12:34:18 -04:00
collections feat(minigames): add Ordnance Disposal (bomperator) multiplayer drill 2026-10-16 00:32:52 -04:00
components feat(arena): websocket match replication for Ordnance Disposal 2026-10-19 12:27:17 -04:00
hooks feat(minigames): add Ordnance Disposal (bomperator) multiplayer drill 2026-10-16 00:32:52 -04:00
lib fix(ai-compose): one prose output contract for every field prompt 2026-10-19 13:03:33 -04:00
migrations feat(ai): configure Compose model and label via env 2026-10-19 12:13:22 -04:00
permissions feat(analytics): add first-party analytics collector, SDK, rollups, and admin dashboard 2026-10-14 12:12:53 -04:00
scripts feat(analytics): add first-party analytics collector, SDK, rollups, and admin dashboard 2026-10-14 12:12:53 -04:00
tools feat(garage): add vehicle bay schema fields, geometry helpers, and backfill 2026-10-13 16:02:58 -04:00
utils feat(minigames): add Ordnance Disposal (bomperator) multiplayer drill 2026-10-16 00:32:52 -04:00
payload-generated-schema.ts feat(ai): configure Compose model and label via env 2026-10-19 12:13:22 -04:00
payload-types.ts fix(ai-compose): one prose output contract for every field prompt 2026-10-19 13:03:33 -04:00
payload.config.ts fix(ai-compose): one prose output contract for every field prompt 2026-10-19 13:03:33 -04:00