Skip to content

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

Merged
ubiquitarianism merged 3 commits into
mainfrom
fix/series-s-f1-dlss
Dec 1, 2026
Merged

ubiquitarianism merged 3 commits into
mainfrom
fix/series-s-f1-dlss

Conversation

@ubiquitarianism

Copy link
Copy Markdown
Collaborator

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.

@merzleckeier

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Collaborator Author

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

Copy link
Copy Markdown
Contributor

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 KelboLive left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Collaborator Author

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.

@ubiquitarianism
ubiquitarianism merged commit 93ffc48 into main Dec 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants