The frame generation watch counts about 2 s of presents, not 90 #3718

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

@⁠stasadance on GitHub · 2026-11-30 04:37 UTC · original
stasadance:fix/fg-watch-by-time → main · +21 −2 · 1 files · 1 commits · open

Related: #592, #2938

What it changes

The watch that switches DLSS frame generation off and on again, when it shows one frame a present with more asked (status 0), counted 90 presents (VICTORY_FRAMEGEN_REARM). At 4 to 6 fps that is 15 to 22 s, and a stall of one frame a present that lasted about 10 s ended before the watch fired, so it was never switched and FG stayed at one frame a present.

The limit is now about 2 s at the current present rate (a running average of the present interval), between 8 presents and VICTORY_FRAMEGEN_REARM. VICTORY_FRAMEGEN_REARM=0 still turns the watch off. Only the limit changes; stuck_step and the re-arm itself are as before.

How it was tested

  • GPU and profile: RTX 4090 on Linux (NVIDIA 620.73.04, kron4ek Wine 11.23, vkd3d-proton GE cae8353ed), DLSS + frame generation 2X
  • Before: after long stalls, FG kept showing one frame a present ("FG still showed one frame a present after being switched again", 4 times in one run, 18 "one frame a present that long" warnings).
  • After: 3 FG switches in a run, 0 "one frame a present" stuck warnings.
  • cargo test passed for the crates it touches: native cargo test cannot build victory-gpu on a Linux host (same on main), so no; cargo xwin clippy for the Windows target adds no warning over current main.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #592 (the present-count re-arm), #2938 (also edits present_ends), #3065.
**@⁠stasadance** on GitHub · 2026-11-30 04:37 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3718) `stasadance:fix/fg-watch-by-time` → `main` · +21 −2 · 1 files · 1 commits · open Related: #592, #2938 ## What it changes The watch that switches DLSS frame generation off and on again, when it shows one frame a present with more asked (status 0), counted 90 presents (`VICTORY_FRAMEGEN_REARM`). At 4 to 6 fps that is 15 to 22 s, and a stall of one frame a present that lasted about 10 s ended before the watch fired, so it was never switched and FG stayed at one frame a present. The limit is now about 2 s at the current present rate (a running average of the present interval), between 8 presents and `VICTORY_FRAMEGEN_REARM`. `VICTORY_FRAMEGEN_REARM=0` still turns the watch off. Only the limit changes; `stuck_step` and the re-arm itself are as before. ## How it was tested - GPU and profile: RTX 4090 on Linux (NVIDIA 620.73.04, kron4ek Wine 11.23, vkd3d-proton GE cae8353ed), DLSS + frame generation 2X - Before: after long stalls, FG kept showing one frame a present ("FG still showed one frame a present after being switched again", 4 times in one run, 18 "one frame a present that long" warnings). - After: 3 FG switches in a run, 0 "one frame a present" stuck warnings. - `cargo test` passed for the crates it touches: native `cargo test` cannot build `victory-gpu` on a Linux host (same on main), so no; `cargo xwin clippy` for the Windows target adds no warning over current main. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #592 (the present-count re-arm), #2938 (also edits `present_ends`), #3065.
At 4-6 fps a stall of one frame a present (status 0) ran 10 s, shorter than
90 presents, and was never switched off and on again. The limit is now 2 s
at the present rate, 8..=VICTORY_FRAMEGEN_REARM presents.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 04:44:56 +00:00
Author
Owner

@⁠dyshay on GitHub · 2026-11-30 05:50 UTC · original

Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch janus-prs). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with --profile diag --features diagnostics, and the CPU tests of the touched crates pass. A run on an RTX 4090 is queued (Series S with ray tracing, DLSS Quality). Frame times will follow here.

**@⁠dyshay** on GitHub · 2026-11-30 05:50 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3718#issuecomment-7270049256) Merged into our fork's integration branch for testing ([dyshay/VIctory-NVIDIA](https://github.com/dyshay/VIctory-NVIDIA/tree/janus-prs), branch `janus-prs`). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with `--profile diag --features diagnostics`, and the CPU tests of the touched crates pass. A run on an RTX 4090 is queued (Series S with ray tracing, DLSS Quality). Frame times will follow here.
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/3718/head:github-bot/gh-3718'
git switch 'github-bot/gh-3718'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3718'
git switch 'github-bot/gh-3718'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3718'
git switch 'github-bot/gh-3718'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3718'
git switch 'main'
git merge --squash 'github-bot/gh-3718'
git switch 'main'
git merge --ff-only 'github-bot/gh-3718'
git switch 'main'
git merge 'github-bot/gh-3718'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3718
No description provided.