Shell: game loop with fixed timestep #7

Open
opened 2026-10-22 00:45:42 -04:00 by cheech · 0 comments
Owner

Part of Epic: shared game shell.

requestAnimationFrame loop with fixed-step update(dt) (e.g. 120 Hz or 60 Hz) and interpolated render(alpha). Clamp large frame gaps (tab switch) to avoid spiral of death.

Acceptance criteria

  • Deterministic update rate regardless of display refresh
  • Max catch-up steps clamped
  • Seeded RNG utility available to games (for daily challenges)
  • FPS/debug overlay toggle
Part of **Epic: shared game shell**. requestAnimationFrame loop with fixed-step `update(dt)` (e.g. 120 Hz or 60 Hz) and interpolated `render(alpha)`. Clamp large frame gaps (tab switch) to avoid spiral of death. ## Acceptance criteria - [ ] Deterministic update rate regardless of display refresh - [ ] Max catch-up steps clamped - [ ] Seeded RNG utility available to games (for daily challenges) - [ ] FPS/debug overlay toggle
cheech added this to the M0 Foundation milestone 2026-10-22 00:45:42 -04:00
cheech added this to the Roadmap project 2026-10-22 20:53:09 -04:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
NetDagger/arcade#7
No description provided.