跳转到内容

runHeadless

此内容尚不支持你的语言。

runHeadless(app, options?): () => void

Defined in: runtime/webAppFactory.ts:89

Drive an app on a wall-clock interval (no requestAnimationFrame on a server). Delta is measured, so the fixed-step accumulator keeps simulation cadence exact across timer jitter. Returns a stop function.

Pre-1.0: paired with createHeadlessApp, evolves with it.

App

number

() => void