Core · interface
LoopOptions
Explained in The loop.
interface LoopOptionsimport type { LoopOptions } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
fixedDtoptional | number | |
maxFrameTimeoptional | number | Clamp for pathological frames (tab switch, debugger) to avoid a sim spiral. |
startTickoptional | number | The tick number the first fixed step reports. Zero unless a caller says otherwise.MoreA participant joining a session in progress is told the host's tick and has to agree with it, because every input and every snapshot is addressed by that number. Starting at zero and adding an offset at each use is the same arithmetic done in more places, and one of them eventually forgets. |
frameSourceoptional | FrameSource | Who asks for the next frame, and what that frame carries.MoreThe window, unless a session is driving. An immersive session produces frames on the
headset's clock through Optional and defaulting to the window, so no existing caller changes.
|