# Interface: FixedClockOptions

Defined in: [core/src/clock.ts:3](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/clock.ts#L3)

Fixed-timestep accumulator. Simulation advances in exact `step` increments so
 scenarios can replay identically; rendering receives the leftover `alpha`.

## Properties

### budgetMs?

> `optional` **budgetMs?**: `number`

Defined in: [core/src/clock.ts:14](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/clock.ts#L14)

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?

> `optional` **maxFrame?**: `number`

Defined in: [core/src/clock.ts:7](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/clock.ts#L7)

Cap on real elapsed time per frame, to avoid a spiral after tab switches. Default 0.25s.

***

### step?

> `optional` **step?**: `number`

Defined in: [core/src/clock.ts:5](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/clock.ts#L5)

Simulation step in seconds. Default 1/60.
