d3d12: honor the saved DLSS upscaler on Series X #3250

Open
jxzrx wants to merge 1 commit from upstream-pr/3250 into main
jxzrx commented 2026-12-02 22:32:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by jxzrx on 2026-12-02T22:32:07Z.


Claimed in the coordination issue as: D3D12-SERIES-X-F1-DLSS

I switched GitHub accounts after my original claim. This pull request continues that work.

Depends on: #3039

Both changes touch the Series X experimental-upscaling warning.

What and why

The Series X launcher drops a DLSS choice saved in F1 after loading the menu settings. Preserve that choice on a fresh launch and on SAVE AND RESTART NOW. Update the warning to explain how to return to the title's own upscaler.

The README also explains how frame generation can use G-buffer inputs with the title's own upscaler. Related to #2885 and #3137. The fresh-launch regression covers the coordination follow-up.

Tested

  • The updated menu test against main f3865cae8 reproduced two launch summary failures.
  • python -I -B tests/test_play_nvidia_menu_choice.py passed all 16 tests with the fix.
  • python -I -B tests/test_leonida_launcher.py passed all 26 tests.
  • python -I scripts/check_no_game_data.py and git diff --check passed.

GPUs tested: n/a. Launcher DryRun fixtures only.

AI-assisted: GPT-6.2 Sol for implementation and a separate GPT-6.2 Sol agent for independent read-only review.

Checklist

  • Based on the checked main revision f3865cae8.
  • One topic.
  • No game data, keys, or decryption.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5615884885 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3250). Originally posted by [jxzrx](https://github.com/jxzrx) on 2026-12-02T22:32:07Z. --- Claimed in the coordination issue as: [D3D12-SERIES-X-F1-DLSS](https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7360686585) I switched GitHub accounts after my [original claim](https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7355442548). This pull request continues that work. Depends on: #3039 Both changes touch the Series X experimental-upscaling warning. ### What and why The Series X launcher drops a DLSS choice saved in F1 after loading the menu settings. Preserve that choice on a fresh launch and on SAVE AND RESTART NOW. Update the warning to explain how to return to the title's own upscaler. The README also explains how frame generation can use G-buffer inputs with the title's own upscaler. Related to #2885 and #3137. The fresh-launch regression covers the [coordination follow-up](https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7360308870). ### Tested - The updated menu test against main `f3865cae8` reproduced two launch summary failures. - `python -I -B tests/test_play_nvidia_menu_choice.py` passed all 16 tests with the fix. - `python -I -B tests/test_leonida_launcher.py` passed all 26 tests. - `python -I scripts/check_no_game_data.py` and `git diff --check` passed. GPUs tested: n/a. Launcher DryRun fixtures only. AI-assisted: GPT-6.2 Sol for implementation and a separate GPT-6.2 Sol agent for independent read-only review. ### Checklist - [x] Based on the checked main revision `f3865cae8`. - [x] One topic. - [x] No game data, keys, or decryption.
merzleckeier commented 2026-12-02 22:36:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T22:36:20Z.

Review: COMMENTED


Reviewed 0b404b14 against main at 16243cd6. I ran six isolated Linux PowerShell dry runs on each revision with synthetic SDK and runtime files. A saved Series X DLSS choice with scale 0.6 is discarded by the base and becomes LEONIDA_UPSCALE=dlss, LEONIDA_FSR_UPSCALER=1 with this patch, both at a fresh start and on -Lowest 1080 -MenuRestart. Typed -Lowest, missing DLSS files, frame generation without a saved choice, and returning to GAME OWN on restart all matched the base. This covers launcher settings only.

For the declared #3039 overlap: its current head 69c19086 already conflicts with current main in host.rs and switches.md. Combining it with this PR also conflicts in the launcher’s experimental warning. I checked that #3230 and #3247 merge cleanly with this head.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6160265135 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3250#pullrequestreview-6160265135). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T22:36:20Z. **Review:** COMMENTED --- Reviewed `0b404b14` against `main` at `16243cd6`. I ran six isolated Linux PowerShell dry runs on each revision with synthetic SDK and runtime files. A saved Series X DLSS choice with scale `0.6` is discarded by the base and becomes `LEONIDA_UPSCALE=dlss`, `LEONIDA_FSR_UPSCALER=1` with this patch, both at a fresh start and on `-Lowest 1080 -MenuRestart`. Typed `-Lowest`, missing DLSS files, frame generation without a saved choice, and returning to GAME OWN on restart all matched the base. This covers launcher settings only. For the declared #3039 overlap: its current head `69c19086` already conflicts with current `main` in `host.rs` and `switches.md`. Combining it with this PR also conflicts in the launcher’s experimental warning. I checked that #3230 and #3247 merge cleanly with this head.
fiestorra commented 2026-12-02 22:56:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T22:56:15Z.


VERIFY-3250 — Windows nativo: red then green y la rama fusiona limpia sobre el main de ahora

Own commit 0b404b144 — README.md, play-nvidia.ps1, tests/test_play_nvidia_menu_choice.py (+17/−3)
Merge base f3865cae8; git merge-tree against main 16243cd6e → clean (no conflict lines)

Ran at the head

python -I tests/test_play_nvidia_menu_choice.py      Ran 16 tests — OK

Negative control (the commit's own hunk in play-nvidia.ps1 reverted with git apply -R, the tests kept):

FAIL: test_the_dlss_build_is_asked_for_once_its_sdk_is_here_whatever_the_switches
Ran 16 tests — FAILED (failures=2)

The tests bite on the switch logic this commit changes.

What the change is: the saved DLSS upscaler is honoured on Series X — the DLSS build is asked for once its SDK is present, whatever the switches said, instead of the per-profile default overriding the player's saved choice. The README and the menu test move with it.

What I could not test: a launch on Series X with a saved DLSS choice — the tests drive the argument mapping, not the title.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7361352688 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3250#issuecomment-7361352688). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-02T22:56:15Z. --- ## VERIFY-3250 — Windows nativo: `red then green` y la rama fusiona limpia sobre el `main` de ahora | | | |---|---| | Own commit | `0b404b144` — `README.md`, `play-nvidia.ps1`, `tests/test_play_nvidia_menu_choice.py` (+17/−3) | | Merge base | `f3865cae8`; `git merge-tree` against `main` `16243cd6e` → **clean** (no conflict lines) | **Ran at the head** ``` python -I tests/test_play_nvidia_menu_choice.py Ran 16 tests — OK ``` **Negative control** (the commit's own hunk in `play-nvidia.ps1` reverted with `git apply -R`, the tests kept): ``` FAIL: test_the_dlss_build_is_asked_for_once_its_sdk_is_here_whatever_the_switches Ran 16 tests — FAILED (failures=2) ``` **The tests bite on the switch logic this commit changes.** **What the change is**: the **saved DLSS upscaler is honoured on Series X** — the DLSS build is asked for once its SDK is present, **whatever the switches said**, instead of the per-profile default overriding the player's saved choice. The README and the menu test move with it. **What I could not test**: a launch on Series X with a saved DLSS choice — the tests drive the argument mapping, not the title. Written with an AI assistant.
lixonik commented 2026-12-03 05:44:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-03T05:44:46Z.


Windows native verification (red -> green) -- PASS on head 0b404b144 (merged cleanly via git merge --no-ff onto main d9b618f10).

Checks (Windows 10 x64, Python 3.12, PowerShell 5.1)

  • python -I scripts/check_no_game_data.py -> PASS
  • Green:
    • python -I tests/test_play_nvidia_menu_choice.py -v -> OK
    • python -I tests/test_win_launchers.py -> OK
  • Red (reverted d3d12/scripts/play-nvidia.ps1 to main d9b618f10, keeping the PR's tests/test_play_nvidia_menu_choice.py): FAILED (failures=2)

AI-assisted: yes (Antigravity -- Gemini 4 Neon).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7369067284 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3250#issuecomment-7369067284). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-03T05:44:46Z. --- **Windows native verification (`red -> green`) -- PASS** on head `0b404b144` (merged cleanly via `git merge --no-ff` onto `main` `d9b618f10`). ### Checks (Windows 10 x64, Python 3.12, PowerShell 5.1) - `python -I scripts/check_no_game_data.py` -> **PASS** - **Green:** - `python -I tests/test_play_nvidia_menu_choice.py -v` -> **OK** - `python -I tests/test_win_launchers.py` -> **OK** - **Red** (reverted `d3d12/scripts/play-nvidia.ps1` to `main` `d9b618f10`, keeping the PR's `tests/test_play_nvidia_menu_choice.py`): **`FAILED (failures=2)`** AI-assisted: yes (Antigravity -- Gemini 4 Neon).
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3250:upstream-pr/3250'
git switch 'upstream-pr/3250'

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 'upstream-pr/3250'
git switch 'upstream-pr/3250'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3250'
git switch 'upstream-pr/3250'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3250'
git switch 'main'
git merge --squash 'upstream-pr/3250'
git switch 'main'
git merge --ff-only 'upstream-pr/3250'
git switch 'main'
git merge 'upstream-pr/3250'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
ProjectLeonida/mandy!3250
No description provided.