gpu: the frame clock follows the title's interval unless asked otherwise #261

Manually merged
github merged 1 commit from github-bot/gh-261 into main 2026-12-02 22:38:35 +00:00 AGit
Owner

@⁠delacor on GitHub · 2026-12-02 22:02 UTC · original
delacor:fix/frame-interval-title-by-default → main · +6 −1 · 1 files · 1 commits · merged 2026-12-02 22:35 UTC

VICTORY_FRAME_INTERVAL_MS says "unset, the title's interval as before", but an unset switch ticked at a fixed 10 ms, a benchmark's value left in the default. The world asks 33.333 ms and the menus 16.667 ms, so the frame clock ran up to three times faster than the audio, which the host plays in real time: picture and sound drifted apart within seconds of play.

Measured in the world with the title's interval: 30.0 fps over 5-second windows (29.9, 30.2, 28.7) against the title's own 30, and the sound stays with the picture. With the 10 ms default the same scene ticked at 100 Hz.

**@⁠delacor** on GitHub · 2026-12-02 22:02 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/261) `delacor:fix/frame-interval-title-by-default` → `main` · +6 −1 · 1 files · 1 commits · merged 2026-12-02 22:35 UTC `VICTORY_FRAME_INTERVAL_MS` says "unset, the title's interval as before", but an unset switch ticked at a fixed 10 ms, a benchmark's value left in the default. The world asks 33.333 ms and the menus 16.667 ms, so the frame clock ran up to three times faster than the audio, which the host plays in real time: picture and sound drifted apart within seconds of play. Measured in the world with the title's interval: 30.0 fps over 5-second windows (29.9, 30.2, 28.7) against the title's own 30, and the sound stays with the picture. With the 10 ms default the same scene ticked at 100 Hz.
`VICTORY_FRAME_INTERVAL_MS` says "unset, the title's interval as before", but
an unset switch ticked at a fixed 10 ms, a benchmark's value left in the
default. The world asks 33.333 ms and the menus 16.667 ms, so the frame clock
ran up to three times faster than the audio, which the host plays in real
time: picture and sound drifted apart within seconds of play.

Measured in the world with the title's interval: 30.0 fps over 5-second
windows (29.9, 30.2, 28.7) against the title's own 30, and the sound stays
with the picture. With the 10 ms default the same scene ticked at 100 Hz.

Read the variable as absent when it is unset. "title" and a number of
milliseconds still mean what they say, so a benchmark can still ask for a
fixed interval.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 22:06:06 +00:00
github manually merged commit 9eaf3b14d8 into main 2026-12-02 22:38:35 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.