VICTORY_BVH_HOLD=1 on NVIDIA wave32: what the picture looks like (15.8 walks/frame held, shadows black) #1088

Open
opened 2026-11-26 03:57:15 +00:00 by github-bot · 3 comments
Owner

@⁠Hugo373 on GitHub · 2026-11-25 19:03 UTC · original

What VICTORY_BVH_HOLD=1 looks like — the picture the switch asks you to look at

The switch's doc comment ends: "What the passes would have written stays as the title left it
(their targets are not cleared by us): the picture has to be looked at."
This is what it
looks like on an NVIDIA wave32 card.

Machine

RTX 5080 Laptop 16 GB (32-lane waves), driver 621.01, Windows 11 26300, Core Ultra 7 255HX.
Tree ca8829f plus PR #868. Diagnostics build, DRED off for timing.

What is held

From the log:

a dispatch of a program that walks ray-tracing structures is held back: the structure builder
  has not built them (VICTORY_BVH_HOLD=1); the first one shaders=[compute 6d7fe7745ab9c6d8]
dispatches of programs that walk ray-tracing structures held back per frame: 15.8 mean, 32 max
dropped 15.8/frame without a host pipeline: a walk of ray-tracing structures that are not built

197 samples. Among the held programs is f607780aa8e502d0, which the switch's own comment
names as CS_IrradianceCache_ShadowTrace_WithFar — a shadow trace.

The picture

Shadows are pure black with hard edges and no gradient: no penumbra, no ambient fill, no
bounce. Faces, clothing and directly-lit surfaces are correct — skin has subsurface reddening,
hair and fabric read properly, decals and signage are legible.

So the cost is confined to what the ray-traced passes would have contributed: shadow softening
and indirect fill. Everything the rasteriser does is unaffected.

One transitional note: the first frame or two after the switch engages is a white haze over
the whole picture, while the passes' targets still hold stale content. It clears once the title
writes them itself. Do not judge the switch on that frame.

Compared with leaving the walks running

walks shadows device loss
switch off run against unbuilt structures plausible-looking, by accident yes — repeatedly, seconds after world load
BVH_HOLD=1 15.8/frame dropped black, hard-edged none in the runs we measured

The switch's comment cites upstream PR 2311 measuring "a card hung in exactly that dispatch on
an NVIDIA card, every run"
, and says both of the author's own card losses came within a second
of the first use of CS_RaytracingResolve. That matches what we see with the switch off.

What this is not

Not a fix for the lighting. The structures are still unbuilt — VICTORY_BVH_BUILDER=1 needs
64-lane waves and this card refuses them, so the builder cannot run whole here. This only stops
the walks from running on bytes that are not a structure.

On a 64-lane card the builder makes all 53 pipelines, and then #985 reports a different failure
(the title crashes ~10 s later on garbage pointers).

Progress with it on

Reached the "Gone Fishing" chapter card and its cutscene at 3.8 fps / 3,417 draws, and the
mission title renders bottom-right. Same point as #1034, which reported 7 fps average.

Reproduction

Set VICTORY_BVH_HOLD=1 with the builder off, reach the world, and read the held-walks line.
Look at a shadowed surface in a lit scene.

**@⁠Hugo373** on GitHub · 2026-11-25 19:03 UTC · [original](https://github.com/fxceless/victory-fork/issues/1088) # What `VICTORY_BVH_HOLD=1` looks like — the picture the switch asks you to look at The switch's doc comment ends: *"What the passes would have written stays as the title left it (their targets are not cleared by us): **the picture has to be looked at.**"* This is what it looks like on an NVIDIA wave32 card. ## Machine RTX 5080 Laptop 16 GB (32-lane waves), driver 621.01, Windows 11 26300, Core Ultra 7 255HX. Tree `ca8829f` plus PR #868. Diagnostics build, DRED off for timing. ## What is held From the log: ``` a dispatch of a program that walks ray-tracing structures is held back: the structure builder has not built them (VICTORY_BVH_HOLD=1); the first one shaders=[compute 6d7fe7745ab9c6d8] dispatches of programs that walk ray-tracing structures held back per frame: 15.8 mean, 32 max dropped 15.8/frame without a host pipeline: a walk of ray-tracing structures that are not built ``` 197 samples. Among the held programs is **`f607780aa8e502d0`**, which the switch's own comment names as `CS_IrradianceCache_ShadowTrace_WithFar` — a shadow trace. ## The picture Shadows are **pure black with hard edges and no gradient**: no penumbra, no ambient fill, no bounce. Faces, clothing and directly-lit surfaces are correct — skin has subsurface reddening, hair and fabric read properly, decals and signage are legible. So the cost is confined to what the ray-traced passes would have contributed: shadow softening and indirect fill. Everything the rasteriser does is unaffected. One transitional note: the first frame or two after the switch engages is a **white haze** over the whole picture, while the passes' targets still hold stale content. It clears once the title writes them itself. Do not judge the switch on that frame. ## Compared with leaving the walks running | | walks | shadows | device loss | |---|---|---|---| | switch off | run against unbuilt structures | plausible-looking, by accident | **yes** — repeatedly, seconds after world load | | `BVH_HOLD=1` | 15.8/frame dropped | black, hard-edged | **none** in the runs we measured | The switch's comment cites upstream PR 2311 measuring *"a card hung in exactly that dispatch on an NVIDIA card, every run"*, and says both of the author's own card losses came within a second of the first use of `CS_RaytracingResolve`. That matches what we see with the switch off. ## What this is not Not a fix for the lighting. The structures are still unbuilt — `VICTORY_BVH_BUILDER=1` needs 64-lane waves and this card refuses them, so the builder cannot run whole here. This only stops the walks from running on bytes that are not a structure. On a 64-lane card the builder makes all 53 pipelines, and then #985 reports a different failure (the title crashes ~10 s later on garbage pointers). ## Progress with it on Reached the **"Gone Fishing"** chapter card and its cutscene at 3.8 fps / 3,417 draws, and the mission title renders bottom-right. Same point as #1034, which reported 7 fps average. ## Reproduction Set `VICTORY_BVH_HOLD=1` with the builder off, reach the world, and read the held-walks line. Look at a shadowed surface in a lit scene.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:57:15 +00:00
Author
Owner

@⁠Hugo373 on GitHub · 2026-11-25 19:16 UTC · original

Two more things from looking at the picture the comment asks you to look at.

The passes' targets are not cleared, and it shows as black splotches

The comment says "What the passes would have written stays as the title left it (their targets are not cleared by us)". On this machine that is visible as irregular black blobs on and around lit surfaces — not shadow-shaped, not aligned to geometry. They look like whatever was last in the target, composited over the frame.

They are easy to mistake for a lighting result. They are not: they are stale target content. Worth knowing before anyone reads a BVH_HOLD=1 screenshot as "the lighting is close".

Interiors lose all bounce; exteriors are fine

A boat hull: the outside — white panel, decal, latch, hinge — is correctly lit. The inside surfaces are pure black. Directly sunlit surfaces are unaffected; anything lit only by bounce is black. Consistent with the README's ray-tracing note.

Not all transparency is affected, which narrows it

Two pairs of tinted glasses in the same scene:

  • one pair renders correctly — eyes visible through the lens, gradient tint, frame casting a shadow
  • the other reads as flat black lenses

So alpha-blended tint works. The difference is likely the material: the comment lists "ray-traced shadows, screen probes, reflections, the irradiance cache" among what the held programs cover, and a lens using a ray-traced reflection or refraction would have nothing to show once those walks are held.

This is a guess, not verified — I have not identified which shader each pair uses. It is testable by turning the switch off and seeing whether the black lenses resolve, at the cost of the hang risk.

Numbers from the same run

dispatches of programs that walk ray-tracing structures held back per frame: 15.8 mean, 32 max
dropped 1773.5/frame: a stage of the ray-tracing structure builder, which is off

f607780aa8e502d0 (CS_IrradianceCache_ShadowTrace_WithFar, per the switch's own comment) is among the held.

Reached the "Gone Fishing" chapter and its cutscene with the switch on, 3.8 fps at 3,417 draws, no device loss.

**@⁠Hugo373** on GitHub · 2026-11-25 19:16 UTC · [original](https://github.com/fxceless/victory-fork/issues/1088#issuecomment-7172060760) Two more things from looking at the picture the comment asks you to look at. ## The passes' targets are not cleared, and it shows as black splotches The comment says *"What the passes would have written stays as the title left it (their targets are not cleared by us)"*. On this machine that is visible as **irregular black blobs** on and around lit surfaces — not shadow-shaped, not aligned to geometry. They look like whatever was last in the target, composited over the frame. They are easy to mistake for a lighting result. They are not: they are stale target content. Worth knowing before anyone reads a `BVH_HOLD=1` screenshot as "the lighting is close". ## Interiors lose all bounce; exteriors are fine A boat hull: the outside — white panel, decal, latch, hinge — is correctly lit. The inside surfaces are pure black. Directly sunlit surfaces are unaffected; anything lit only by bounce is black. Consistent with the README's ray-tracing note. ## Not all transparency is affected, which narrows it Two pairs of tinted glasses in the same scene: - one pair renders correctly — eyes visible through the lens, gradient tint, frame casting a shadow - the other reads as flat black lenses So alpha-blended tint works. The difference is likely the material: the comment lists *"ray-traced shadows, screen probes, **reflections**, the irradiance cache"* among what the held programs cover, and a lens using a ray-traced reflection or refraction would have nothing to show once those walks are held. **This is a guess, not verified** — I have not identified which shader each pair uses. It is testable by turning the switch off and seeing whether the black lenses resolve, at the cost of the hang risk. ## Numbers from the same run ``` dispatches of programs that walk ray-tracing structures held back per frame: 15.8 mean, 32 max dropped 1773.5/frame: a stage of the ray-tracing structure builder, which is off ``` `f607780aa8e502d0` (`CS_IrradianceCache_ShadowTrace_WithFar`, per the switch's own comment) is among the held. Reached the "Gone Fishing" chapter and its cutscene with the switch on, 3.8 fps at 3,417 draws, no device loss.
Author
Owner

@⁠HLVM04 on GitHub · 2026-11-25 19:26 UTC · original

On "the builder cannot run whole here": a data point from another 32-lane card. RTX 5070 Ti 16 GB (wave32 only, driver 616.64, Windows 11 26200), with #994 merged locally (stacked on #854's paired wave64 form and #993): VICTORY_BVH_BUILDER=1 ran 240 s without a crash, at about 589 ms a frame. Before #994, with only a local fix for the DispatchX thread-count flag (0x20), the builder also ran but crashed about 70 s in, with or without VICTORY_BVH_QUARANTINE=1.

So on this card the builder does run on 32-lane waves; what stopped it before was the crash. Limits: one run, we did not count how many of the builder's pipelines were made, and we did not compare the picture with VICTORY_BVH_HOLD=1.

**@⁠HLVM04** on GitHub · 2026-11-25 19:26 UTC · [original](https://github.com/fxceless/victory-fork/issues/1088#issuecomment-7172299581) On "the builder cannot run whole here": a data point from another 32-lane card. RTX 5070 Ti 16 GB (wave32 only, driver 616.64, Windows 11 26200), with #994 merged locally (stacked on #854's paired wave64 form and #993): `VICTORY_BVH_BUILDER=1` ran 240 s without a crash, at about 589 ms a frame. Before #994, with only a local fix for the DispatchX thread-count flag (0x20), the builder also ran but crashed about 70 s in, with or without `VICTORY_BVH_QUARANTINE=1`. So on this card the builder does run on 32-lane waves; what stopped it before was the crash. Limits: one run, we did not count how many of the builder's pipelines were made, and we did not compare the picture with `VICTORY_BVH_HOLD=1`.
Author
Owner

@⁠tippythetaidum on GitHub · 2026-11-25 19:48 UTC · original

The same switch with the ambient constant from #917 on, on an RTX 5080 16 GB (desktop, driver 621.14, Windows 11, Series X profile). Release build of ca8829f with #823, #927, #834, #1007, #1031 and #917, VICTORY_LEVELS_ON_DEMAND=1, VICTORY_AMBIENT=0.6. Two 600-second runs through the prologue, without and with VICTORY_BVH_HOLD=1.

  • Frame rate: world median 5.7 to 6.3 fps (25th percentile 4.5 to 5.6, peaks 7.8 to 9.1). Holding the walks back saves about a tenth of the frame here.
  • Picture: darker and flatter with the hold, even with the ambient constant. In the cell, the corners and the bunks lose what light they had, the sunlit floor beyond the corridor gate nearly disappears, and the opening cutscene looks under-lit. Without the hold, the same passes give oily, sky-coloured reflections and blocky shadow squares in my runs, so neither is right. Both point at the structure builder (#994) for the real fix.
  • No new faults: no errors and no device loss in either run.

AI-assisted (Claude Code, Claude Opus 5.5). Descriptions and counts only, nothing from the game attached.

**@⁠tippythetaidum** on GitHub · 2026-11-25 19:48 UTC · [original](https://github.com/fxceless/victory-fork/issues/1088#issuecomment-7172792669) The same switch with the ambient constant from #917 on, on an RTX 5080 16 GB (desktop, driver 621.14, Windows 11, Series X profile). Release build of `ca8829f` with #823, #927, #834, #1007, #1031 and #917, `VICTORY_LEVELS_ON_DEMAND=1`, `VICTORY_AMBIENT=0.6`. Two 600-second runs through the prologue, without and with `VICTORY_BVH_HOLD=1`. - **Frame rate:** world median 5.7 to 6.3 fps (25th percentile 4.5 to 5.6, peaks 7.8 to 9.1). Holding the walks back saves about a tenth of the frame here. - **Picture:** darker and flatter with the hold, even with the ambient constant. In the cell, the corners and the bunks lose what light they had, the sunlit floor beyond the corridor gate nearly disappears, and the opening cutscene looks under-lit. Without the hold, the same passes give oily, sky-coloured reflections and blocky shadow squares in my runs, so neither is right. Both point at the structure builder (#994) for the real fix. - **No new faults:** no errors and no device loss in either run. AI-assisted (Claude Code, Claude Opus 5.5). Descriptions and counts only, nothing from the game attached.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#1088
No description provided.