d3d12 play-nvidia: a typed ray-tracing path replaces the F1 menu's other one (D3D12-TYPED-RT-REPLACES-MENU-RT) #3235
Open
github-bot
wants to merge 1 commit from
github-bot/gh-3235 into main
AGit
pull from: github-bot/gh-3235
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!3235
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3235"
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?
@LouisRiverstone on GitHub · 2026-12-02 21:47 UTC · original
LouisRiverstone:fix/typed-hwrt-clears-software-rt→main· +24 −1 · 2 files · 1 commits · openClaim: #2570 (D3D12-TYPED-RT-REPLACES-MENU-RT), following ubiquitarianism's finding on
d3d12/scripts/play-nvidia.ps1:589.Why
When a switch is typed, the launcher lets it win over the F1 menu's saved values for the settings it makes (
$switchSettings).-HardwareRThad no entry in that table, and-RayTracingdid not ownLEONIDA_HW_RT. The script runs the two paths either/or (if ($HardwareRT) ... elseif ($RayTracing)), and the menu savesLEONIDA_BVH_BUILDER,LEONIDA_HW_RTandLEONIDA_AMBIENT(host/menu.rs:80-97). So:-HardwareRTkept a saved software builder (LEONIDA_BVH_BUILDER=1) and the ambient stand-in (LEONIDA_AMBIENT=1), and both ray-tracing paths ran;-RayTracingkept a savedLEONIDA_HW_RT=1.What changed
d3d12/scripts/play-nvidia.ps1:RayTracingandHardwareRTeach ownLEONIDA_BVH_BUILDER,LEONIDA_HW_RTandLEONIDA_AMBIENT. This matches how-FrameGenand-FsrFrameGenalready own each other's setting.tests/test_play_nvidia_menu_choice.py:test_a_typed_ray_tracing_path_replaces_the_menus_other_onecovers both directions, the rewritten menu file, and SAVE AND RESTART keeping the menu's saved value.Verification (Windows 11, Windows PowerShell 5.1, Python 3.11; no game files, no GPU needed)
.ps1change reverted, the new test fails (the savedLEONIDA_AMBIENT=1wins over the typed-HardwareRT). With it, the test passes.tests/test_play_nvidia_menu_choice.py17 tests OK;tests/test_win_launchers.pyOK.python -I scripts/check_no_game_data.pyon both files: exit 0. The.ps1keeps CRLF.Pre-existing, not changed here (reviewer notes)
-RayTracing, turn on HARDWARE RAY TRACING in F1, then restart: the replayed-RayTracingsets the builder and the savedLEONIDA_HW_RT=1is applied on top.play-nvidia.ps1:690) checks onlyLEONIDA_BVH_BUILDER, while the DLSS one (:675) checks both paths.AI assistance
AI-assisted: written with Claude Code (Claude Opus 5.5). It was reviewed by a separate read-only reviewer agent (Claude Opus 5.5), which checked the menu's saved items, how
play-d3d12.ps1passes-Typed, the restart path, line endings and the clean-room rules, and found nothing blocking.🤖 Generated with Claude Code
@fiestorra on GitHub · 2026-12-02 21:51 UTC · original
VERIFY-3235 — Windows nativo:
red then greenen su propio commitf2994f406—play-nvidia.ps1+5/-1,tests/test_play_nvidia_menu_choice.py+20b41763227, but the branch contains #3204, #3210, #3224, #3226, #3227 and the Lua/PE work); this review is of the commit aboveRan at the branch head
Negative control (only
f2994f406's hunk inplay-nvidia.ps1reverted, the test kept):The change reads right for a F1 menu: the ray-tracing groups are mutual-exclusion lists, and the PR adds the other path's variables to each —
RayTracingnow also listsLEONIDA_HW_RT, andHardwareRTlistsLEONIDA_BVH_BUILDERandLEONIDA_AMBIENT— so a typed-RayTracingor-HardwareRTreplaces the menu's choice instead of running beside it. The test's name says exactly that, and it fails when the line is removed.What I could not test: a real launch with both a typed switch and a saved menu value — the test drives the argument mapping, not the title; and the branch's stack (merging this PR lands several other open PRs).
Written with an AI assistant.
@LouisRiverstone on GitHub · 2026-12-02 21:53 UTC · original
The
d3d12 (windows-latest)failure here ismain's own E0599 inleonida-lua/src/tests.rs:1089(sincebc20b75ba), not this change. This PR touches no Rust. The fix is #3237.@MoonEyes on GitHub · 2026-12-02 21:59 UTC · original
This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).
Could you, or anyone with a working setup, post a run report on the current head merged onto current
main:mainSHA it was merged onto;mainalone for comparison, if you can.Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.
AI-assisted (Claude Code).
@merzleckeier on GitHub · 2026-12-02 22:04 UTC · original · reviewed
Reviewed
f2994f406onf3865cae8. In a disposable checkout I ran the menu settings block with Linux PowerShell 7.7.0. I enabled the block-only test class in that checkout and kept the Windows launcher integration class gated. The new test fails with the original launcher (the saved software mode still forcesLEONIDA_AMBIENT=1) and passes with this PR. All 14 settings-block tests passed, with 3 Windows integration tests skipped. Coverage includes both overrides, an unrelated saved setting, and the menu restart preserving its own choice. I also checked that the PR merges cleanly with #3230 at97eefdee.f2994f406etoc311ef852a@LouisRiverstone on GitHub · 2026-12-02 22:24 UTC · original
Thanks for the checks. Two notes:
c311ef852): I rewrote the commit without a co-author trailer. The tree is byte-identical to the reviewedf2994f406.mainf3865cae8(git rev-list --count origin/main..HEAD= 1). #3204 and #3210 are already merged into thatmain; it carries no open pull requests.@MoonEyes about the in-game gate: this change is only in
d3d12/scripts/play-nvidia.ps1's settings merge, plus a test. It touches no render-path code. If an in-game run is still wanted, I'll post one.@fiestorra on GitHub · 2026-12-03 00:09 UTC · original
VERIFY-3235 — Windows nativo:
red then greenc311ef852—play-nvidia.ps1(5),tests/test_play_nvidia_menu_choice.py(+20)Ran at the head
Negative control:
main'splay-nvidia.ps1back, tests kept:It bites.
What the change is: a typed ray-tracing path replaces the F1 menu's other one — the menu keeps one entry per feature and the launcher script now agrees with it, so what the menu writes and what the script reads is one value, not two. That is the same failure as #3104 (
-NoFrameGen) and #3265's neighbours: the menu and the restart command are two lists that must match, and the test drives both sides.What I could not test
Written with an AI assistant.
c311ef852atob3174332b9@lixonik on GitHub · 2026-12-03 06:38 UTC · original
Windows native verification (
red -> green) -- PASS on headb3174332b(merged cleanly viagit merge --no-ffontomaind9b618f10).Checks (Windows 10 x64, Python 3.12, PowerShell 5.1)
python -I scripts/check_no_game_data.py-> PASSpython -I tests/test_play_nvidia_menu_choice.py -v-> Ran 17 tests in 14.910s / OKd3d12/scripts/play-nvidia.ps1tomaind9b618f10, keeping the PR's tests):tests/test_play_nvidia_menu_choice.py-> Ran 17 tests in 16.085s / FAILED (failures=1) (exit1)AI-assisted: yes (Antigravity -- Gemini 4 Neon).
@merzleckeier on GitHub · 2026-12-03 09:05 UTC · original
Rechecked
b3174332onmaind9b618f1using the full launcher in PowerShell 7.7. Onmain, either typed switch could leave the opposite mode fromleonida-settings.txtenabled. With this head, typed-HardwareRTleaves only hardware RT, typed-RayTracingleaves only software RT, and an unrelated savedLEONIDA_PANEL=1survives both cases.I also replayed the actual
LEONIDA_MENU_ARGSemitted by the launcher. Saving the newly enabled F1 option and clearing the previous one gives the expected single mode. Saving only the newly enabled option still leaves both mode flags on both trees. This confirms the existing restart finding. The runs were synthetic dry runs. AI-assisted with OpenAI Codex.@LouisRiverstone on GitHub · 2026-12-03 11:52 UTC · original
Thanks @lixonik and @merzleckeier. The restart case (save only the newly enabled F1 option and both mode flags stay on) is the one recorded as a separate finding in #2570 (comment). It happens on
maintoo, and this PR doesn't touch it: it covers typed switches over saved values. I'm keeping it out of this PR's scope.@EdenBendheim on GitHub · 2026-12-03 12:16 UTC · original
RUN — RTX 3090 24 GB, both typed ray-tracing selections PASS with conflicting saved menu values.
b3174332b97a52e5e8e7d628b2c68e4b0d694342merged locally onto mainb053a1813c8980c4357d51bbe6e69a35dc8c476cas2c6dd05ed135cb6424ce49c94dcd47135d402d08. Executable SHA-2560991cd2699da81a9944cbf84742a90389929fbe550a94368327a632102470b8c, diagnostics,dlss,mimalloc.MEASURED:
The actual launcher's override messages and runtime settings agree. For hardware, the final counters reported 3,329 live BLAS, 6,394 builds, 5 live TLAS, 14,604 TLAS builds, and 271,040 found queries. Software had positive builder activity and no hardware manager/counters. Both had target stops and cache saves. Initial native placement was confirmed on both; the hardware arm later lost the intended location, whereas the software arm remained there. No matched-main live control or comparative performance assertion.
17 menu tests and 12 Windows launcher tests passed, clean-room and diff checks passed. No upstream source changes. AI-assisted: Codex GPT-6.2 Sol (tester and independent numeric verification).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.