NVIDIA (RTX 4070 SUPER): picture breaks up into black blocks and white haze when a clear sky is in view #1319
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#1319
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?
@KaV3R on GitHub · 2026-11-26 14:51 UTC · original
On the trustno1-coder/VIctory-NVIDIA build (a fork of avatarmanz/VIctory-7900XTX, which grew from this one); that repository has issues turned off, so I report it here. It may well apply to this tree on NVIDIA too.
On an RTX 4070 SUPER with trustno1-coder/VIctory-NVIDIA (
033be27f,scripts\play-nvidia.ps1speed set, Series S, 540p), the picture falls apart outdoors whenever a clear, sunny sky is in view. With an overcast sky, or with the camera turned toward the ground, it looks fine.What it looks like (driving on a country road at ~9 fps, about 5,900 draws a frame):
What I checked:
scripts/rt_off_hashes.txt(rtdirectionalshadows:CS_RTShadowTrace32*,CS_RTDistantShadow*,shadowmask:CS_GenerateShadowMasks_RaytracedCheckerboard,CS_SetRTShadowsIndirectArgs) is ever bound in a 70-minute run. The only skipped shaders the title asks for areCS_RaytracingResolveones. So the blocks come from a pass that still runs.VICTORY_BVH_MISSthe outdoor picture went fully white there).VICTORY_AMBIENT_AIR=0.8next, and will capture a frame with F9 +VICTORY_DUMP_TARGETS=1to find the pass that writes the blocks.Config:
--profile diag --features diagnostics.play-nvidia.ps1 -NoSmoothMotionplusVICTORY_NO_WATCHDOG=1, everything else as the script sets it:VICTORY_RENDER_SCALE=0.5,VICTORY_OWN_UPSCALER=1,--console series-s;VICTORY_BVH_MISS=1,VICTORY_SKIP_PIPELINES=rt_off_hashes.txt;VICTORY_DYNAMIC_SLOTS=524288,VICTORY_CARD_BUFFERS_MIN_MB=1,VICTORY_CARD_BUFFERS_MB=1536;VICTORY_AMBIENT=0.8,VICTORY_AMBIENT_AIR=1.5,VICTORY_AMBIENT_MOST=2,VICTORY_NAN_SCRUB=1;VICTORY_PIPELINE_WAIT_MS=10000,VICTORY_COMPOSE=1;VICTORY_RELAY=2,VICTORY_CARD_STEPS=2,VICTORY_TEXTURE_NO_WAIT=1,VICTORY_INDIRECT_WINDOW=1, ...).Screenshot: (to be attached)
AI-assisted (Claude Code, Claude Opus 5.5): the log analysis and this text. Log facts and numbers only, nothing from the game attached.
@KaV3R on GitHub · 2026-11-26 14:58 UTC · original
Update after three more runs on the same build, with trustno1's 2026-11-26 merge (jeremygold02's two D3D12 fixes) added:
It happens on both profiles, so it's not the Series S upscaler.
VICTORY_AMBIENT_AIR=0.8: same white ghosting at the horizon. 15.7 fps median, so 720p costs almost nothing over 540p here.F9 frame dumps (
VICTORY_DUMP_TARGETS=1):CS_BakeACESWithGamutCompressLUT). The lighting and temporal passes aren't in it yet, so I can't name the guilty program.7496a4ce,VICTORY_SHOT_LISTS), to find the temporal resolve and the pass behind the blocky sun shadow.AI-assisted (Claude Code, Claude Opus 5.5): the analysis and this text. No game images attached; descriptions only.
@Proudnoob4 on GitHub · 2026-11-26 14:59 UTC · original
Quick factual pointer since you're on
trustno1-coder/VIctory-NVIDIA033be27fwith an RTX 4070 SUPER:033be27fdoes not include the Wave32 cascade-shadow fix (avatarmanz/VIctory-7900XTX#82/fxceless#1002), the divergent Wave32 barrier guard (avatarmanz#109), or thecool_foxWave32 transmission/shader recovery fixes — all of which affect NVIDIA Wave32 shadow/sky/lighting passes.VICTORY_AMBIENT_AIR=1.5can heavily wash out bright outdoor skies/horizons when combined withVICTORY_BVH_MISS=1, so testing lowerVICTORY_AMBIENT_AIR(as you're planning) is a solid check.We just pushed our audited RTX 4080 branch (
nvidia-hybrid-v2atf3c8a1f, built on top of033be27fwithav#82Wave32 cascade shadows,av#109,cool_foxWave32 fixes,fx#907,klbf-lab#57, andVICTORY_SKIP_WC_MIN_KB=1024) to:https://github.com/Proudnoob4/VIctory-NVIDIA/tree/nvidia-hybrid-v2
Full transparency: our 10-minute visual checks so far have been in the prologue cell (outdoor driving is unmeasured on our side), so I can't claim it solves the outdoor sky blocks yet — but if you test that branch or capture the culprit pass with
VICTORY_DUMP_TARGETS=1, we'd be glad to help dig into the shader hash with you!@CQ187901 on GitHub · 2026-11-26 17:17 UTC · original
Solved on RTX 4070 12 GB (driver 621.40), same Series S 1.0.2.1 build — it is two separate bugs, not one
Without the full config list, our baseline was the
play-nvidia.ps1speed set plus the #1268 variable group (PIPELINE_WAIT_MS=150,PIPELINE_WORKERS=6,PIPELINE_LOWEST=1,TEXTURE_STAGE_MS=50,TEXTURE_STAGE_MB=384,LAND_SKIP=1,FETCH_CHECK=1,INDIRECT_REST=0,RELAY=1,CARD_STEPS=0).1) The trails come from the temporal upsample at render scale 0.5, not from the shadow passes.
Raising the detail from 0.5 to 0.667 (
-Resolution 720) removed them completely on our machine. At 8–10 fps the history buffer is never rejected, and a half-resolution history is upsampled 2×, so the stale copy survives the blend. On our frames the car and ground at 0.5 show ~4 stacked copies along the motion direction; at 0.667 there is a single clean edge (crop-verified, pixel-level). This also fits your dump: background motion vectors are zero and the character ones are not. Background is reprojected from depth and the character from vectors, and both are blended against stale half-scale history.2) The white haze comes from
VICTORY_AMBIENT_AIR=1.5combined withVICTORY_BVH_MISS=1. Dropping it to0.8fixes it. Measured with ffmpegsignalstatson a fixed 400×120 sky band from the same camera, before and after: average luma 216.6 → 90.5 (and 71.2 on a later frame). That is a washed-out white sky becoming a normal dusk gradient, so this is not a side effect of the scale change.3) The black blocks and grainy shadow edges did not reproduce on
nvidia-hybrid-v2(f3c8a1f). We moved to Proudnoob4's branch precisely forav#82/av#109/cool_fox/fx#907/klbf#57. Four F9 frames at 720p after the swap show trees, poles, railings and building silhouettes against the sky as single-layer clean edges, and none of the blocky sun shadow. Honest caveat: we did not bisect which of those commits fixed it; we only know the combination is clean.Cost of 0.667, for planning: p50 frame time at 6k–9k draws went from 102.5 ms (0.5) to 126.5 ms (0.667, n=17), about 23% worse. That figure is mostly the extra pixels (0.667² = 1.78× the pixel count), not heavier code. Your "720p costs almost nothing" number and ours disagree because the scenes and draw counts differ; expect a real hit in heavy areas.
Startup pitfall if you test
nvidia-hybrid-v2: itsapps/victory/src/agility.rsdeclaresD3D12SDKVersion=620andD3D12SDKPath=".\D3D12\", so withouttarget\diag\D3D12\D3D12Core.dll(fromcargo xtask agility) the process dies withno host D3D12 device … error=0x887E0003and then fails inD3D12SerializeVersionedRootSignature. Neither is a branch or driver problem. Gatemod agility;behind#[cfg(feature = "agility-sdk")]and gate the two/EXPORT:D3D12SDKVersion,DATA/D3D12SDKPath,DATAargs inapps/victory/build.rsonVICTORY_AGILITY_SDK; it launches normally after that, on the system-bundled Agility runtime.Don't chase
VICTORY_SKIP_WC_BACK/SKIP_WC_COMPAREfrom #1268 on this lineage. On trees derived from033be27f,SKIP_WC_BACKlogs its ON warning but skips 0 pieces, because thedeclaredwrite-back pipeline it keys off does not exist there. Our A/B: p50 130.6 ms with it on versus 102.5 ms without.SKIP_WC_COMPAREis flagged UNSAFE upstream and reportedly cost one tester their device, so we left it off.Still open on our side, and it matches your later-frame dump: at dusk, low over the horizon, a hard-edged pure-white quad (~40×40 px at half size) plus a correctly rendered round halo sprite next to it. It moves with the world, appears only from certain positions, and is a glow billboard whose square texture isn't sampled. G-buffer is clean there too, so it is a late pass. Next step is your plan:
VICTORY_DUMP_TARGETS=1+ F9 on the frame where it shows.@oz-stanislav-zhukov on GitHub · 2026-11-26 17:29 UTC · original
Independent confirmation, plus one case that is still open. RTX 5060 Ti 16 GB, Windows 10 22H2 (Agility SDK added:
033be27fdoesn't exportD3D12SDKVersion, so on Windows 10 it crashes at boot without it). Basetrustno1-coder/VIctory-NVIDIA033be27f+avatarmanz#82+avatarmanz#109.play-nvidia.ps1 -Quality, Series S.-Resolution 720instead of 540: the smeared trails behind moving objects are gone. On the boat it is 12 fps at 3.7k draws, against 13 at 540p, so it costs little in this scene.VICTORY_AMBIENT_AIR=0.8: the white sky haze is gone, same as above.Still open: after the binoculars cutscene (chapter 1, the boat) the picture falls apart again. The binocular view itself is clean. After it, the sky goes black and trees and the boat turn white and grainy, and it spreads over the following frames. That looks like a NaN getting into the temporal history.
VICTORY_NAN_SCRUB=1exists in this tree; I couldn't get a clean run with it yet.A warning for anyone stacking more PRs: on top of the above I added
uiliannn/VItoriaBr#107(levels on demand by default) and two shader commits fromDexNom/VIctory#61(LDS add/sub of a negated value as a compare-exchange loop; wave-wide form only as a last resort). With them the water turned turquoise, with dark slab-shaped blocks floating on it and around the piers. I haven't bisected which one does it yet.AI-assisted (Claude Code, Claude Opus 5.5); no game data.
@Proudnoob4 on GitHub · 2026-11-26 18:21 UTC · original
@CQ187901 thanks for the careful write-up. Two things from our side:
apps/victory/src/agility.rsonnvidia-hybrid-v2exportsD3D12SDKVersion=620/D3D12SDKPath=".\D3D12\", and its comment points at acargo xtask agilitythat does not exist in that tree; it also says the in-box runtime is used when the folder is missing, which your0x887E0003shows is wrong. Until it is fixed there: putD3D12Core.dllandd3d12SDKLayers.dllfrom theMicrosoft.Direct3D.D3D121.620.x NuGet package in aD3D12\folder besidevictory.exe(Windows 10 needs it for shader model 6.6; on Windows 11 your gating also works). The robust fix is choosing the runtime throughID3D12SDKConfiguration1with a fallback to the in-box one (Marvisak/VIctory#969); we will look at porting that.VICTORY_AMBIENT_AIR=1.5+VICTORY_BVH_MISS=1: our launcher sets exactly that pair, and the early prologue cutscenes in our recordings are washed out the same way (white-grey exterior shots before the cell). We are A/B-ing0.8next and will report what it does to those frames and to the cell.AI-assisted (Claude Code).
@oz-stanislav-zhukov on GitHub · 2026-11-26 21:30 UTC · original
@Proudnoob4 found why
nvidia-hybrid-v2has no trees on NVIDIA (bare islands, flat green blobs for distant trees). It's Batch 7, and the fix is small.Symptom (RTX 5060 Ti 16 GB, driver current, Win10, Series S 1.0.2.1,
f3c8a1f3,play-nvidia.ps1 -Quality -Resolution 720): 16 compute pipelines gethost pipeline refused (0x80070057). Among them are the title's tree culling programs,55679a0547649d0b(tree) and89d08e561897d4e5(tree_imposter), so no trees are drawn. The D3D12 debug layer says nothing about them, so it's the driver's compiler rejecting the DXIL.Bisect. I tested the 16 pipelines offline, without the game, using
victory warm --these <indices>. The indices came from aVICTORY_PIPELINE_BOOK=1run.00351b7e(milestone A)6fc2c52a(Batch 6)342111de(Batch 7)5d6bdc9e(Batch 8),f3c8a1f3f3c8a1f3+VICTORY_LDS_FLAGS=0f3c8a1f3+VICTORY_SHADER_OPT=0(all DXIL passes off)f3c8a1f3+VICTORY_LDS_REGION_RACE=1Cause. Batch 7 replaced
lower.rslds_meetingswith the klbf#50 analysis (lds::meetings). The new analysis is stricter. It returnsNonefor regions withds_append/ds_consume(classified Unknown), ans_barrier, a provable shared write-only WAW, or a cycle. The culling programs hit this, so they keep 64-lane waves on a 32-lane host, and the driver refuses them. The old check accepted those regions, and trees rendered correctly with it, on the trustno1 base and on Batch 6.Fix. Where the new analysis refuses, ask the old check:
2ce00838. It restores the pre-Batch-7lds_meetingsaslds_meetings_legacyand calls it via.or_else(...). It's on by default;VICTORY_LDS_LEGACY=0turns it off. It's added to the shader-cache key list, so existing caches retranslate. Results: 6 / 10 again, identical to Batch 6, with trees made and noLDS_REGION_RACE. Confirmed in game: trees are back, with 10 refusals instead of 16.Tooling in case it's useful (same branch
fork-hybrid):play-nvidia.ps1 -Warmrunsvictory warm --usedwith the exact run settings, so the cache keys match.-WarmArgspasses options through, and-VictoryExepoints the launcher at another build for bisecting.victory warmnow prints progress every 50 with ETA, and writes refused pipelines with their indices towarm-refused.txt.Still open on our side, unrelated to this: black rectangles on one dock wall (warm cache, so not compile stutter), and a frosty white sheen on glossy surfaces only (varnished floor in window light, phone glass). The phone screen also shows no UI; it was the same on the trustno1 base.
AI-assisted (Claude Code, Claude Opus 5.5); no game data.
@Dathinel on GitHub · 2026-11-27 01:02 UTC · original
A finding that bears on the haze part of this issue, from a 32-lane NVIDIA card with the ambient stand-in on (RTX 3050 Laptop 4 GB, Series S 1.0.2.1, cool_fox
f4b48adlineage, ray-tracing builder off,VICTORY_AMBIENT=0.8 VICTORY_AMBIENT_AIR=1.5). It is about interiors; I have not measured the clear-sky case you describe.The haze did not travel through the froxel volume that
VICTORY_AMBIENT_AIRcaps. Target dumps of a hazy and a clean run of the same interior shot, compared target by target:scattering_transmittance_system:CS_Gather_Classified_*(180x102 RGBA16F): same hue, about three times the amplitude (mean luminance 0.37 against 0.14), thenCS_ReconstructRaymarchClassified*→ diffusion →CS_ApplyCombinedDeferred. Scene colour on the wall equalled that image texel for texel;So lowering
VICTORY_AMBIENT_AIRcould not remove it here (0.3 gave one clean and one hazy run), which may be why reports about that value disagree between machines.Why identical runs came out hazy or clean (about 7 in 10 hazy). The stand-in's slow mean of the room follows 4 % a frame. At 4 to 6 fps, after a cut from a bright shot it was about 100 times the room's present light for seconds (0.61 against 0.0063 in one dumped frame), so any cap built on it cut nothing until it caught up.
What removed it here, three runs of three: the mean settling by the clock with a jump at cuts (
VICTORY_AMBIENT_SETTLE=250,3, avatarmanz'sb4ba4bb/9576c45, hand-ported), plus a new role that holds the two ray-marched in-scatter images to a multiple of that mean before each reconstruct (VICTORY_AMBIENT_MARCH=3). With the multiple at 1.0 daylight haze was flattened (82 % of texels on the cap), so 3 is what I use.Code, the dump comparison and what is still wrong (white captures while the first scene loads; interiors clean but dark): https://github.com/Dathinel/victory-4gb/pull/15 and https://github.com/Dathinel/victory-4gb/issues/2. It is on a cool_fox-lineage tree; the role hooks
CS_ReconstructRaymarchClassifiedFull/NoAlphaby name and reads the in-scatter at table slots that I only checked on the Series S profile.No game files, logs of the title or images attached. Measured on the machine above; written with AI assistance (Claude Code).