d3d12: honor saved DLSS at stock Series S resolution #2922

Merged
ubiquitarianism merged 3 commits from upstream-pr/2922 into main 2026-12-01 19:14:59 +00:00
ubiquitarianism commented 2026-12-01 18:34:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ubiquitarianism on 2026-12-01T18:34:37Z.


Claimed as D3D12-SERIES-S-F1-DLSS.

Depends on: #2880 (merged)

What and why

On Series S at fixed 720p, F1 can save DLSS and restart with the same resolution switch. The launcher applies the saved DLSS setting but also retains the game upscaler forced by that switch. The runtime requires the game upscaler flag to be off before it will use the DLSS dispatch. The conflicting settings reproduce on November 30 and December 1 main.

Use the stock 720p-to-1080p launcher settings when a usable, saved DLSS choice replaces the implied game upscaler. Dropping the redundant fixed scale avoids the additional FidelityFX size patch. The guard preserves direct resolution choices, explicit own-upscaler overrides, and other render sizes. This change assumes a DLSS-capable build. The SDK auto-rebuild issue and Series X rendering issue are tracked separately.

Tested

  • The new PowerShell dry-run regression failed against the unmodified main launcher on the F1 restart case and passed with this change. All 15 launcher tests passed.
  • The complete semantic suite passed across 559 files and 6,786 tests. Text line-ending tests, game-data scan of the changed files, and git diff --check passed.
  • Two independent read-only reviews were completed. The final reviewer independently verified the failing main case and passing fix.

GPUs tested: n/a. CPU-only checks on Windows. NVIDIA rendering was untested.

AI-assisted: Codex with GPT-6.2 Sol for implementation and independent review.

Checklist

  • Based on current main.
  • One topic.
  • No game data, keys, or decryption.
  • No translator rule changed.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5592034929 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2922). Originally posted by [ubiquitarianism](https://github.com/ubiquitarianism) on 2026-12-01T18:34:37Z. --- Claimed as [D3D12-SERIES-S-F1-DLSS](https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7320951217). Depends on: #2880 (merged) ### What and why On Series S at fixed 720p, F1 can save DLSS and restart with the same resolution switch. The launcher applies the saved DLSS setting but also retains the game upscaler forced by that switch. The runtime requires the game upscaler flag to be off before it will use the DLSS dispatch. The conflicting settings reproduce on November 30 and December 1 main. Use the stock 720p-to-1080p launcher settings when a usable, saved DLSS choice replaces the implied game upscaler. Dropping the redundant fixed scale avoids the additional FidelityFX size patch. The guard preserves direct resolution choices, explicit own-upscaler overrides, and other render sizes. This change assumes a DLSS-capable build. The [SDK auto-rebuild issue](https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7321028618) and [Series X rendering issue](https://github.com/ProjectLeonida/mandy/pull/2756) are tracked separately. ### Tested - The new PowerShell dry-run regression failed against the unmodified main launcher on the F1 restart case and passed with this change. All 15 launcher tests passed. - The complete semantic suite passed across 559 files and 6,786 tests. Text line-ending tests, game-data scan of the changed files, and `git diff --check` passed. - Two independent read-only reviews were completed. The final reviewer independently verified the failing main case and passing fix. GPUs tested: n/a. CPU-only checks on Windows. NVIDIA rendering was untested. AI-assisted: Codex with GPT-6.2 Sol for implementation and independent review. ### Checklist - [x] Based on current `main`. - [x] One topic. - [x] No game data, keys, or decryption. - [x] No translator rule changed.
merzleckeier commented 2026-12-01 18:45:40 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T18:45:40Z.


Series S F1 dry run confirms the fix and exposes an explicit scale override at ebb9ecb9 on main 60f7dcd9, using the full launcher with PowerShell 7.4.21 on Linux and synthetic executable/DLSS markers. With saved LEONIDA_UPSCALE=dlss and -Resolution 720 -MenuRestart, main emitted dlss, LEONIDA_OWN_UPSCALER=1 and LEONIDA_RENDER_SCALE=0.6667. The PR emits dlss and clears both implied overrides as intended.

Adding -More @{LEONIDA_RENDER_SCALE='0.6667'} to the same call also loses the scale on the PR. The value comes from the explicit override in this case, and the launcher documents that -More wins over the menu. 0.75 remains in place. A local trial added -not $More.ContainsKey('LEONIDA_RENDER_SCALE') to the new guard. It preserved the explicit 0.6667 and produced the same output as the PR in the other ten cases, including the ordinary saved-DLSS restart.

With #2761 applied as well, all 11 Series S results matched the PR, and the Series X preset retained 2560×1440, minimum scale 0.75 and the expected omitted/true/false MotionBlur behavior.

MEASURED at launcher handoff with synthetic inputs. AI-assisted (Codex).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7321491150 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2922#issuecomment-7321491150). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-01T18:45:40Z. --- Series S F1 dry run confirms the fix and exposes an explicit scale override at `ebb9ecb9` on `main` `60f7dcd9`, using the full launcher with PowerShell 7.4.21 on Linux and synthetic executable/DLSS markers. With saved `LEONIDA_UPSCALE=dlss` and `-Resolution 720 -MenuRestart`, main emitted `dlss`, `LEONIDA_OWN_UPSCALER=1` and `LEONIDA_RENDER_SCALE=0.6667`. The PR emits `dlss` and clears both implied overrides as intended. Adding `-More @{LEONIDA_RENDER_SCALE='0.6667'}` to the same call also loses the scale on the PR. The value comes from the explicit override in this case, and the launcher documents that `-More` wins over the menu. `0.75` remains in place. A local trial added `-not $More.ContainsKey('LEONIDA_RENDER_SCALE')` to the new guard. It preserved the explicit `0.6667` and produced the same output as the PR in the other ten cases, including the ordinary saved-DLSS restart. With #2761 applied as well, all 11 Series S results matched the PR, and the Series X preset retained 2560×1440, minimum scale 0.75 and the expected omitted/true/false MotionBlur behavior. MEASURED at launcher handoff with synthetic inputs. AI-assisted (Codex).
ubiquitarianism commented 2026-12-01 18:47:54 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ubiquitarianism on 2026-12-01T18:47:54Z.


Confirmed the explicit -More scale case and fixed it in 0b1f6b588. An explicit scale of 0.6667 now keeps both the scale and the requested resolution path. The ordinary F1 DLSS restart still uses the stock quality settings. The added launcher case failed at the previous PR head and passed with the fix. All 15 launcher tests passed again after merging current main into the branch, and an independent read-only review passed. AI-assisted with Codex and GPT-6.2 Sol.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7321565094 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2922#issuecomment-7321565094). Originally posted by [ubiquitarianism](https://github.com/ubiquitarianism) on 2026-12-01T18:47:54Z. --- Confirmed the explicit `-More` scale case and fixed it in `0b1f6b588`. An explicit scale of `0.6667` now keeps both the scale and the requested resolution path. The ordinary F1 DLSS restart still uses the stock quality settings. The added launcher case failed at the previous PR head and passed with the fix. All 15 launcher tests passed again after merging current `main` into the branch, and an independent read-only review passed. AI-assisted with Codex and GPT-6.2 Sol.
merzleckeier commented 2026-12-01 18:53:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T18:53:19Z.


Explicit render scale preserved on the updated head 7ab2e6d3 on main 60f7dcd9. I repeated the same full-launcher dry-run matrix on PowerShell 7.4.21. The updated PR matches all 11 rows from the local guard trial. The Series S F1 restart with explicit -More @{LEONIDA_RENDER_SCALE='0.6667'} retains the scale. The ordinary saved 720p DLSS restart still clears the implied scale and own-upscaler flag. The combination with #2761 matches the same 11 rows and the three Series X preset cases.

MEASURED at launcher handoff with synthetic inputs. AI-assisted (Codex).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7321748206 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2922#issuecomment-7321748206). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-01T18:53:19Z. --- Explicit render scale preserved on the updated head `7ab2e6d3` on `main` `60f7dcd9`. I repeated the same full-launcher dry-run matrix on PowerShell 7.4.21. The updated PR matches all 11 rows from the local guard trial. The Series S F1 restart with explicit `-More @{LEONIDA_RENDER_SCALE='0.6667'}` retains the scale. The ordinary saved 720p DLSS restart still clears the implied scale and own-upscaler flag. The combination with #2761 matches the same 11 rows and the three Series X preset cases. MEASURED at launcher handoff with synthetic inputs. AI-assisted (Codex).
KelboLive commented 2026-12-01 19:06:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T19:06:37Z.

Review: COMMENTED


Verified at 7ab2e6d3: the 15 launcher tests pass, the new case fails on upstream/main as claimed, and removing the -More.ContainsKey('LEONIDA_RENDER_SCALE') conjunct fails it on the explicit-scale case — so the guard is load-bearing, not decorative.

The precedence is right: a typed -Dlss or -NoDlss cannot be overridden — -Dlss + -Resolution is rejected (:102), a typed -Dlss drops the menu's UPSCALE (:538, :577-583), and -NoDlss makes $dlssCan false (:147) and forces stretch on Series S (:615-617). I confirmed all three empirically. The detection is also sound: 0.6667 with OWN_UPSCALER=1, no RENDER_SCALE_MIN, and output unset/1920x1080 can only come from the 720/1080 path at :390, and leonida-settings.txt only contains menu-changed items (host/menu.rs:409-431).

One nit: a menu-saved explicit LEONIDA_RENDER_SCALE=0.6667 is still cleared, although the comment promises explicit scales are left alone. Harmless for DLSS quality, but $menu.Contains('LEONIDA_RENDER_SCALE') would make the guard match its own comment.

Merge is clean, and it pairs cleanly with #2900, #2761 and #2756 — #2900 only grows Series S budgets above 2/3, so this 0.6667 path is untouched. No switch regeneration needed.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6138099890 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2922#pullrequestreview-6138099890). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-12-01T19:06:37Z. **Review:** COMMENTED --- Verified at `7ab2e6d3`: the 15 launcher tests pass, the new case fails on `upstream/main` as claimed, and removing the `-More.ContainsKey('LEONIDA_RENDER_SCALE')` conjunct fails it on the explicit-scale case — so the guard is load-bearing, not decorative. The precedence is right: a typed `-Dlss` or `-NoDlss` cannot be overridden — `-Dlss` + `-Resolution` is rejected (`:102`), a typed `-Dlss` drops the menu's UPSCALE (`:538`, `:577-583`), and `-NoDlss` makes `$dlssCan` false (`:147`) and forces `stretch` on Series S (`:615-617`). I confirmed all three empirically. The detection is also sound: `0.6667` with `OWN_UPSCALER=1`, no `RENDER_SCALE_MIN`, and output unset/`1920x1080` can only come from the 720/1080 path at `:390`, and `leonida-settings.txt` only contains menu-changed items (`host/menu.rs:409-431`). One nit: a **menu-saved explicit** `LEONIDA_RENDER_SCALE=0.6667` is still cleared, although the comment promises explicit scales are left alone. Harmless for DLSS quality, but `$menu.Contains('LEONIDA_RENDER_SCALE')` would make the guard match its own comment. Merge is clean, and it pairs cleanly with #2900, #2761 and #2756 — #2900 only grows Series S budgets above 2/3, so this 0.6667 path is untouched. No switch regeneration needed.
ubiquitarianism commented 2026-12-01 19:07:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ubiquitarianism on 2026-12-01T19:07:01Z.


The comment is referring to the -More override. The F1 menu's 0.6667 is its Quality selection. On Series S that selection is already the stock 720p-to-1080p ratio, so the launcher leaves the saved choice in the menu file and omits the redundant runtime scale. Adding the menu-key guard here would keep the game upscaler forced when someone explicitly chooses both DLSS and Quality in F1. AI-assisted with Codex and GPT-6.2 Sol.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7322205864 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2922#issuecomment-7322205864). Originally posted by [ubiquitarianism](https://github.com/ubiquitarianism) on 2026-12-01T19:07:01Z. --- The comment is referring to the `-More` override. The F1 menu's `0.6667` is its Quality selection. On Series S that selection is already the stock 720p-to-1080p ratio, so the launcher leaves the saved choice in the menu file and omits the redundant runtime scale. Adding the menu-key guard here would keep the game upscaler forced when someone explicitly chooses both DLSS and Quality in F1. AI-assisted with Codex and GPT-6.2 Sol.
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!2922
No description provided.