d3d12: honor saved DLSS at stock Series S resolution #2922
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2922"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
git diff --checkpassed.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
main.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
ebb9ecb9onmain60f7dcd9, using the full launcher with PowerShell 7.4.21 on Linux and synthetic executable/DLSS markers. With savedLEONIDA_UPSCALE=dlssand-Resolution 720 -MenuRestart, main emitteddlss,LEONIDA_OWN_UPSCALER=1andLEONIDA_RENDER_SCALE=0.6667. The PR emitsdlssand 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-Morewins over the menu.0.75remains in place. A local trial added-not $More.ContainsKey('LEONIDA_RENDER_SCALE')to the new guard. It preserved the explicit0.6667and 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).
Imported from ubiquitarianism/leonida. Originally posted by ubiquitarianism on 2026-12-01T18:47:54Z.
Confirmed the explicit
-Morescale case and fixed it in0b1f6b588. An explicit scale of0.6667now 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 currentmaininto the branch, and an independent read-only review passed. AI-assisted with Codex and GPT-6.2 Sol.Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T18:53:19Z.
Explicit render scale preserved on the updated head
7ab2e6d3onmain60f7dcd9. 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).
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 onupstream/mainas 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
-Dlssor-NoDlsscannot be overridden —-Dlss+-Resolutionis rejected (:102), a typed-Dlssdrops the menu's UPSCALE (:538,:577-583), and-NoDlssmakes$dlssCanfalse (:147) and forcesstretchon Series S (:615-617). I confirmed all three empirically. The detection is also sound:0.6667withOWN_UPSCALER=1, noRENDER_SCALE_MIN, and output unset/1920x1080can only come from the 720/1080 path at:390, andleonida-settings.txtonly contains menu-changed items (host/menu.rs:409-431).One nit: a menu-saved explicit
LEONIDA_RENDER_SCALE=0.6667is 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.
Imported from ubiquitarianism/leonida. Originally posted by ubiquitarianism on 2026-12-01T19:07:01Z.
The comment is referring to the
-Moreoverride. The F1 menu's0.6667is 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.