[pr-fix][frame-generation][startup] Keep the saved F1 frame generation factor #233

Open
andrewpozdnakov7-jpg wants to merge 2 commits from andrewpozdnakov7-jpg/Darner:port/3274-preserve-saved-framegen-choice into main
First-time contributor

Contributor role (optional)

  • Fluxer ID:

What it changes

A stale plain DARNER_FRAMEGEN_X=4 in a settings file overrides a newer F1 choice of 2x or Off on main. When an F1 choice is present, use that choice. Preserve the legacy factor in files without an F1 selection and continue to apply explicit --set overrides afterwards.

Restores locally saved VIctory-NVIDIA work from December 1, 2026. Previous review: CodeFloe #386. Adapted by andrewpozdnakov7-jpg (GitHub profile).

How it was tested

  • Tested revision: 5b28f58 on f3840d7.
  • Commands and results: A standalone Rust fixture compiled the actual settings resolver from both revisions. Main returned 4 for saved 2x and Off. The patch returned 2 and 0, and retained 4 when F1 had no saved choice. Both explicit CLI aliases and the FSR 4 selection passed. The in-tree regression type-checked with cargo check --locked -p darner --bin darner --tests. xtask policy and git diff --check passed.
  • Changes a default: no.
  • Gates run on that revision: none of the three workspace-wide gates.
  • PowerShell follow-up: the tested precedence guard from superhero-520's report now also applies in play-nvidia.ps1. The reviewer verified Off, 2x, legacy-only and explicit -More on Windows PowerShell 5.1 and PowerShell 7. The committed update passed PowerShell parsing, xtask policy, and git diff --check.
  • Independent gameplay test: akimfomin reported an RTX 4070 Ti SUPER with driver 617.14, Series X 1440p, DLSS Quality and RT off. With stale 4x and saved Off, the release native launcher reported 432 generated frames and the stock PowerShell 5.1 launcher reported 434. Native patch 5b28f58 and the locally guarded PowerShell copy each reported zero. The native 2x control reported 430 generated frames. These are SDK counts, not an FPS comparison.
  • Coverage gaps: The maintainer-facing gameplay evidence is the tester report above. Local checks used synthetic settings.

Checklist

  • I ran this change in the game.
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: #154 also touches launcher settings for the new F1 layout. Its open diff does not change the factor precedence.
  • Replaces or overlaps: none found
## Contributor role (optional) - Fluxer ID: <!-- optional --> ## What it changes A stale plain DARNER_FRAMEGEN_X=4 in a settings file overrides a newer F1 choice of 2x or Off on main. When an F1 choice is present, use that choice. Preserve the legacy factor in files without an F1 selection and continue to apply explicit --set overrides afterwards. Restores locally saved VIctory-NVIDIA work from December 1, 2026. Previous review: [CodeFloe #386](https://codefloe.com/TrustNo1/Darner/pulls/386). Adapted by [andrewpozdnakov7-jpg](https://git.gtahub.st/andrewpozdnakov7-jpg) ([GitHub profile](https://github.com/andrewpozdnakov7-jpg)). ## How it was tested - Tested revision: 5b28f58 on f3840d7. - Commands and results: A standalone Rust fixture compiled the actual settings resolver from both revisions. Main returned 4 for saved 2x and Off. The patch returned 2 and 0, and retained 4 when F1 had no saved choice. Both explicit CLI aliases and the FSR 4 selection passed. The in-tree regression type-checked with cargo check --locked -p darner --bin darner --tests. xtask policy and git diff --check passed. - Changes a default: no. - Gates run on that revision: none of the three workspace-wide gates. - PowerShell follow-up: the tested precedence guard from [superhero-520's report](https://git.gtahub.st/TrustNo1/Darner/pulls/233#issuecomment-861557) now also applies in play-nvidia.ps1. The reviewer verified Off, 2x, legacy-only and explicit -More on Windows PowerShell 5.1 and PowerShell 7. The committed update passed PowerShell parsing, xtask policy, and git diff --check. - Independent gameplay test: [akimfomin reported](https://git.gtahub.st/TrustNo1/Darner/pulls/233#issuecomment-861982) an RTX 4070 Ti SUPER with driver 617.14, Series X 1440p, DLSS Quality and RT off. With stale 4x and saved Off, the release native launcher reported 432 generated frames and the stock PowerShell 5.1 launcher reported 434. Native patch 5b28f58 and the locally guarded PowerShell copy each reported zero. The native 2x control reported 430 generated frames. These are SDK counts, not an FPS comparison. - Coverage gaps: The maintainer-facing gameplay evidence is the tester report above. Local checks used synthetic settings. ## Checklist - [ ] I ran this change in the game. - [x] This PR contains one change based on main. - [x] The diff follows docs/asset-policy.md. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: #154 also touches launcher settings for the new F1 layout. Its open diff does not change the factor precedence. - Replaces or overlaps: none found
Adapt locally saved VIctory-NVIDIA work from December 1, 2026 (a225614, cab8245). Keep the legacy factor for files with no F1 selection and apply explicit --set overrides after the saved choice.

https://git.gtahub.st/andrewpozdnakov7-jpg
https://github.com/andrewpozdnakov7-jpg

Co-authored-by: t91a60 <[email protected]>
First-time contributor

On Windows build 26300 I compared 5b28f589a088faece740775b9b9075633044b16e with its parent f3840d73d3504c30218debfbc8795b9225447317, using separate settings files. With legacy DARNER_FRAMEGEN_X=4, Rust play::prepare installed 0 for saved F1 Off and 2 for saved 2×. Main installed 4 in both cases. With no F1 selection, both kept 4. Both Rust --set aliases installed an explicit 5. The focused play/rig tests passed 61/61 on the PR and 60/60 on main, plus 4/4 F1 persistence tests on the PR.

The PowerShell entry point still loses the F1 selection. In Windows PowerShell 5.1 and PowerShell 7, scripts/play-nvidia.ps1 prepared 4 for both Off and 2× and also set the F1 mirror to 4. I inspected the actual script’s settings map just before the build step.

In a temporary copy, adding if ($k -eq 'DARNER_FRAMEGEN_X' -and $menu.Contains('DARNER_MENU_FRAMEGEN')) { continue } inside the plain-settings loop fixed both cases in both shells. Legacy-only stayed 4, and -More DARNER_FRAMEGEN_X=5 still gave 5. This guard is absent from the current PR. All observations were during settings preparation; no game or frame-generation runtime was exercised.

On Windows build 26300 I compared `5b28f589a088faece740775b9b9075633044b16e` with its parent `f3840d73d3504c30218debfbc8795b9225447317`, using separate settings files. With legacy `DARNER_FRAMEGEN_X=4`, Rust `play::prepare` installed 0 for saved F1 Off and 2 for saved 2×. Main installed 4 in both cases. With no F1 selection, both kept 4. Both Rust `--set` aliases installed an explicit 5. The focused play/rig tests passed 61/61 on the PR and 60/60 on main, plus 4/4 F1 persistence tests on the PR. The PowerShell entry point still loses the F1 selection. In Windows PowerShell 5.1 and PowerShell 7, `scripts/play-nvidia.ps1` prepared 4 for both Off and 2× and also set the F1 mirror to 4. I inspected the actual script’s settings map just before the build step. In a temporary copy, adding `if ($k -eq 'DARNER_FRAMEGEN_X' -and $menu.Contains('DARNER_MENU_FRAMEGEN')) { continue }` inside the plain-settings loop fixed both cases in both shells. Legacy-only stayed 4, and `-More DARNER_FRAMEGEN_X=5` still gave 5. This guard is absent from the current PR. All observations were during settings preparation; no game or frame-generation runtime was exercised.
Apply the same precedence rule in the PowerShell entry point. Keep legacy-only factors and later -More overrides. Based on the tested suggestion in #233 (comment).

https://git.gtahub.st/andrewpozdnakov7-jpg
https://github.com/andrewpozdnakov7-jpg

Co-authored-by: superhero-520 <[email protected]>
First-time contributor

The stale multiplier can actually turn generation on in gameplay when the saved choice says Off. I reproduced this on RTX 4070 Ti SUPER, driver 617.14. All five profiles had plain DARNER_FRAMEGEN_X=4, DLSS Quality, Series X 1440p, RT off and frame generation ready. Each reached the world and exited normally.

Entry point / revision Saved F1 SDK presents on / off Frames shown by FG
Native play, release .02 Off 216 / 660 432
Native play, PR 5b28f58 Off 0 / 934 0
Native play, PR 5b28f58 2× 215 / 568 430
Stock Windows PowerShell 5.1 launcher Off 217 / 486 434
Windows PowerShell 5.1 with the one-line guard from the previous review Off 0 / 880 0

I counted only complete Streamline reporting intervals between +5 and +25 seconds after the first world frame. All reported status 0x0. The stock PowerShell launch printed DARNER_FRAMEGEN_X=4 and DARNER_MENU_FRAMEGEN=4; the guarded copy printed 0 for both. The 2× control shows two output frames per on-present. These SDK counts verify the toggle, not frame rate. The guarded launcher was a local copy. Tested with Codex assistance.

The stale multiplier can actually turn generation on in gameplay when the saved choice says Off. I reproduced this on RTX 4070 Ti SUPER, driver 617.14. All five profiles had plain `DARNER_FRAMEGEN_X=4`, DLSS Quality, Series X 1440p, RT off and frame generation ready. Each reached the world and exited normally. | Entry point / revision | Saved F1 | SDK presents on / off | Frames shown by FG | |---|---|---:|---:| | Native play, release .02 | Off | 216 / 660 | 432 | | Native play, PR `5b28f58` | Off | 0 / 934 | 0 | | Native play, PR `5b28f58` | 2× | 215 / 568 | 430 | | Stock Windows PowerShell 5.1 launcher | Off | 217 / 486 | 434 | | Windows PowerShell 5.1 with the one-line guard from [the previous review](https://git.gtahub.st/TrustNo1/Darner/pulls/233#issuecomment-861557) | Off | 0 / 880 | 0 | I counted only complete Streamline reporting intervals between +5 and +25 seconds after the first world frame. All reported status `0x0`. The stock PowerShell launch printed `DARNER_FRAMEGEN_X=4` and `DARNER_MENU_FRAMEGEN=4`; the guarded copy printed 0 for both. The 2× control shows two output frames per on-present. These SDK counts verify the toggle, not frame rate. The guarded launcher was a local copy. Tested with Codex assistance.
This pull request can be merged automatically.
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 'port/3274-preserve-saved-framegen-choice:andrewpozdnakov7-jpg-port/3274-preserve-saved-framegen-choice'
git switch 'andrewpozdnakov7-jpg-port/3274-preserve-saved-framegen-choice'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'andrewpozdnakov7-jpg-port/3274-preserve-saved-framegen-choice'
git switch 'andrewpozdnakov7-jpg-port/3274-preserve-saved-framegen-choice'
git rebase 'main'
git switch 'main'
git merge --ff-only 'andrewpozdnakov7-jpg-port/3274-preserve-saved-framegen-choice'
git switch 'andrewpozdnakov7-jpg-port/3274-preserve-saved-framegen-choice'
git rebase 'main'
git switch 'main'
git merge --no-ff 'andrewpozdnakov7-jpg-port/3274-preserve-saved-framegen-choice'
git switch 'main'
git merge --squash 'andrewpozdnakov7-jpg-port/3274-preserve-saved-framegen-choice'
git switch 'main'
git merge --ff-only 'andrewpozdnakov7-jpg-port/3274-preserve-saved-framegen-choice'
git switch 'main'
git merge 'andrewpozdnakov7-jpg-port/3274-preserve-saved-framegen-choice'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
3 participants
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
TrustNo1/Darner!233
No description provided.