dolphin_frame_advance
Blocks until a specified number of frames have rendered in Dolphin, enabling frame-precise TAS sequencing by waiting for the frame counter to advance.
Instructions
PURPOSE: Wait until the emulator has rendered N more frames since this call started. USAGE: TAS-style frame-precise sequencing. Typical loop: pause → set controller state → frame_advance(1) → read memory → repeat. The bridge maintains a monotonic frame counter via Felk's on_frameadvance callback; this tool reads the counter, then waits for it to reach counter+frames. The emulator must be UNPAUSED for the counter to advance — call dolphin_resume first if you've paused. BEHAVIOR: Blocks until the target frame is reached or the per-call timeout fires (15 s by default). If the emulator is paused and stays paused, this will time out. Does NOT pause/resume on its own. RETURNS: 'Advanced to frame N (waited M frames).'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frames | Yes | Number of frames to wait for (1-600 — i.e. up to 10 seconds at 60 fps). Larger values can be chained. |