frame rate: patch the title limiter when the microsecond clock is set #269

Open
github-bot wants to merge 1 commit from github-bot/gh-269 into main AGit
Owner

@⁠jarvixaiassistant-glitch on GitHub · 2026-11-27 20:25 UTC · original
jarvixaiassistant-glitch:fix/frame-interval-us-patches-title → main · +62 −21 · 3 files · 1 commits · open

Fixes the present lock in #175.

VICTORY_FRAME_INTERVAL_US=1000 (the launcher's no-cap default) already moved our frame clock to 1 ms. The log in #175 shows that, and also title=33.333ms period=3: the title kept its own 30 fps limiter. A frame whose work runs just past 33.3 ms then waits for the next tick, so every present lands at 66.7 ms while preparing and the GPU are each about 30 ms.

VICTORY_FRAME_INTERVAL_MS already patched the title's three reads of its frame-rate setting. This does the same when only the microsecond switch is set. 1000 us becomes rate 1000, which the title treats as no limit. 16667 us is 60, 33333 us is 30. VICTORY_TITLE_FPS=off still leaves the title alone.

The unit checks are in frame_rate::tests::intervals_and_rates. I could not run them here: link.exe is not on this machine's PATH.

Made with Cursor

**@⁠jarvixaiassistant-glitch** on GitHub · 2026-11-27 20:25 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/269) `jarvixaiassistant-glitch:fix/frame-interval-us-patches-title` → `main` · +62 −21 · 3 files · 1 commits · open Fixes the present lock in #175. `VICTORY_FRAME_INTERVAL_US=1000` (the launcher's no-cap default) already moved our frame clock to 1 ms. The log in #175 shows that, and also `title=33.333ms period=3`: the title kept its own 30 fps limiter. A frame whose work runs just past 33.3 ms then waits for the next tick, so every present lands at 66.7 ms while preparing and the GPU are each about 30 ms. `VICTORY_FRAME_INTERVAL_MS` already patched the title's three reads of its frame-rate setting. This does the same when only the microsecond switch is set. 1000 us becomes rate 1000, which the title treats as no limit. 16667 us is 60, 33333 us is 30. `VICTORY_TITLE_FPS=off` still leaves the title alone. The unit checks are in `frame_rate::tests::intervals_and_rates`. I could not run them here: `link.exe` is not on this machine's PATH. Made with [Cursor](https://cursor.com)
The launcher's no-cap default only moved our clock. The title stayed at 30, so a frame just past 33.3 ms waited for the next tick and presents locked at 66.7 ms.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 20:26:43 +00:00
Author
Owner

@⁠1tsethan on GitHub · 2026-11-27 23:00 UTC · original

Independent Windows validation of PR #269.

Tested commit: 7871f8fd45d17218558dcd16453313daebd27015.

cargo test --locked -p victory-loader intervals_and_rates -- --nocapture --test-threads=1

Exit: 0.

  • test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 42 filtered out; finished in 0.00s

Independent verification with OpenAI Codex assistance. Windows 11 Pro build 26200; Rust 1.98.1 MSVC; Windows SDK libraries from Microsoft.Windows.SDK.CPP.x64 10.0.28000.2957. Test harness used an RTX 3070 Ti / AMD integrated-GPU host; adapter identity was not captured for every test. These are focused checks on the stated PR commit, not gameplay, FPS, or a merged-main integration result.

**@⁠1tsethan** on GitHub · 2026-11-27 23:00 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/269#issuecomment-7229795456) Independent Windows validation of PR #269. Tested commit: `7871f8fd45d17218558dcd16453313daebd27015`. `cargo test --locked -p victory-loader intervals_and_rates -- --nocapture --test-threads=1` Exit: **0**. - test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 42 filtered out; finished in 0.00s Independent verification with OpenAI Codex assistance. Windows 11 Pro build 26200; Rust 1.98.1 MSVC; Windows SDK libraries from Microsoft.Windows.SDK.CPP.x64 10.0.28000.2957. Test harness used an RTX 3070 Ti / AMD integrated-GPU host; adapter identity was not captured for every test. These are focused checks on the stated PR commit, not gameplay, FPS, or a merged-main integration result. <!-- victory-native-validation-20261128 -->
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/269/head:github-bot/gh-269'
git switch 'github-bot/gh-269'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-269'
git switch 'github-bot/gh-269'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-269'
git switch 'github-bot/gh-269'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-269'
git switch 'main'
git merge --squash 'github-bot/gh-269'
git switch 'main'
git merge --ff-only 'github-bot/gh-269'
git switch 'main'
git merge 'github-bot/gh-269'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.