dosbox_watch_frames
Monitor the guest's video memory and save every distinct frame with its appearance timestamp, enabling accurate timing of animations, fades, and transitions without affecting guest performance.
Instructions
Watch the guest's video memory and return every distinct frame it put up, with the moment each appeared. This is how to measure an animation, a fade or a transition -- reading video memory does not slow the guest the way filming the window does, so the timings are the guest's own. Frames are written as _NNN.png.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| stem | No | Where to write the frames; omit to only count them. | |
| seconds | Yes | How long to watch. | |
| reference | No | Path to a 64,000-byte frame on screen now, to confirm the page. | |
| max_frames | No | ||
| interval_seconds | No | ||
| allow_unconfirmed | No | Accept an unconfirmed blind scan. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||