Explain when a DLSS mode override masks the F1 choice #3632

Open
github-bot wants to merge 2 commits from github-bot/gh-3632 into main AGit
Owner

@⁠ThePerfomance on GitHub · 2026-11-30 02:19 UTC · original
ThePerfomance:diagnostics/dlss-mode-override → main · +49 −8 · 1 files · 2 commits · open

What it changes

The built-in launcher keeps explicit --set options when F1 restarts it. In a local run, F1 saved DLSS Balanced while an earlier --set VICTORY_DLSS_MODE=quality kept the game on Quality. The player had to inspect a log containing both settings to explain the result.

When a valid VICTORY_DLSS_MODE differs from the F1 choice and DLSS is enabled, the launcher now names both modes on the console and in the play log. Settings precedence stays the same. Equivalent spellings are compared through the runtime's DLSS mode parser.

How it was tested

  • Reproduced the Balanced/Quality mismatch in isolation using the built-in launcher with a synthetic file and a deliberately invalid TOML configuration to stop before title execution. Verified the new line in both the console and play log.
  • The regression test also covers equivalent spellings and an unavailable SDK. All 84 tests from cargo test --locked -p victory passed on Windows. The changed file passed the asset policy check.

Checked for overlap

  • Searched open PRs for DLSS mode, explicit launch overrides and F1 persistence. #2868 handles explicit unsets and restart settings. #3248 reports why frame generation is unavailable when DLSS is off.

AI-assisted contribution using OpenAI Codex.

**@⁠ThePerfomance** on GitHub · 2026-11-30 02:19 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3632) `ThePerfomance:diagnostics/dlss-mode-override` → `main` · +49 −8 · 1 files · 2 commits · open ## What it changes The built-in launcher keeps explicit `--set` options when F1 restarts it. In a local run, F1 saved DLSS Balanced while an earlier `--set VICTORY_DLSS_MODE=quality` kept the game on Quality. The player had to inspect a log containing both settings to explain the result. When a valid `VICTORY_DLSS_MODE` differs from the F1 choice and DLSS is enabled, the launcher now names both modes on the console and in the play log. Settings precedence stays the same. Equivalent spellings are compared through the runtime's DLSS mode parser. ## How it was tested - Reproduced the Balanced/Quality mismatch in isolation using the built-in launcher with a synthetic file and a deliberately invalid TOML configuration to stop before title execution. Verified the new line in both the console and play log. - The regression test also covers equivalent spellings and an unavailable SDK. All 84 tests from `cargo test --locked -p victory` passed on Windows. The changed file passed the asset policy check. ## Checked for overlap - [x] Searched open PRs for DLSS mode, explicit launch overrides and F1 persistence. #2868 handles explicit unsets and restart settings. #3248 reports why frame generation is unavailable when DLSS is off. AI-assisted contribution using OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 02:21:15 +00:00
Author
Owner

@⁠Trillazill on GitHub · 2026-11-30 04:01 UTC · original · reviewed

Reviewed against 41adb551, and it looks right to me.

  • Spellings: Mode::name() returns exactly the menu's spellings (dlaa, quality, balanced, performance, ultraperformance), so equivalent forms (BALANCED, ultra-performance, native) don't produce a false note. The test covers the upper-case case.
  • Where it fires: the new branch only runs with DLSS on. The FSR 4 path, which writes its own VICTORY_DLSS_MODE=quality, goes through the DLSS-off branch, so it gets no false note. An override that turns DLSS off (VICTORY_DLSS=0) is skipped too.
  • Lower case is fine: the note only reaches the console and the play log, never the overlay font (which has capitals only).
  • The rename is safe: nothing else in the tree uses VICTORY_MENU_NO_DLSS_NOTE (git grep).
  • cargo test --locked -p victory: 84 passed, including a_dlss_mode_override_is_reported_when_it_masks_the_menu_choice. Clippy finds nothing new in play.rs.

One optional idea: the override can come from --set or from a non-VICTORY_MENU_ line in victory-settings.txt, and the note reads the same either way. Saying which ("from --set" / "from victory-settings.txt") would tell the player where to take it out.

**@⁠Trillazill** on GitHub · 2026-11-30 04:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3632#pullrequestreview-6106738327) · **reviewed** Reviewed against 41adb551, and it looks right to me. - **Spellings:** `Mode::name()` returns exactly the menu's spellings (`dlaa`, `quality`, `balanced`, `performance`, `ultraperformance`), so equivalent forms (`BALANCED`, `ultra-performance`, `native`) don't produce a false note. The test covers the upper-case case. - **Where it fires:** the new branch only runs with DLSS on. The FSR 4 path, which writes its own `VICTORY_DLSS_MODE=quality`, goes through the DLSS-off branch, so it gets no false note. An override that turns DLSS off (`VICTORY_DLSS=0`) is skipped too. - **Lower case is fine:** the note only reaches the console and the play log, never the overlay font (which has capitals only). - **The rename is safe:** nothing else in the tree uses `VICTORY_MENU_NO_DLSS_NOTE` (`git grep`). - `cargo test --locked -p victory`: 84 passed, including `a_dlss_mode_override_is_reported_when_it_masks_the_menu_choice`. Clippy finds nothing new in `play.rs`. One optional idea: the override can come from `--set` or from a non-`VICTORY_MENU_` line in `victory-settings.txt`, and the note reads the same either way. Saying which ("from --set" / "from victory-settings.txt") would tell the player where to take it out.
Author
Owner

@⁠ThePerfomance on GitHub · 2026-11-30 04:09 UTC · original

Thanks for the review, @⁠Trillazill. I took your suggestion in a9366cf. The launch notice now says whether the DLSS override came from --set or victory-settings.txt. I checked both sources and confirmed that the notice points to --set when both are present. All 84 launcher tests passed.

**@⁠ThePerfomance** on GitHub · 2026-11-30 04:09 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3632#issuecomment-7268525298) Thanks for the review, @⁠Trillazill. I took your suggestion in a9366cf. The launch notice now says whether the DLSS override came from `--set` or `victory-settings.txt`. I checked both sources and confirmed that the notice points to `--set` when both are present. All 84 launcher tests passed.
Author
Owner

@⁠Trillazill on GitHub · 2026-11-30 05:37 UTC · original

Checked a9366cf9, and it looks right: 84 tests in cargo test --locked -p victory pass.

  • --set wins when both set it, as intended: its loop runs second and overwrites dlss_mode_source, which the second half of the test covers.
  • Trimming k once means the new source check sees VICTORY_DLSS_MODE = quality (with spaces) too, and the test uses that form.
  • A note now needs a source. A mode the launcher sets itself (equal to the F1 choice) never had one anyway, so nothing is lost there.
**@⁠Trillazill** on GitHub · 2026-11-30 05:37 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3632#issuecomment-7269848485) Checked a9366cf9, and it looks right: 84 tests in `cargo test --locked -p victory` pass. - `--set` wins when both set it, as intended: its loop runs second and overwrites `dlss_mode_source`, which the second half of the test covers. - Trimming `k` once means the new source check sees `VICTORY_DLSS_MODE = quality` (with spaces) too, and the test uses that form. - A note now needs a source. A mode the launcher sets itself (equal to the F1 choice) never had one anyway, so nothing is lost there.
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/3632/head:github-bot/gh-3632'
git switch 'github-bot/gh-3632'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3632'
git switch 'github-bot/gh-3632'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3632'
git switch 'github-bot/gh-3632'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3632'
git switch 'main'
git merge --squash 'github-bot/gh-3632'
git switch 'main'
git merge --ff-only 'github-bot/gh-3632'
git switch 'main'
git merge 'github-bot/gh-3632'
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!3632
No description provided.