Add an opt-in switch to skip no-hit ray passes #3269
Code
Clone this repository
Checkout
From your project repository, check out a new branch and test the changes.
git fetch -u origin "github-pr/3269:github-pr/3269" git switch "github-pr/3269"
Open
leonida/mandy
ubiquitarianism wants to merge 2 commits from
github-pr/3269 into main
pull from: github-pr/3269
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
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
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
3 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!3269
Loading…
Reference in a new issue
No description provided.
Delete branch "github-pr/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?
This branch is out-of-date with the base branch
Reviewers 0 approvals
Details
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Claimed 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.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.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.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.#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.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).
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.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í.Gate run on an RTX 3090 (NVIDIA 621.40, Windows 11 Pro build 26300), executable of this pull request's head
6d5586185(diag profile,diagnostics,dlss,mimalloc, msvc target), Series X output 2560x1440, DLSS quality, no frame generation, 300 s standing at the save, againstmain6ced7a6c5built the same way.-SkipNoHitRayPassesthe game started with the same settings line asmain, so the default path is unchanged. Frame rate not judged: the PC was busy during this run (other programs 46 % CPU against 31-41 % for themainruns).-SkipNoHitRayPasses(default against the switch, captures compared) is queued on this card; result as a further comment.Verdict: PASS (default path).
GPUs tested: NVIDIA GeForce RTX 3090, driver 621.40.
AI-assisted: run and report by Claude Code (Claude Opus 5.5).