Add an opt-in switch to skip no-hit ray passes #3269
Open
github-bot
wants to merge 1 commit from
github-bot/gh-3269 into main
AGit
pull from: github-bot/gh-3269
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!3269
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3269"
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?
@ubiquitarianism on GitHub · 2026-12-03 00:26 UTC · original
ProjectLeonida:codex/skip-no-hit-ray-passes→main· +89 −0 · 4 files · 1 commits · openClaimed in the coordination issue as D3D12-SKIP-NO-HIT-RAY-PASSES.
What and why
A player reported avoiding a recurring
0x887A0005device removal by settingLEONIDA_RT_RESOLVE=0andLEONIDA_ACTIVATE_RAYS=0on an RT-off run.-SkipNoHitRayPassesexposes the pair through the Windows launcher.The switch applies after launch options and saved F1 settings are resolved, when hardware RT and the software BVH builder are both off. Explicit
-Moreentries keep their normal precedence. F1 Save and Restart replays the switch and reevaluates the RT settings. The default launch stays as before. The running guide shows the equivalent-Moreentries and the observed rendering artifacts.Tested
d5b30be1. The public launcher rejected the new switch. Green onab10546ein PowerShell 5.1 and 7.-Moreprecedence, and replay after turning hardware RT on and off in the saved F1 file.git diff --checkpassed.GPUs tested: n/a. Verification used synthetic Windows fixtures. The effect on the reported in-game crash remains unverified.
AI-assisted: OpenAI Codex GPT-6.2 Sol for implementation and a separate GPT-6.2 Sol read-only review.
Checklist
main.@merzleckeier on GitHub · 2026-12-03 00:33 UTC · original · reviewed
Independent check of
ab10546eonmainatd5b30be1. I enabled the focused test in a disposable copy for Linux PowerShell 7.7.0. It fails on main because the public wrapper does not recognize-SkipNoHitRayPassesand passes on this head through the real wrapper and F1 replay. The combined focused/doctest run passed 28 tests.Merge-order checks: #3230 (
36f5ddbd) conflicts only in adjacent help text inplay-nvidia.ps1and where both methods are added totests/test_win_launchers.py. Keeping both help entries and both complete tests resolved it locally. Seven launcher tests passed, with five Windows-only skips. The combined tree with #3263 (9c2e340b) is conflict-free. Its three launcher, Cargo and game-gate suites passed 46 tests with seven Windows-only skips. These were synthetic checks. AI-assisted.@merzleckeier on GitHub · 2026-12-03 01:07 UTC · original
After #3230 merged, I resolved the two conflicts locally with
ab10546eon currentmain(1a163523). The resolution keeps #3230's complete help entry, appends the skip-switch entry, and keeps both full test methods. Seven launcher tests passed in PowerShell 7.4.21 on Linux, with five Windows-only skips.I also ran five synthetic dry runs with
-SkipNoHitRayPasseson every invocation. RT off kept automatic frame generation at 2x and disabled the two ray passes. Hardware and software RT both suppressed automatic frame generation. With explicit frame generation and hardware RT on Series X, 16 GB left frame generation off and 24 GB kept it on. The hardware RT cases kept both ray passes enabled. These are launcher checks with stubbed GPU and VRAM queries. AI-assisted.@fiestorra on GitHub · 2026-12-03 02:11 UTC · original
I started the rebase and stopped it — the conflict is real, and here is exactly where
The script half is mechanical and I had it resolved:
play-nvidia.ps1line 41,mainwrapped the-RayTracingsentence over two lines and this branch adds-SkipNoHitRayPassesafter it — "keep both" and the two intents fit in four lines.The test half is not.
tests/test_win_launchers.pyconflicts in two blocks, and the first is the shape I have learned to stop at:Two different test functions collided inside the same scaffold, and both bodies begin
with tempfile.TemporaryDirectory() as td:— git cut them together and left the sharedcommand = r"""…"""block below the markers, belonging to whichever one it was written for.So "keep both" is not a resolution here: the two tests set up the same synthetic title differently (
root / "scripts" / NVIDIA_LAUNCHER.nameagainstroot / "scripts" / "play-d3d12.ps1"plusroot / "d3d12" / "scripts" / NVIDIA_LAUNCHER.name), and the block after the markers has to be duplicated, extended or rewritten depending on which test it serves. That is a decision about this branch's own test, and the branch is the only place that knows it.What I verified before stopping:
mainhastest_nvidia_frame_generation_with_ray_tracingonce andtest_skip_no_hitzero times — so there is no duplication to remove; both tests are wanted.test_skip_no_hit_ray_passes_is_opt_in_and_follows_rt_on_restart, withos.name == "nt"in its skip condition, unlike main's).And the resolved script hunk, for whoever does it: keep
main's two-line-RayTracingsentence, and put the branch's-SkipNoHitRayPassesline straight after it. That I could do and did; the test I could not, and I would rather hand back a half with a reason than a merge that renders one of the two tests unchecked.The
#3192and#3214notes stand — this one is the third of the five new conflicts, and the first that is not mechanical.@fiestorra on GitHub · 2026-12-03 02:15 UTC · original
Second attempt, and it failed — so there is no branch from me for this one, and here is what went wrong
After my first pass I thought the test conflict was reconstructible (two self-contained functions that happened to start at the same line,
main's 88 lines and this branch's 59). I built that, and then the script half, and the result was wrong:I aborted it and deleted the local branch. Nothing was pushed —
git ls-remote --heads fork pr-3269-rebasedreturns nothing — so there is no half-merged branch of mine sitting in the fork for someone to pick up by mistake.Why it went wrong, since the reason matters more than the failure: my script resolution assumed the conflict in
play-nvidia.ps1was one block —main's two-line-RayTracingsentence plus this branch's-SkipNoHitRayPassesline — and it was not: there is a second block, and the=======left at L43 is the seam between them. I resolved the one I had looked at and trusted the marker count from before the edit rather than after it.And the test resolution may have been right while the script was wrong — 12 tests ran and 13 failed, which is what a script with a stray
=======does: every test that starts PowerShell gets a parse error, not an assertion.So the state is: this pull request still needs its author, and I have nothing to hand over. The two things I did produce and do trust are in the comment above — the shape of the script conflict (
main's sentence, then the switch line) and the fact that the test conflict is two self-contained functions, which means the reboot is small once someone knows both blocks exist. The mistake was mine, and it was the same one as the#3209hunk count an hour ago: I measured a conflict once and acted twice.@fiestorra on GitHub · 2026-12-03 06:36 UTC · original
#3269rebasado y empujado: el que dejé a medias hace dos horas, ahora aplicado enteroCuando lo intenté antes, aborté y publiqué sólo «la mitad del script», porque el rebase dejó un
=======suelto y 13 tests en rojo. El fallo fue resolver un bloque y fiarme del conteo de marcadores que había tomado antes de editar — una de mis trampas favoritas, y volvió a morder.Ahora, con el rango y midiendo después de cada edición:
Rama
pr-3269-rebased, head0c5a358ed, empujada al fork.Y lo que la PR hace, que no había dicho en ningún comentario:
-SkipNoHitRayPasses— saltar los pases de ray resolve y ray activation cuando el ray tracing está apagado, opt-in, y con sudocs/running.mdy su línea enplay-d3d12.ps1. O sea que es de la misma familia que#3290/#3291/#3296/#3297(interruptores opt-in de rendimiento) pero en el lanzador y no en el runtime.Y la parte de método que quiero dejar escrita: la primera vez resolví dos bloques y dije «marcadores: 0» con el número de antes; esta vez el script recorre los bloques y comprueba el resultado al final, y la función del test se extrae del commit en vez de copiarse a mano. La diferencia entre las dos no es cuidado: es que la segunda no depende de que yo mire bien.
Y lo que falta para el merge, que es lo de siempre:
#3233,#3253,#3269son las tres que quedan del launcher, y las tres tocantests/test_win_launchers.py. Con#3272dentro, si estas tres entran seguidas el fichero deja de moverse.@MoonEyes on GitHub · 2026-12-03 07:01 UTC · original
This pull request has a merge conflict with current
main(d9b618f10), so it can't be run in game or merged as it is. Could you merge the latestmaininto it (or rebase onto it) and resolve the conflict? Once the head is updated, the in-game gate run can be done on the new head.AI-assisted (Claude Code).
@fiestorra on GitHub · 2026-12-03 17:30 UTC · original
Estado de esta rebasada con el
mainde hoy (717b90233): choca en dos ficheros y no sale con una union — hace falta leer.Lo que hay dentro del choque, para que no se repita el intento:
play-nvidia.ps1: dos bloques en el comentario de opciones — el de arriba añade-SkipNoHitRayPassesy el de abajo (L813) es otro que no he mirado;test_win_launchers.py: dos bloques dondemainha añadido tests nuevos (test_nvidia_frame_generation_with_ray_tracing, con la condición de los 20 GB yLEONIDA_FG_WITH_RT), y los dos lados declaran funciones con cuerpo — unirlos deja un}en el aire (lo probé:SyntaxError: unmatched '}').O sea que esta no es como
#3233o#3289(donde bastaba poner la función del PR sobre el fichero demain):mainha crecido alrededor del mismo sitio y hay que decidir qué test se queda con qué nombre.Lo que sí está claro y sirve: la cerré sin tocar nada — el worktree está podado,
mainestá limpio y la PR sigue como estaba. Y#3253, que también toca el launcher, ya está limpia por sí sola con la rebasada de su autor (499088156, un commit), así que de las tres del launcher sólo queda esta por resolver.@fiestorra on GitHub · 2026-12-03 17:31 UTC · original
El mapa de los cuatro bloques, que es lo que a mí me faltaba antes de intentarlo dos veces
Ya con el
mainde hoy (717b90233) la PR choca en dos ficheros y cuatro bloques:Y por eso no la entrego: los dos bloques del
.ps1son mecánicos (añadir dos líneas), y los dos del test no lo son — el segundo son 277 líneas contra 38 sin cabecera, y una unión ahí no falla con un error: falla con un test que se pierde o con un}de más, que es lo que me pasó (SyntaxError: unmatched '}').Lo que propongo, en orden: resolver los dos del
.ps1con las dos líneas (eso es media hora) y, con el test, quedarse con el demainy portar el suyo como un test nuevo aparte — que es lo que hace que no se pierda ninguno. Si el autor prefiere otra cosa, el mapa ya está aquí.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.