Skip to main content

Module pacing

Module pacing 

Source
Expand description

When the next frame runs.

A frame is booked by something happening — an input, a resize, a chrome press — or by the kernel asking for one. Nothing else runs a frame, and at most one booking stands at a time, so a burst of pointer moves inside one animation frame paints once. The rules are a state machine over plain values with no browser in them; the shell performs what they answer.

Structs§

Pacing
The frame loop’s booking, as a value.
Ticket
Which booking a timer callback belongs to. A timer that fires after something sooner has already booked the frame is stale, and a ticket is how it finds that out.

Enums§

Schedule
What the shell should book.
Waiting 🔒
What the loop is waiting on.