VICTORY_BVH_HOLD=1 on NVIDIA wave32: what the picture looks like (15.8 walks/frame held, shadows black) #1088
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#1088
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Hugo373 on GitHub · 2026-11-25 19:03 UTC · original
What
VICTORY_BVH_HOLD=1looks like — the picture the switch asks you to look atThe 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
ca8829fplus PR #868. Diagnostics build, DRED off for timing.What is held
From the log:
197 samples. Among the held programs is
f607780aa8e502d0, which the switch's own commentnames 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
BVH_HOLD=1The 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=1needs64-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=1with 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: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=1screenshot 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:
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
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.
@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=1ran 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 withoutVICTORY_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.@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
ca8829fwith #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 withVICTORY_BVH_HOLD=1.AI-assisted (Claude Code, Claude Opus 5.5). Descriptions and counts only, nothing from the game attached.