DEFAULT_MAX_STEPS

const DEFAULT_MAX_STEPS: 8

How many ticks may be run for a single frame at 1× before we give up and let the clock fall behind. Without a cap, a tab that was backgrounded for a minute comes back and tries to run 3,840 ticks in one frame, which freezes the page and then tries again next frame — the classic spiral of death.

simulation/src/clock.ts:36