Skip to content

Restore the saved viewport before replay anchor loading - #11

Merged
mstan merged 1 commit into
mainfrom
fix/replay-anchor-viewport-20261106
Nov 7, 2026
Merged

mstan merged 1 commit into
mainfrom
fix/replay-anchor-viewport-20261106

Conversation

@mstan

@mstan mstan commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Starting an anchored replay initialized the core with an unavailable viewport, then adopted the recorded drawable size only on the first frame. A core that binds saved presentation history to the viewport could reject that history and diverge immediately.

Record the anchor's viewport in boot metadata and apply it before core initialization/loading. Keep each subsequent frame's recorded size, including a resize on the first field.

Validation: the fixture requires a 1440x900 viewport during anchor restore while its first field uses 640x480; it fails on the original code and passes with this change. Native Windows tests: 46 passed. Native Linux tests: 50 passed. Actual Smash Vulkan 4x/Fit replay with the normal density badge passes 200 picture/audio checkpoints in a fresh runner, linked playback to the recorded end, and takeover at field 40. No checkpoint comparisons were removed.

@mstan
mstan marked this pull request as ready for review November 7, 2026 04:35
@mstan
mstan merged commit 9f3ef12 into main Nov 7, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant