d3d12: preserve explicit MotionBlur values in the 1080p–1440p preset #2761
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2761"
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 merzleckeier on 2026-11-30T16:06:10Z.
Claimed in the coordination issue as: D3D12-DYNAMIC-PRESET-MOTION-BLUR-FALSE. Claim
What and why
Passing
-MotionBlur:$falsetoplay-X-1080-1440p.ps1leavesFalseas a positional argument when the wrapper forwards@args. PowerShell binds that token toResolutionand rejects the launch.The preset now binds
MotionBluras a named switch and forwards its bound value alongside the other launcher arguments. The preset still supplies the Series X and 1080p minimum defaults.Tested
maina4ed2638, the new PowerShell dry-run regression reproduces theResolutionbinding failure. With this patch it covers omitted, bare, explicitly true and explicitly false values and checks 2560×1440 output and 0.75 minimum scale.cmd.execase was skipped. The tests used an empty synthetic executable. A separate Codex reviewer independently repeated the red/green check.git diff --checkandscripts/check_no_game_data.pypassed.GPUs tested: n/a.
AI-assisted: OpenAI Codex (GPT-6), with independent Codex review.
Checklist
mainand merges cleanly.Imported from ubiquitarianism/leonida. Originally posted by ecox982745 on 2026-11-30T16:09:08Z.
Independent native Windows launcher verification for
2b85ec124merged ontoa21a62af1(treecf8e84fd2). Tested Windows PowerShell 5.1.26100.10068 and PowerShell 7.6.9 with a synthetic executable path containing spaces, an apostrophe and an ampersand.On
main, both explicit forms (-MotionBlur:$falseand-MotionBlur:$true) were rejected by theResolutionbinder on both shells. With the PR, omitted, bare, explicit true and explicit false all completed their first dry run and a replay of the actualLEONIDA_MENU_ARGS. Motion blur matched the request on both launches. The preset kept2560x1440output and the0.75minimum render scale, and the restarted command picked up a separately saved F1 setting.The stock
tests/test_win_launchers.pypassed all four tests on native Windows, including thecmd.exediscovery and exit propagation test. Synthetic launcher inputs only. AI-assisted with OpenAI Codex (GPT-6.2 Sol).Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-11-30T16:29:22Z.
Independent check on Windows (not the author), at
2b85ec124.python -I tests/test_win_launchers.py: 4 tests OK in 1.14 s.The launcher-preset case (explicit MotionBlur preserved in the 1080p–1440p preset) is covered by the updated test and passes; no PowerShell execution-policy failure here.
Environment: Windows 11 Pro 10.0.26200.9711, Python 3.12.10, Windows PowerShell 5.1.
AI-assisted: yes (opencode).
Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T05:29:10Z.
Review: COMMENTED
Verified on Windows:
python -I tests/test_win_launchers.pyis 4/4, reverting to@argsalone fails the new test with exactly theCannot validate argument on parameter 'Resolution' … "False"error, and keepingparamwhile dropping@PSBoundParametersfails atassertNotEqual(skips[0], skips[2]). So the fix is pinned in both directions. A fake inner script also confirms the forwarding:MotionBlur=Falsefor-MotionBlur:$false,Truefor bare and:true, nothing when omitted, with-SeriesX -Lowest 1080intact;:0/:1/:2are correctly refused by the switch conversion.The precedence is sound because there is no MotionBlur default to lose — the switch only decides whether four skip ids are appended (
play-nvidia.ps1:466-476), and$PSBoundParametersdistinguishes unset from explicit false at the argument level even though the two are behaviourally identical today.Two real follow-ups:
play-X-1440p.ps1andplay-S-1080p.ps1still take bare@args, so-MotionBlur:$true/:$falsebinds the value token toResolutionand leaves MotionBlur true — reproduced. On this preset,-NoDlss:$falseand-Log:$falsestill fail the same way. The sameparam+@PSBoundParameterspattern (or one shared wrapper) in each preset would remove the class rather than one instance.d3d12/README.mdnow contradicts the test: its row gives this preset "0.5 to 0.667" render scale, while the code (Series X +-Lowest 1080->LEONIDA_OUTPUT=2560x1440) and the new test say 0.75 to 1.0.Test precision: the test asserts the resulting skip list, so an "forward only when true" change would still pass. A fake
play-nvidia.ps1asserting$PSBoundParameterswould pin the "explicit false is forwarded" half — the launcher test already copies scripts, so it is cheap.Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T14:59:17Z.
Applied the two review follow-ups in
8edf0c84. The explicit-false forwarding regression test now observes the inner launcher’s bound parameters. It distinguishes omitted, explicit false, bare true and explicit true, and also checks that Series X and Lowest 1080 are forwarded. In a negative control that drops only the explicit false binding, the existing dry run still passes and the new test fails on omitted versus False.The README now describes the fixed and dynamic preset flags and the Series X render scales. The current merge into
43c7b343apassed four launcher tests using PowerShell 7.4.21 on Linux and all seven Series X dry runs. The Windows-only cmd.exe test was skipped in this run. An independent read-only review also verified the new test and its negative control. The wider switch-forwarding issue across the sibling presets remains a separate follow-up.AI-assisted with OpenAI Codex (GPT-6), including a separate read-only reviewer. Synthetic launcher inputs; no GPU required for these checks.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T15:20:40Z.
Native Windows verification of
8edf0c84on the merge into88a9f133e. The full launcher test file passed 5/5 under PowerShell 7 and 5/5 in a second run selecting Windows PowerShell 5.1.26100.33822. This includes the new explicit-false binding test, the real-preset dry run and the Windows cmd.exe discovery/exit-propagation case. Synthetic launcher inputs only.Windows Actions job and logs · MEASURED, AI-assisted (Codex).