Skip to content

TickSource

Defined in: src/tick-source.ts:26

Pluggable “when does a tick fire” contract. Core ships the interface; concrete implementations (ManualTickSource, future FixedTickSource, VariableTickSource, …) live in @pierre/ecs/modules/tick.

Implementations decide how ticks are produced (caller-driven, interval, requestAnimationFrame, fixed accumulator, …) and TickRunner stays source-agnostic.

start: () => void

Defined in: src/tick-source.ts:27

void


stop: () => void

Defined in: src/tick-source.ts:28

void


subscribe: (handler) => () => void

Defined in: src/tick-source.ts:29

(info) => void

() => void