Documentation / @debuffjp/core / FixedClockOptions
Interface: FixedClockOptions
Defined in: core/src/clock.ts:3
Fixed-timestep accumulator. Simulation advances in exact step increments so scenarios can replay identically; rendering receives the leftover alpha.
Properties
budgetMs?
optionalbudgetMs?:number
Defined in: core/src/clock.ts:14
Stop catching up once a frame's steps have taken this many real milliseconds, and drop the rest of the backlog, so a simulation too heavy for real time runs slower instead of collapsing the frame rate. At least one step runs per due frame. Off by default. game.step() takes one step per call, so scenarios and replays are unaffected. Added in 0.28.
maxFrame?
optionalmaxFrame?:number
Defined in: core/src/clock.ts:7
Cap on real elapsed time per frame, to avoid a spiral after tab switches. Default 0.25s.
step?
optionalstep?:number
Defined in: core/src/clock.ts:5
Simulation step in seconds. Default 1/60.