ambient,play: scrub NaN/Inf probes in raise and reserve VRAM headroom for multi-FG #521
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/trustno1-coder--VIctory-NVIDIA!521
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-521"
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?
@Wiktorxd-1 on GitHub · 2026-11-27 23:58 UTC · original
Wiktorxd-1:fix/ambient-nan-and-vram-headroom→main· +7 −3 · 2 files · 1 commits · openWhat this fixes
ambient::raise(crates/victory-gpu/src/ambient.rs):826ba15already drops magenta/violet probe garbage inwas = unpack(light[p]), butNaN,Inf, or negative values inwasorfoundbypass both inequalities (NaN < ...andNaN > ...arefalsein HLSL) and get written back tolight[p], where bloom/blur spreads them into bright/dark rectangular blocks across characters and surfaces.scripts/play-foxhound.ps1): On a 12 GB RTX 5070 withFrameGenX > 2(up to6x),VICTORY_TEXTURE_ROOM_PERCENT=80+ render targets + Streamline buffers exceeded the10.8 GBbudget, spilling5–6 GBinto shared system RAM while11,299textures waited in the queue at16 ms/pass.The commits
NaN,Inf, and negative values inambient::raise(if (any(isnan(...)) || any(isinf(...)) || any(... < 0.0)) ... = 0.0;) on bothfoundandwas.74%texture room forFrameGenX > 2and raiseVICTORY_TEXTURE_STAGE_MSto32inplay-foxhound.ps1.Tests
cargo test --locked -p victory-gpu --lib ambient(passed, 0 failed)cargo build --release --locked -p victory(succeeded)target\release\victory.exeviascripts\play-nvidia.ps1(35s,ALIVE_AFTER_35S=True,warns=0,crashes.log=False).Setup
NVIDIA GeForce RTX 5070, driver
621.14.0, Windows 11 (10.0.26300). Series S profile, DLSS Performance, Frame Generation 6x. My own dump:<game dir>. No game files are attached or quoted.This change and its testing were done with an AI assistant (Antigravity), and I checked the results on my machine.
@Machad3x on GitHub · 2026-11-28 01:27 UTC · original
Tested in a batch on an RTX 3080 Ti + Ryzen 7 5700X, 1440p, DLSS Quality, title ray tracing on (VICTORY_BVH_BUILDER=1), 240 s run into the prison cell scene. Batch: #516, #501, #498, #497, #532, #521.
Result: alive for the whole run, 61.5-63.9 ms/frame, 1 draw/frame dropped (not from this batch), no shader or pipeline refused.
Bug found: with this PR the right side of the cell went darker. When
raisesaw a NaN/Inf in any one channel of the probe result, it zeroed the whole result. The fix scrubs each channel on its own:(the same for
was), with a test that a single bad channel leaves the other channels alone. After the fix the picture matched the run without the PR, and frame time was unchanged. Commit: Machad3x/VIctory-nvidia@cd1731adView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.