Skip to content

d3d12: preserve -MotionBlur across F1 restart - #2626

Merged
MoonEyes merged 3 commits into
ProjectLeonida:mainfrom
merzleckeier:codex/d3d12-motion-blur-f1
Nov 30, 2026
Merged

MoonEyes merged 3 commits into
ProjectLeonida:mainfrom
merzleckeier:codex/d3d12-motion-blur-f1

Conversation

@merzleckeier

@merzleckeier merzleckeier commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as D3D12-MOTION-BLUR-RESTART.

What and why

play-nvidia.ps1 honors -MotionBlur on the first start, but omits the switch from LEONIDA_MENU_ARGS. F1 Save and Restart then uses the default and skips the four motion-blur passes. Forward the switch when it was enabled.

Tested

  • On CachyOS with PowerShell 7.4.21, the new dry-run test fails on dd87aa405 because the restart arguments omit -MotionBlur. With the fix, python -I tests/test_win_launchers.py -v passes two tests, with the Windows cmd.exe integration test skipped. The new test covers enabled, explicitly false, and omitted values.
  • Replaying the generated F1 command from a synthetic child process showed 0 motion-blur skips at first start and 4 after restart with -MotionBlur on main. With the fix it was 0 at both starts. The default produced 4 at both starts on each revision.
  • The two changed files pass check_no_game_data.py. The FSR options already in the launcher remain in the same restart argument list.
  • Full semantic suite on both dd87aa405 and c0e16af8: 529 files, 6,526 tests in each. Both runs failed the same two half-precision interpolation cases in test_interp_computed_ij_fallback, with identical assertion values.

GPUs tested: N/A. Synthetic launcher inputs only.

AI-assisted: Yes, OpenAI Codex (GPT-6).

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.

D3D12-MOTION-BLUR-RESTART. AI-assisted with OpenAI Codex (GPT-6).
@merzleckeier

Copy link
Copy Markdown
Contributor Author

CI follow-up for c0e16af8. I rechecked the clean merge onto 8085eab2 (tree 42a0c565) with PowerShell 7.4.21 on CachyOS. The focused regression still fails against the stock launcher because LEONIDA_MENU_ARGS omits -MotionBlur. On the merge, both runnable tests in test_win_launchers.py pass. The cmd.exe-specific test skips on Linux.

The completed failures in the posted CI run use its older merge base dd87aa405. The translator job has the six mesh assertions fixed by #2627. The Linux stdlib and macOS Python jobs stop at the BVH cache fixture covered by #2629. The semantic job has the two known F16 reference assertions. The Windows check job was cancelled. Synthetic launcher input only. AI-assisted with OpenAI Codex.

@merzleckeier

Copy link
Copy Markdown
Contributor Author

Windows CI follow-up for fcc044cd. All three tests in tests/test_win_launchers.py passed in the standard-library step, including the cmd.exe integration test that skipped on my Linux machine. The Windows job was later cancelled in the BCPack reader and texture pipeline step. Windows job log

The Linux semantic job still reports the two F16 reference assertions. I reproduced those on the current merge locally and reran the full suite with the one-file fix from #2633. All 529 files completed without failures with that fix. The launcher branch does not need any shader changes. A/B details

AI-assisted with OpenAI Codex.

@OreoFR

OreoFR commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Verified by OreoFR

  • PR head fcc044cdc4a17756059d866f10a04a354acc6e71, merged with --no-ff onto main 060c4716046d8c17f5a124d9ae9d56cc0070c225: clean, no conflict.
  • Windows 11 Pro / RTX 4070 Laptop / NVIDIA 621.40 (no GPU used), Windows PowerShell 5.1, Python 3.12.
  • Crates tested: none. The PR touches no Rust crate (d3d12/scripts/play-nvidia.ps1 and tests/test_win_launchers.py only), so cargo test and cargo clippy do not apply; the check is the PR's own launcher test.
  • Green: python -I tests/test_win_launchers.py -v on the merge: 3/3 passed, 0 skipped (the cmd.exe integration test runs here).
  • Red: same merge with d3d12/scripts/play-nvidia.ps1 restored to main, test kept: test_nvidia_menu_restart_preserves_motion_blur_switch fails (LEONIDA_MENU_ARGS for the -MotionBlur run has no -MotionBlur); the other 2 pass. Red to green seen.
  • Clippy: not applicable (no Rust change).
  • Rebase on [integration] PageMirror, GPU detile, async queue & RDNA2->SPIR-V performance stack (INTEGRATION-PERF-CPU-GPU-R6) #2566 needed: no (the merge result merges cleanly with the [integration] PageMirror, GPU detile, async queue & RDNA2->SPIR-V performance stack (INTEGRATION-PERF-CPU-GPU-R6) #2566 head eade9562c).
  • Diff read: one name added to the switch list forwarded into the F1 restart arguments; -MotionBlur:$false and the omitted case stay out, as the test checks. play.ps1 has no restart argument list, so nothing to mirror there.
  • Verdict: READY. Ready to merge per the maintainers' plan.

This verification was AI-assisted (Claude Code, oreofr-agent).

@merzleckeier

Copy link
Copy Markdown
Contributor Author

The two launcher changes now have a combined native Windows restart check. ecox982745 replayed the emitted F1 arguments from fcc044cdc plus #2647 2ac782d0 on 452d1d1b6 under Windows PowerShell 5.1 and PowerShell 7. Both -MotionBlur and -NoFrameGen remained effective across restart, and the explicit FSR and saved-value controls passed. Independent Windows evidence

AI-assisted with OpenAI Codex.

@merzleckeier

Copy link
Copy Markdown
Contributor Author

Retested the Motion Blur restart fix with the current NVIDIA launcher. I merged fcc044cdc into main 0eab02a8b (tree 3ed938efb) and all three test_win_launchers.py tests passed on Windows Server 2025, including the native cmd.exe integration case. Windows job.

I also exercised the launcher’s new driver-cache detection with a synthetic Leonida executable and temporary .nvph files. With LEONIDA_CACHE_DIR under Windows PowerShell and the TOML fallback under pwsh, all four cases passed on each engine. The launcher recorded a new cache file, kept the manifest while it was intact, added --again when the tracked file disappeared, and ran only the executable with -NoPrecompile.

Synthetic inputs only. AI-assisted with OpenAI Codex.

@merzleckeier

Copy link
Copy Markdown
Contributor Author

MEASURED on Windows Server 2025. I merged fcc044cdc into main 182d0c174 (tree 868c3bac9) and replayed the F1 restart command emitted by the top-level play-d3d12.ps1 launch. The new LEONIDA_QUICK_FIND_WINDOWS and LEONIDA_PORT_DESCRIPTORS defaults stayed at 1 on restart, and explicitly saved 0 values stayed at 0 after the fixture simulated a save of an unrelated F1 setting.

The 48 dry-run cases covered Windows PowerShell 5.1 and PowerShell 7, Series X and Series S, defaults and saved renderer overrides, and Motion Blur omitted, explicitly off or on. With Motion Blur on, main put the four passes back on the skip list after restart. With #2626 applied, those passes stayed off the skip list. Omitted and explicitly off kept the skip list in both arms. All three launcher regression tests passed in the same job.

Windows job and fixture output. The test used synthetic inputs and replayed the emitted command in -DryRun mode. AI-assisted with OpenAI Codex.

Bring the launcher change onto the current base, including the F16 reference test fix from ProjectLeonida#2633.
@merzleckeier

merzleckeier commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

CI refresh. I updated this branch to be3f7582 by merging main d367675c7, which already contains the F16 oracle fix from #2633. The two F16 assertions from the previous CI run now pass on both main and this merge. Previous semantic job.

The full local semantic suite passed on each revision (549 files, 6,675 tests). All 626 selected standard-library files passed on the merge. The focused launcher regression still fails with the stock launcher and passes with the PR. GitHub CI on the exact base is green. Base CI.

PR CI is green. All four jobs passed on be3f7582, including the previously failing semantic job and the Windows check. The No Game Data workflow also passed. PR CI · No Game Data.

AI-assisted with OpenAI Codex.

@merzleckeier

Copy link
Copy Markdown
Contributor Author

Latest-main check with the 1080p–1440p dynamic resolution launchers

I tested be3f7582 merged onto main 232f9e603 (tree 626362ce) with PowerShell 7.4.21 on CachyOS. I used the new play-X-1080-1440p.ps1 preset and the top-level scripts/play-d3d12.ps1 Series X defaults. Each test captured the launcher’s LEONIDA_MENU_ARGS, simulated a save of an unrelated F1 option, and replayed the arguments in a second dry run.

  • With -MotionBlur enabled, both entry points printed zero motion-blur skips at first start. On main the restart printed four skips. With this PR the restart printed zero on both entry points.
  • Leaving the switch out on either entry point, or explicitly setting it to false on the top-level launcher, left four skips at both starts. The output stayed at 2560×1440 and the minimum scale stayed at 0.75 in all completed cases. The saved option took effect on restart.
  • Separate preset behavior on both revisions. The thin play-X-1080-1440p.ps1 wrapper rejects -MotionBlur:$false because forwarding the arguments causes False to bind to Resolution. Its omitted-switch case and the top-level explicit-false case both worked.

The stock motion-blur regression test still failed on main and passed with the PR. The Windows-only cmd.exe test was skipped in this Linux run. A second agent reran the comparison with synthetic files. AI-assisted with OpenAI Codex.

@MoonEyes

Copy link
Copy Markdown
Collaborator

Verified: all launcher regression tests pass, including the Windows cmd.exe integration case; independent red-to-green and latest-main checks pass. CI and no-game-data checks are green. Ready for merge.

@MoonEyes
MoonEyes merged commit ca191f6 into ProjectLeonida:main Nov 30, 2026
5 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