Skip to content

advanceFrames

advanceFrames(engine, n, dtMs?): void

Defined in: test-utils.ts:90

Advance the game loop by N frames (manual tick).

dtMs is the per-frame wall-clock delta in milliseconds, matching what a PixiJS ticker reports. The loop converts it to seconds internally, so a component’s update(dt) sees dtMs / 1000 seconds. The default 1000 / 60 is one 60fps frame (≈16.67ms → ≈0.0167s).

Engine

number

number = ...

void

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/core.md.