Ambient: hold the ray-marched fog to the room's light and settle the estimate by the clock (interior veil on cards without the builder) #58
No reviewers
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/DoubleGhosty--cool_fox!58
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/58/head"
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?
@Dathinel on GitHub · 2026-11-27 02:08 UTC · original
Dathinel:ambient-march-fog-cap→main· +305 −9 · 3 files · 4 commits · closed without mergingThe fog veil over interiors with the ambient estimate on (a number, not
constant:), for cards without the ray-tracing builder. Four commits, every switch off unless set.What was measured (RTX 3050 Laptop 4 GB, 32-lane, Series S, title 1.0.2.1)
Target dumps of a veiled and a clean run of the same interior cutscene, on a tree of
f4b48adlineage:VICTORY_AMBIENT_AIRcaps (it held about 0.05, and the cap was applied). It travels the title's ray-marched in-scatter:scattering_transmittance_system:CS_Gather_Classified_*(180x102 RGBA16F) →CS_ReconstructRaymarchClassified*→ diffusion →CS_ApplyCombinedDeferred. Scene colour on the interior wall equalled that image texel for texel; nothing bounds that path.What is here
afcded6VICTORY_AMBIENT_MOST=<multiple>(default 4.0, as now)77e13a971a96059VICTORY_AMBIENT_SETTLE=<ms>[,<jump>]: the slow mean settles by the clock and takes a change of more than<jump>at onceb4ba4bb,9576c45de0c40f,37b5a14VICTORY_AMBIENT_MARCH=<multiple>: a new role holds the two ray-marched in-scatter images to that multiple of the slow mean before eachCS_ReconstructRaymarchClassifiedFull/NoAlphaWith every switch unset nothing changes: the march pipeline and its view heap are made only when the switch is on, and a failure there leaves the stand-in standing.
Results
On our tree (
f4b48adlineage),VICTORY_AMBIENT_SETTLE=250,3 VICTORY_AMBIENT_MARCH=3: no veil in three runs of three; before, about 7 runs in 10 veiled.VICTORY_AMBIENT_MARCH=1.0flattened daylight haze (82 % of texels on the cap), so 3 is what I use.On this branch (your
mainat6d813b4plus these commits), one run each, same settings (VICTORY_AMBIENT=0.8 VICTORY_AMBIENT_AIR=1.5), captures every 4 s:main6d813b4SETTLE=250,3 MARCH=3It builds (
cargo build --locked --profile diag -p victory --features diagnostics) and the log shows the role running on the 180x102 images.Limits, so nobody is surprised
VICTORY_AMBIENT=constant:..., whichPlay-VIctory.cmdsets: the cap is a multiple of the estimate's slow mean, and there is none in constant mode. It works with a number (asPlay-VIctory-4GB.cmdsets) or with the variable unset.cargo test, clippy,cargo fmt(a few added lines are over 100 columns), any card other than the one above, the Series X profile.clear_air; the two are complementary (that one caps the froxels in constant mode) and may need a trivial merge.A separate observation, not part of this change: on this 4 GB card both
mainand this branch show banded colours, characters without hair and green water in that cutscene, which thef4b48ad-lineage tree does not with the same settings. I will file it as an issue with what I can measure.The dump comparison, the numbers and the tree these come from: https://github.com/Dathinel/victory-4gb/pull/15 and https://github.com/Dathinel/victory-4gb/issues/2. No game files or captures attached.
🤖 Generated with Claude Code
@steven-seagull27 on GitHub · 2026-11-27 03:11 UTC · original
I checked the descriptor-ring limitation at
37b5a14busing two generated 4 × 4 RGBA16F textures and two command lists. On both an RTX 5080 and Windows’ built-in WARP, I kept the first list closed and available for submission while recording 4,095 more march bindings on the other list. Request 4,097 selected the first list’s exact CPU and GPU descriptor addresses. The control stopped before overwriting that descriptor.I put a fix directly on top of this PR. Each host texture lazily owns one immutable mip-zero march UAV. The recording holds that exact texture until reset, so two lists can be recorded or replayed in either order. The heap is allocated only for textures the march pass actually binds. One-commit patch
The fixed test reads back four 4 × 4 RGBA16F images, including replay of an earlier list after the other list was reset. RTX 5080 and built-in WARP each matched 256/256 components. The test prints the adapter name and readback count.
Set
VICTORY_D3D12_WARP=1for the WARP run. AI-assisted implementation and testing.@DoubleGhosty on GitHub · 2026-11-27 05:20 UTC · original
Applied all 4 commits to main — NaN/inf froxel guard, VICTORY_AMBIENT_MOST, VICTORY_AMBIENT_SETTLE and the ray-march clamp with its 4096 view ring. Thank you for the thorough measurements.
Pull request closed