Skip to content

TimeState

Defined in: packages/engine/src/stores/time.ts:4

Property Type Description
running boolean Whether the loop runs: true from its mount until a frame throws or it unmounts. A game’s own frame callback or page event checks it before writing the world anywhere, so a half-stepped world is never saved.
seconds number Simulated seconds since the loop started: the steps, not the wall.
steps number Fixed steps since the loop started.