d3d12: leave the reflections' miss program out for opaque and transparent surfaces #3248

Closed
YodaMMM wants to merge 2 commits from upstream-pr/3248 into main
YodaMMM commented 2026-12-02 22:21:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by YodaMMM on 2026-12-02T22:21:05Z.


Claimed in the coordination issue as: D3D12-RAYMISS-LEFT-OUT

What and why

Indoors, glass and glossy surfaces come out white-hot: an aquarium's lid and panes, glass table tops, parquet at a grazing angle. The bounds on reflections (LEONIDA_REFLECT_MOST) and on transparent surfaces' light (LEONIDA_AMBIENT_ALPHA) do not change it.

Without the ray-tracing structures nearly every reflection ray the screen-space march does not resolve reaches CS_RayMiss, which gives it the sky's light. This leaves that program's dispatches out for opaque and transparent surfaces (its first root constant, 0 and 1), so those rays keep what the screen-space passes found. Water's dispatches are kept. LEONIDA_RAYMISS_KEEP=1 runs them all, as before. With the structure builder running or hardware ray tracing (crate::pipeline::rays_found) nothing is left out: a miss is then a ray that left the scene.

The approach is trustno1-coder/VIctory-NVIDIA's (VICTORY_RAYMISS_KEEP, in its ambient.rs and draw.rs, GPL-3.0-or-later), which leaves this program out by default.

  • ambient.rs: is_miss recognises the program by name (CS_RayMiss_, the eight hex digits of a variant and the underscore after them; not CS_RayMiss_Volumetrics nor the screen probes').
  • pipeline.rs: a compute shader that matches carries a miss flag, set when the shader is kept.
  • draw.rs: an indirect dispatch of it for surfaces 0 or 1 is left out while the rays find nothing, and counted as left out on purpose (Why::SkipList), as the mesh skip beside it is.
  • docs/switches.md: regenerated (LEONIDA_RAYMISS_KEEP).

Tested

  • cargo test -p leonida-gpu --lib ambient: 5 pass, including the new the_reflections_miss_program_is_told_by_its_name.
  • cargo clippy -p leonida-gpu --features diagnostics: nothing in the lines this touches.
  • python -I tools/d3d12_switches.py --check d3d12/docs/switches.md: exit 0.
  • In game, with the first form of this change (the same test and the same skip, with the matching shaders kept in a set instead of a flag, and the skip not yet counted as Why::SkipList): Series X, -Lowest 1080, frame generation 2x, LEONIDA_AMBIENT_FLOOR=0.4, LEONIDA_REFLECT_MOST=0.25, Jason's house at noon, the same kitchen view before and after.
    • Before: the aquarium's lid and panes white in every combination of LEONIDA_REFLECT_MOST and LEONIDA_AMBIENT_ALPHA on and off (alternated with LEONIDA_AB).
    • After: the aquarium's glass is dark with its plants visible, and the log has "reflections' miss program left out for opaque and transparent surfaces".
  • In game on 2026-12-02, with the form of efd21d8 (the per-shader flag and Why::SkipList) applied to main 8422def: same machine and settings, several starts, Jason's house at noon, a street at night, a shop front at dusk and a shaded plaza at 17:00. The log has the "left out" line and the drops counted under the skip list; the floor indoors has no white sheen with LEONIDA_REFLECT_MOST on or off (alternated with LEONIDA_AB).
  • Not run in game: the head of this pull request (f4b082e, which adds the rays_found test after review), and nothing with -RayTracing or -HardwareRT: with either the skip now stands aside by the code, which was not looked at on pictures. Not looked at in any form: water, a direct (not indirect) dispatch of the program, and the glass table itself.

GPUs tested: NVIDIA GeForce RTX 4090, driver 596.49, Windows 10 Pro 19045

AI-assisted: yes. Written with Claude Fable 5.2 (Claude Code). A separate read-only reviewer agent (Claude Fable 5.2) audited the diff before this was opened. Its findings and what was done:

  • the skip was counted with the drops that are not meant: now Why::SkipList, with a why line;
  • a global set behind a mutex was read on every indirect dispatch: now a per-shader flag, as Shader::ambient is;
  • the direct dispatch path has no such check, and whether the title ever dispatches this program directly could not be told from the code: left as it is, noted above;
  • comments and the test's names tidied.

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not a translator rule.)

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5615739982 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3248). Originally posted by [YodaMMM](https://github.com/YodaMMM) on 2026-12-02T22:21:05Z. --- Claimed in the coordination issue as: D3D12-RAYMISS-LEFT-OUT ### What and why Indoors, glass and glossy surfaces come out white-hot: an aquarium's lid and panes, glass table tops, parquet at a grazing angle. The bounds on reflections (`LEONIDA_REFLECT_MOST`) and on transparent surfaces' light (`LEONIDA_AMBIENT_ALPHA`) do not change it. Without the ray-tracing structures nearly every reflection ray the screen-space march does not resolve reaches `CS_RayMiss`, which gives it the sky's light. This leaves that program's dispatches out for opaque and transparent surfaces (its first root constant, 0 and 1), so those rays keep what the screen-space passes found. Water's dispatches are kept. `LEONIDA_RAYMISS_KEEP=1` runs them all, as before. With the structure builder running or hardware ray tracing (`crate::pipeline::rays_found`) nothing is left out: a miss is then a ray that left the scene. The approach is trustno1-coder/VIctory-NVIDIA's (`VICTORY_RAYMISS_KEEP`, in its `ambient.rs` and `draw.rs`, GPL-3.0-or-later), which leaves this program out by default. - `ambient.rs`: `is_miss` recognises the program by name (`CS_RayMiss_`, the eight hex digits of a variant and the underscore after them; not `CS_RayMiss_Volumetrics` nor the screen probes'). - `pipeline.rs`: a compute shader that matches carries a `miss` flag, set when the shader is kept. - `draw.rs`: an indirect dispatch of it for surfaces 0 or 1 is left out while the rays find nothing, and counted as left out on purpose (`Why::SkipList`), as the mesh skip beside it is. - `docs/switches.md`: regenerated (`LEONIDA_RAYMISS_KEEP`). ### Tested - `cargo test -p leonida-gpu --lib ambient`: 5 pass, including the new `the_reflections_miss_program_is_told_by_its_name`. - `cargo clippy -p leonida-gpu --features diagnostics`: nothing in the lines this touches. - `python -I tools/d3d12_switches.py --check d3d12/docs/switches.md`: exit 0. - In game, with the first form of this change (the same test and the same skip, with the matching shaders kept in a set instead of a flag, and the skip not yet counted as `Why::SkipList`): Series X, `-Lowest 1080`, frame generation 2x, `LEONIDA_AMBIENT_FLOOR=0.4`, `LEONIDA_REFLECT_MOST=0.25`, Jason's house at noon, the same kitchen view before and after. - Before: the aquarium's lid and panes white in every combination of `LEONIDA_REFLECT_MOST` and `LEONIDA_AMBIENT_ALPHA` on and off (alternated with `LEONIDA_AB`). - After: the aquarium's glass is dark with its plants visible, and the log has "reflections' miss program left out for opaque and transparent surfaces". - In game on 2026-12-02, with the form of `efd21d8` (the per-shader flag and `Why::SkipList`) applied to main `8422def`: same machine and settings, several starts, Jason's house at noon, a street at night, a shop front at dusk and a shaded plaza at 17:00. The log has the "left out" line and the drops counted under the skip list; the floor indoors has no white sheen with `LEONIDA_REFLECT_MOST` on or off (alternated with `LEONIDA_AB`). - **Not run in game:** the head of this pull request (`f4b082e`, which adds the `rays_found` test after review), and nothing with `-RayTracing` or `-HardwareRT`: with either the skip now stands aside by the code, which was not looked at on pictures. Not looked at in any form: water, a direct (not indirect) dispatch of the program, and the glass table itself. GPUs tested: NVIDIA GeForce RTX 4090, driver 596.49, Windows 10 Pro 19045 AI-assisted: yes. Written with Claude Fable 5.2 (Claude Code). A separate read-only reviewer agent (Claude Fable 5.2) audited the diff before this was opened. Its findings and what was done: - the skip was counted with the drops that are not meant: now `Why::SkipList`, with a `why` line; - a global set behind a mutex was read on every indirect dispatch: now a per-shader flag, as `Shader::ambient` is; - the direct dispatch path has no such check, and whether the title ever dispatches this program directly could not be told from the code: left as it is, noted above; - comments and the test's names tidied. ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (Not a translator rule.) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
merzleckeier commented 2026-12-02 22:30:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T22:30:20Z.

Review: COMMENTED


Reviewed efd21d86. One scope question at draw.rs:5455–5474: the rationale describes tracing without built structures, but the new skip also applies when software or hardware ray tracing is enabled. I compiled the exact decision method with synthetic roots, and with LEONIDA_HW_RT=1 or LEONIDA_BVH_BUILDER=1 it still skips layers 0 and 1, just as on the default path. Layer 2 and a missing root are kept, and LEONIDA_RAYMISS_KEEP=1 keeps all layers. This checks the decision only. Is the change to active ray tracing intentional? If so, could the exact-head comparison cover both -RayTracing and -HardwareRT? The earlier default-path comparison does not establish what happens to genuine misses in those modes.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6160191022 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3248#pullrequestreview-6160191022). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T22:30:20Z. **Review:** COMMENTED --- Reviewed `efd21d86`. One scope question at `draw.rs:5455–5474`: the rationale describes tracing without built structures, but the new skip also applies when software or hardware ray tracing is enabled. I compiled the exact decision method with synthetic roots, and with `LEONIDA_HW_RT=1` or `LEONIDA_BVH_BUILDER=1` it still skips layers 0 and 1, just as on the default path. Layer 2 and a missing root are kept, and `LEONIDA_RAYMISS_KEEP=1` keeps all layers. This checks the decision only. Is the change to active ray tracing intentional? If so, could the exact-head comparison cover both `-RayTracing` and `-HardwareRT`? The earlier default-path comparison does not establish what happens to genuine misses in those modes.
MoonEyes commented 2026-12-03 00:02:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T00:02:14Z.


RUN (in game, batch of nine pull requests), each head merged with git merge --no-ff onto main 81efe4566, in one build: #3136 74bd1bcd4, #3156 53c3100ce, #3206 d024194b3, #3248 efd21d867, #3256 e7aad1d4c, #3262 3643c2879, #2851 b83b0b375, #3125 89bf1d328, #2642 164506d01. RTX 4060 8 GB, driver 610.88, Windows 11. Series S, -Resolution 1080, frame generation 2x, -PrecompileUsed, the same walking route as the other runs on this machine, 330 s after reaching the world.

What Result
Device lost / device removed 0
Exceptions, panics, hang watchdog, GPU stall, title suspended 0
Process alive at the end yes, stopped by the time limit
Rendered fps, last 240 s (48 samples) median 15.6, mean 15.6
Rendered fps, last 120 s median 14.3
Time under 5 fps in the world 3 %

For reference, the same machine and route rendered 13.3 to 17.2 fps on other batches in the last day. These fps are a check that nothing fell over, not a measurement of a gain.

Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it.

Limits: one run; arrival in the world was driven by keys and not checked on pictures; -PrecompileUsed was used, so the default start (every known pipeline precompiled) was not exercised. The precompile before the world took 619 s, against 157 s for the previous batch; the shader-side changes in this batch (#3156, #3262) probably left the pipeline cache cold (not checked). Switches that are off by default (for example #2851's LEONIDA_TITLE_MEMORY_SCALE, #3136's timeline attribution) were not turned on: this run covers their default path only. #2642 targets Wine and was run on Windows only.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7362721453 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3248#issuecomment-7362721453). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T00:02:14Z. --- RUN (in game, batch of nine pull requests), each head merged with `git merge --no-ff` onto main `81efe4566`, in one build: #3136 `74bd1bcd4`, #3156 `53c3100ce`, #3206 `d024194b3`, #3248 `efd21d867`, #3256 `e7aad1d4c`, #3262 `3643c2879`, #2851 `b83b0b375`, #3125 `89bf1d328`, #2642 `164506d01`. RTX 4060 8 GB, driver 610.88, Windows 11. Series S, `-Resolution 1080`, frame generation 2x, `-PrecompileUsed`, the same walking route as the other runs on this machine, 330 s after reaching the world. | What | Result | |---|---| | Device lost / device removed | 0 | | Exceptions, panics, hang watchdog, GPU stall, title suspended | 0 | | Process alive at the end | yes, stopped by the time limit | | Rendered fps, last 240 s (48 samples) | median 15.6, mean 15.6 | | Rendered fps, last 120 s | median 14.3 | | Time under 5 fps in the world | 3 % | For reference, the same machine and route rendered 13.3 to 17.2 fps on other batches in the last day. These fps are a check that nothing fell over, not a measurement of a gain. Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it. Limits: one run; arrival in the world was driven by keys and not checked on pictures; `-PrecompileUsed` was used, so the default start (every known pipeline precompiled) was not exercised. The precompile before the world took 619 s, against 157 s for the previous batch; the shader-side changes in this batch (#3156, #3262) probably left the pipeline cache cold (not checked). Switches that are off by default (for example #2851's `LEONIDA_TITLE_MEMORY_SCALE`, #3136's timeline attribution) were not turned on: this run covers their default path only. #2642 targets Wine and was run on Windows only. AI-assisted (Claude Code).
fiestorra commented 2026-12-03 00:12:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T00:12:01Z.


VERIFY-3248 — Windows nativo: las cinco pruebas de ambient pasan; el control mordió al tercer intento

Own commit efd21d867 — ambient.rs (+34), draw.rs (+31)

Ran at the head

cargo test -p leonida-gpu --lib ambient     5 passed; 0 failed
  ambient::tests::the_reflections_miss_program_is_told_by_its_name ... ok

Decisive control: I made is_miss return true unconditionally, rebuilt and ran:

assertion failed: !is_miss(b"..CS_RayMiss_Volumetrics_de6b91a6_Wrapped..")
FAILED

So the test does check the negative cases, and the predicate is the one it imports.

Two earlier mutations, and I am reporting them because they behaved in a way I did not explain: I first relaxed the predicate to w.starts_with(NAME) alone, and then to w.starts_with(NAME) && !w.is_empty() — both compiled (Compiling leonida-gpu printed) and both left the test green, although by reading the assertion above the Volumetrics case should have failed under either. I could not explain it in the time this pass allowed, and I would rather write that down than quietly keep the third result as if the first two had never happened.

What the change is: the reflections' miss program (CS_RayMiss_ plus eight hex digits of a variant's hash — not CS_RayMiss_Volumetrics, not the screen probes') gives every unresolved reflection ray the sky's light — "glass table tops, an aquarium's panes and glossy floors indoors came out white-hot (Jason's house at noon, 2026-12-01)". The fix leaves the miss program's dispatches for opaque and transparent surfaces out, so those rays keep what the screen-space passes found, with water's kept (LEONIDA_RAYMISS_KEEP=1 restores the old behaviour).

And the attribution is in the doc, which is the right house style: trustno1-coder/VIctory-NVIDIA (VICTORY_RAYMISS_KEEP, GPL-3.0-or-later).

What I could not test

  • The white-hot glass itself: no title. What is tested is the name recognition, which is the switch that decides.
  • The two mutations above: unexplained.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7362911906 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3248#issuecomment-7362911906). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T00:12:01Z. --- ## VERIFY-3248 — Windows nativo: las cinco pruebas de `ambient` pasan; **el control mordió al tercer intento** | | | |---|---| | Own commit | `efd21d867` — `ambient.rs` (+34), `draw.rs` (+31) | **Ran at the head** ``` cargo test -p leonida-gpu --lib ambient 5 passed; 0 failed ambient::tests::the_reflections_miss_program_is_told_by_its_name ... ok ``` **Decisive control**: I made `is_miss` return `true` unconditionally, rebuilt and ran: ``` assertion failed: !is_miss(b"..CS_RayMiss_Volumetrics_de6b91a6_Wrapped..") FAILED ``` **So the test does check the negative cases**, and the predicate is the one it imports. **Two earlier mutations, and I am reporting them because they behaved in a way I did not explain**: I first relaxed the predicate to `w.starts_with(NAME)` alone, and then to `w.starts_with(NAME) && !w.is_empty()` — **both compiled (`Compiling leonida-gpu` printed) and both left the test green**, although by reading the assertion above **the Volumetrics case should have failed under either**. **I could not explain it in the time this pass allowed**, and **I would rather write that down than quietly keep the third result as if the first two had never happened.** **What the change is**: the reflections' **miss program** (`CS_RayMiss_` plus eight hex digits of a variant's hash — **not** `CS_RayMiss_Volumetrics`, **not** the screen probes') **gives every unresolved reflection ray the sky's light** — *"glass table tops, an aquarium's panes and glossy floors indoors came out white-hot (Jason's house at noon, 2026-12-01)"*. **The fix leaves the miss program's dispatches for opaque and transparent surfaces out**, so those rays keep what the screen-space passes found, **with water's kept** (`LEONIDA_RAYMISS_KEEP=1` restores the old behaviour). **And the attribution is in the doc, which is the right house style**: `trustno1-coder/VIctory-NVIDIA` (`VICTORY_RAYMISS_KEEP`, GPL-3.0-or-later). ## What I could not test - **The white-hot glass itself**: no title. **What is tested is the name recognition**, which is the switch that decides. - **The two mutations above**: unexplained. Written with an AI assistant.
YodaMMM commented 2026-12-03 00:28:25 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by YodaMMM on 2026-12-03T00:28:25Z.


Thank you for the review. It was not intended: the rationale only holds while the rays find nothing.

f4b082e makes the skip stand aside when crate::pipeline::rays_found() is true (the structure builder running, or hardware ray tracing), the same test ambient::on() uses for the stand-in. With -RayTracing or -HardwareRT all three layers of the miss program now run as the title asks.

Checked at this head: cargo test -p leonida-gpu --lib ambient (5 pass) and cargo clippy -p leonida-gpu --features diagnostics (clean in the lines touched). Not run in game at this head, and neither ray tracing mode was looked at on pictures; the description says so.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7363230893 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3248#issuecomment-7363230893). Originally posted by [YodaMMM](https://github.com/YodaMMM) on 2026-12-03T00:28:25Z. --- Thank you for the review. It was not intended: the rationale only holds while the rays find nothing. `f4b082e` makes the skip stand aside when `crate::pipeline::rays_found()` is true (the structure builder running, or hardware ray tracing), the same test `ambient::on()` uses for the stand-in. With `-RayTracing` or `-HardwareRT` all three layers of the miss program now run as the title asks. Checked at this head: `cargo test -p leonida-gpu --lib ambient` (5 pass) and `cargo clippy -p leonida-gpu --features diagnostics` (clean in the lines touched). Not run in game at this head, and neither ray tracing mode was looked at on pictures; the description says so. AI-assisted (Claude Code).
MoonEyes commented 2026-12-03 00:51:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T00:51:33Z.


RUN (in game, batch of two pull requests), each head merged with git merge --no-ff onto main d5b30be1c, in one build: #3035 ed7048a14, #3248 f4b082e96. RTX 4060 8 GB, driver 610.88, Windows 11. Series S, -Resolution 1080, frame generation 2x, -PrecompileUsed, the same walking route as the other runs on this machine, 330 s after reaching the world.

What Result
Device lost / device removed 0
Exceptions, panics, hang watchdog, GPU stall, title suspended 0
Process alive at the end yes, stopped by the time limit
Rendered fps, last 240 s (48 samples) median 17.3, mean 16.8
Rendered fps, last 120 s median 17.1
Time under 5 fps in the world 3 %

For reference, the same machine and route rendered 13.3 to 17.2 fps on other batches in the last day. These fps are a check that nothing fell over, not a measurement of a gain.

Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it.

Limits: one run; arrival in the world was driven by keys and not checked on pictures; -PrecompileUsed was used, so the default start (every known pipeline precompiled) was not exercised. #3248 was also run in a batch on its earlier head efd21d867; this run covers its current head. #3035 acts on cards under 12 GB in PCs of 20 GB or more, which this PC is (8 GB card, 32 GB of RAM); its memory effect was not measured here, only that nothing fell over.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7363674636 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3248#issuecomment-7363674636). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T00:51:33Z. --- RUN (in game, batch of two pull requests), each head merged with `git merge --no-ff` onto main `d5b30be1c`, in one build: #3035 `ed7048a14`, #3248 `f4b082e96`. RTX 4060 8 GB, driver 610.88, Windows 11. Series S, `-Resolution 1080`, frame generation 2x, `-PrecompileUsed`, the same walking route as the other runs on this machine, 330 s after reaching the world. | What | Result | |---|---| | Device lost / device removed | 0 | | Exceptions, panics, hang watchdog, GPU stall, title suspended | 0 | | Process alive at the end | yes, stopped by the time limit | | Rendered fps, last 240 s (48 samples) | median 17.3, mean 16.8 | | Rendered fps, last 120 s | median 17.1 | | Time under 5 fps in the world | 3 % | For reference, the same machine and route rendered 13.3 to 17.2 fps on other batches in the last day. These fps are a check that nothing fell over, not a measurement of a gain. Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it. Limits: one run; arrival in the world was driven by keys and not checked on pictures; `-PrecompileUsed` was used, so the default start (every known pipeline precompiled) was not exercised. #3248 was also run in a batch on its earlier head `efd21d867`; this run covers its current head. #3035 acts on cards under 12 GB in PCs of 20 GB or more, which this PC is (8 GB card, 32 GB of RAM); its memory effect was not measured here, only that nothing fell over. AI-assisted (Claude Code).
x2Tweek commented 2026-12-03 00:55:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by x2Tweek on 2026-12-03T00:55:49Z.


RUN (in game, RTX 5090 32 GB, 4 runs of about 340 s each in the world): PASS, 0 device losses.

  • Head / main: head efd21d867 merged with git merge --no-ff onto main 81efe4566 (merge b3a06aaca, clean).
    No other changes.
  • GPU / driver / OS: NVIDIA GeForce RTX 5090 32 GB, driver 621.40, i9-14900KS, 64 GB DDR5, Windows 11 (26300).
  • Build: diag, features diagnostics,dlss,mimalloc.
  • Settings: Series X profile, 3840x2160 output, DLSS quality (render scale 0.6667), -SmoothMotion -PrecompileAll -Log, LEONIDA_D3D12_DRED=1. Each run loads the same save with scripted input (Enter through the
    menus, then walking).
run hardware RT time in the world device lost rendered fps median frames > 250 ms
PR, run 1 on 362 s 0 10.8 10
PR, run 2 on 354 s 0 15.1 2
PR, run 3 off 353 s 0 17.0 (frame gen 4x on top) 1
main alone, run 1 on 362 s 0 12.8 2
main alone, run 2 on 352 s 0 16.6 1
  • Hardware RT on: as the PR says, nothing is left out when rays find the scene, so these runs only check that
    nothing regressed. The spread between runs of the same build (10.8 to 15.1 fps for the PR, 12.8 to 16.6 for
    main) is larger than any difference between the builds. I read no effect from this PR there.
  • Hardware RT off: the change is active. The log reads dropped 2.0/frame without a host pipeline: indirect kind 2: the reflections' miss program for opaque or transparent surfaces (LEONIDA_RAYMISS_KEEP=1 runs it) every
    5 s, with no device loss and no errors around it.
  • Picture: not checked by eye. The run was unattended, so I cannot confirm the white-hot glass is gone; someone
    at the screen should check that indoors.

AI-assisted: the builds, the automated runs, the log reading and the write-up were done with Claude Opus 5.5
(Claude Code); the numbers are the runtime's own log lines.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7363755140 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3248#issuecomment-7363755140). Originally posted by [x2Tweek](https://github.com/x2Tweek) on 2026-12-03T00:55:49Z. --- **RUN (in game, RTX 5090 32 GB, 4 runs of about 340 s each in the world): PASS, 0 device losses.** - **Head / main:** head `efd21d867` merged with `git merge --no-ff` onto `main` `81efe4566` (merge `b3a06aaca`, clean). No other changes. - **GPU / driver / OS:** NVIDIA GeForce RTX 5090 32 GB, driver 621.40, i9-14900KS, 64 GB DDR5, Windows 11 (26300). - **Build:** diag, features `diagnostics,dlss,mimalloc`. - **Settings:** Series X profile, 3840x2160 output, DLSS quality (render scale 0.6667), `-SmoothMotion -PrecompileAll -Log`, `LEONIDA_D3D12_DRED=1`. Each run loads the same save with scripted input (Enter through the menus, then walking). | run | hardware RT | time in the world | device lost | rendered fps median | frames > 250 ms | |---|---|---|---|---|---| | PR, run 1 | on | 362 s | 0 | 10.8 | 10 | | PR, run 2 | on | 354 s | 0 | 15.1 | 2 | | **PR, run 3** | **off** | 353 s | 0 | 17.0 (frame gen 4x on top) | 1 | | main alone, run 1 | on | 362 s | 0 | 12.8 | 2 | | main alone, run 2 | on | 352 s | 0 | 16.6 | 1 | - **Hardware RT on:** as the PR says, nothing is left out when rays find the scene, so these runs only check that nothing regressed. The spread between runs of the same build (10.8 to 15.1 fps for the PR, 12.8 to 16.6 for `main`) is larger than any difference between the builds. I read no effect from this PR there. - **Hardware RT off:** the change is active. The log reads `dropped 2.0/frame without a host pipeline: indirect kind 2: the reflections' miss program for opaque or transparent surfaces (LEONIDA_RAYMISS_KEEP=1 runs it)` every 5 s, with no device loss and no errors around it. - **Picture:** not checked by eye. The run was unattended, so I cannot confirm the white-hot glass is gone; someone at the screen should check that indoors. AI-assisted: the builds, the automated runs, the log reading and the write-up were done with Claude Opus 5.5 (Claude Code); the numbers are the runtime's own log lines.
MoonEyes commented 2026-12-03 07:01:42 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T07:01:42Z.


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 latest main into 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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7370509563 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3248#issuecomment-7370509563). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T07:01:42Z. --- 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 latest `main` into 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 commented 2026-12-03 09:29:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T09:29:50Z.


Tres más, estas de dos commits cada una, rebasadas contra d9b618f10 y empujadas

El resolvedor funcionó igual, porque el conflicto de cada commit es la misma línea del recuento (el while resuelve y sigue hasta que el rebase termina, en vez de asumir un solo bloque):

#3144  3adefc60d   5 files, +278/−2    → 685/645   1 .rs    gpu 715/1
#3171  09dbec1c5   5 files, +118/−24   → 685/645   3 .rs    gpu 716/1
#3248  a48d691f0   4 files,  +79/−1    → 685/645   3 .rs    gpu 716/1

Las tres: 0 marcadores, pytest tests/test_d3d12_switches.py 20 passed, y cargo test -p leonida-gpu --lib con el fallo de la iGPU de siempre.

Y el desglose de tests, que es lo que separa estas tres de #3009 y #3126:

PR líneas .rs tests nuevos en leonida-gpu
#3144 1 0 (715 = main)
#3171 3 1 (716)
#3248 3 1 (716)

O sea que de las cinco rebasadas hoy, tres no añaden tests (#3009, #3126, #3144) y dos sí (#3171, #3248) — y todas tocan código de runtime. Quien fusione tiene ahora el dato delante en vez de descubrirlo después.

Ramas pr-3144-rebased, pr-3171-rebased y pr-3248-rebased en el fork.

Lo que esto ya permite decir: de los 22 conflictos, seis están resueltos y empujados (#3009, #3126, #3140, #3144, #3171, #3248) más los cuatro de antes (#3233, #3253, #3269, #3289) más #3225 y #3308 — doce en total, y todos con el mismo patrón: una línea del recuento que se recalcula contando el fichero.

Lo que no he resuelto: los que chocan en un .rs (#2567, #2856, #3115, #3197) y los de varios commits con código (#2580, #3124, #3130, #3209, #3214) — esos no son una línea y no los toco sin leer el cambio.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7373753108 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3248#issuecomment-7373753108). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T09:29:50Z. --- ## Tres más, estas de dos commits cada una, rebasadas contra `d9b618f10` y empujadas **El resolvedor funcionó igual, porque el conflicto de cada commit es la misma línea del recuento** (**el `while` resuelve y sigue hasta que el rebase termina, en vez de asumir un solo bloque**): ``` #3144 3adefc60d 5 files, +278/−2 → 685/645 1 .rs gpu 715/1 #3171 09dbec1c5 5 files, +118/−24 → 685/645 3 .rs gpu 716/1 #3248 a48d691f0 4 files, +79/−1 → 685/645 3 .rs gpu 716/1 ``` **Las tres: 0 marcadores, `pytest tests/test_d3d12_switches.py` 20 passed, y `cargo test -p leonida-gpu --lib` con el fallo de la iGPU de siempre.** **Y el desglose de tests, que es lo que separa estas tres de `#3009` y `#3126`**: | PR | líneas .rs | tests nuevos en `leonida-gpu` | |---|---|---| | **`#3144`** | 1 | **0** (715 = main) | | **`#3171`** | 3 | **1** (716) | | **`#3248`** | 3 | **1** (716) | **O sea que de las cinco rebasadas hoy, tres no añaden tests** (`#3009`, `#3126`, `#3144`) **y dos sí** (`#3171`, `#3248`) — **y todas tocan código de runtime.** **Quien fusione tiene ahora el dato delante en vez de descubrirlo después.** **Ramas `pr-3144-rebased`, `pr-3171-rebased` y `pr-3248-rebased` en el fork.** **Lo que esto ya permite decir**: **de los 22 conflictos, seis están resueltos y empujados** (`#3009`, `#3126`, `#3140`, `#3144`, `#3171`, `#3248`) **más los cuatro de antes** (`#3233`, `#3253`, `#3269`, `#3289`) **más `#3225` y `#3308`** — **doce en total, y todos con el mismo patrón: una línea del recuento que se recalcula contando el fichero.** **Lo que no he resuelto**: **los que chocan en un `.rs`** (`#2567`, `#2856`, `#3115`, `#3197`) **y los de varios commits con código** (`#2580`, `#3124`, `#3130`, `#3209`, `#3214`) — **esos no son una línea y no los toco sin leer el cambio.**
MoonEyes commented 2026-12-03 18:03:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T18:03:30Z.


Thanks for the work on this. This pull request has a merge conflict with the current main and has had no new commit, comment or review for more than 5 hours, so I am closing it to keep the list of open pull requests manageable. This is not a judgement of the change. Whenever you like, merge the latest main into your branch, resolve the conflict, and reopen it (or open a new pull request that links this one). Please re-run the relevant tests on the new head; a reviewer will look at it when time allows, with no guarantee of timing or outcome.


Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7387529567 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3248#issuecomment-7387529567). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T18:03:30Z. --- Thanks for the work on this. This pull request has a merge conflict with the current `main` and has had no new commit, comment or review for more than 5 hours, so I am closing it to keep the list of open pull requests manageable. This is not a judgement of the change. Whenever you like, merge the latest `main` into your branch, resolve the conflict, and reopen it (or open a new pull request that links this one). Please re-run the relevant tests on the new head; a reviewer will look at it when time allows, with no guarantee of timing or outcome. --- _Generated by [Claude Code](https://claude.ai/code)_

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!3248
No description provided.