feat(gpu,loader): add VICTORY_AMBIENT_ALPHA, sky fixes, and RT-off nort GI preset #394
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/394"
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?
Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-03T13:21:08Z.
Summary
Ports two clean-room GPL-3.0 visual-fidelity and RT-off performance improvements from upstream
lobomfz/VIctory-xmem(PR #186) andReTerryDavis/ReVIctory(commit40b5f9c):Indoor Alpha / Particle Volume Ambient Bound + Sky / Tree Fixes (
crates/victory-gpu/src/ambient.rs,crates/victory-gpu/src/draw.rs):Role::Alpha(ALPHAat table1, dword24, 32x16x64R11G11B10_FLOATvolume) forCS_SpatialFilterAlphaunderVICTORY_AMBIENT_ALPHA(default1,0/offdisables), covering both direct and indirect compute dispatches (attributed tolobomfz/VIctory-xmemPR #186, GPL-3.0).bound_alphacompute shader pass withReTerryDavis/ReVIctory40b5f9c(GPL-3.0) fixes:gs_alpha_sky) and local (local_skyover64x36placed depth cells) sky fractions so columns seeing open sky behind foliage are not clamped into32x16blocks.energy(c)clamping plus luminance-preserving room-hue tinting (target_luma = min(top, dot(clamped, LUMA))) when clamping sky-miss froxels indoors.>900 msky pixels inraise()to avoid unnecessary neighbor depth/gather/pack work on sky pixels. (Note:sky_local/sky_sharefromReVIctorybelong to its separateskiesreflection pipeline not used in MiniVI; MiniVI'sreflect_lightalready returns early atc.z >= 999.0.)RT-Off ScreenProbe GI / Shadow Subpass Cut (
VICTORY_RT_PRESET,crates/victory-loader/src/rt_preset.rs,apps/victory/src/run.rs):VICTORY_RT_PRESET(balanced,performance,nort) fromReTerryDavis/ReVIctory40b5f9c(GPL-3.0) with clean-room verification (build hashb99f876b74d4a77f, 256-byte BLAKE3 digest10cdf268..., and stock field invariants checked beforeVirtualProtectwrite at+0x6b4d860; zero binary bytes embedded in source).Preset::NoRtwhen ray tracing is off (VICTORY_BVH_BUILDERandVICTORY_HW_RToff), withVICTORY_RT_PRESET=off(0/stock) as kill switch:+0x08:1.0 -> 0.125), max tile layers (+0x04:4 -> 1), GI budget (+0x40:24 -> 4), far-trace distances (+0xdc..+0xe4:50.0 -> 0.0), and GI cache tier (+0xf8:5 -> 3).+0xbf/+0xc0:1 -> 0).+0x20/+0x24/+0x28 = 1) and Opaque/Water/Alpha reflection flags (+0xbc/+0xbd/+0xbe = 1) to avoid water trailing and 50% screen seams.Automated Verification
cargo +1.98.1-x86_64-pc-windows-gnu xtask policy(asset policy: 352 files ok)cargo +1.98.1-x86_64-pc-windows-gnu test -p xtask --locked(8 passed; 0 failed)cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --locked -- -D warnings(passed)cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --all-features --locked -- -D warnings(passed)cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-loader --lib --locked(66 passed; 0 failed, including 3rt_preset::tests::*)cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib ambient --locked -- --test-threads=1(18 passed; 0 failed; 1 ignored, including HLSL/PSO compilation andbound_alphamath tests)cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib draw::record_hash_tests --locked(4 passed; 0 failed)cargo +1.98.1-x86_64-pc-windows-gnu test -p victory --locked(47 passed; 0 failed+2 passed; 0 failedincensus.rs)Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-03T13:33:29Z.
Triage (
1ce4e987, CIcheckPASS):xtask policypass, BLAKE3 + field invariant checks before patch, zero embedded bytes, clean=0/offkill-switches on bothVICTORY_AMBIENT_ALPHAand default-on RT-offVICTORY_RT_PRESET=nort).#282) + Gate 3 plain--releaseA/B (FPS delta,0crashes/DRED) +--features diagnosticsvisual PNG verification (indoor alpha volume, outdoor tree silhouettes, and SSR/water parity).