Header menu logo Mibo

FixedStepConfig<'Msg> Type

Configuration for a framework-managed fixed timestep simulation.

When enabled, the runtime converts MonoGame's variable ElapsedGameTime into zero or more fixed-size simulation steps per MonoGame Update call.

Record fields

Record Field Description

Map

Full Usage: Map

Field type: float32 -> 'Msg

Maps a fixed-step delta (seconds) to a message.

Field type: float32 -> 'Msg

MaxFrameSeconds

Full Usage: MaxFrameSeconds

Field type: float32 voption

Clamp the per-frame delta used for accumulation.

Default behavior is to clamp to 0.25 seconds.

Field type: float32 voption

MaxStepsPerFrame

Full Usage: MaxStepsPerFrame

Field type: int

Maximum number of fixed steps to run in a single MonoGame frame.

This prevents the "spiral of death" after long stalls. If the cap is hit, remaining accumulated time is dropped.

Field type: int

StepSeconds

Full Usage: StepSeconds

Field type: float32

Fixed simulation step size in seconds (e.g. 1/60 = 0.0166667).

Field type: float32

Type something to start searching.