Late textures / flicker outdoors on RX 7900 XTX (main @ 85d5641) — measurements and A/B switches #122
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#122
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?
@remembering7896 on GitHub · 2026-11-26 05:05 UTC · original
Everything below is from
main @ 85d564167324056381327ff50f52da85048c84e3,cargo build --locked --profile diag -p victory --features diagnostics,scripts/play.ps1with its default switches unless stated otherwise.Environment
Symptom
Exactly the item in README "What is known to be wrong": trees, plants and far buildings flicker outdoors, and textures of what just came into view appear late while the title streams. Not fixed by
0a43566->b0cfe2b->85d5641; all three builds behave the same to the eye.Measurements (single-scene samples, world scene up)
Caveat that matters more than the numbers: the title keeps its saves in data_dir, so each run resumed further into the story than the one before. Draws/frame differ (5042 / 6357 / 8036 / 11522) and the runs are NOT a controlled A/B - they are four single-scene samples. C entered the heaviest scene of the four and stalled at world entry (3.1 fps, 32.6 GB private, machine down to 7 GB free).
Only one switch effect is unambiguous: VICTORY_TEXTURE_NO_WAIT=0 costs 380-780 ms per frame in waits for title memory:
C's copystat, for what it is worth:
The card had room and the "no room" gate never fired, so the queue is the staging budget against a scene the title is still mapping.
Evidence in the log that looks related to the pop
Counts over one run each (default / A / B):
Frame-line counters at one sample: "texture slots written so far: 3419747 placed", of which 693176 were "written with another of another dimension" and only 44805 "kept what they showed meanwhile (VICTORY_KEEP_SHOWN)" - i.e. the overwhelming majority of slot rewrites do not hold the previous picture.
A cross-fork datapoint
On the same machine, one session of myokex/victory-amd (2026-11-25 09:10) logged "textures picked by index: 201259 uploaded (12661 MB), 327 waiting, 17019 passed over unmapped" at 3.1 fps. A near-zero queue is reachable on this hardware; the 7900XTX fork sits at a five-digit queue.
Questions
cf9ba0840f) keeping textures in waiting longer than they should be?How these runs were made
Logs available on request (run-book-stdout.log, run-A-resident.log, run-B-stage.log, run-C-sweep.log).
github-bot referenced this issue2026-11-26 06:12:47 +00:00
@remembering7896 on GitHub · 2026-11-26 05:30 UTC · original
Follow-up: the STAGE_MB / STAGE_MS overrides can make every texture flicker
Trying to drain the queue faster, I ran
-More @{VICTORY_TEXTURE_STAGE_MB='768'; VICTORY_TEXTURE_STAGE_MS='700'}. Result was not a shorter backlog but the whole scene's textures replacing in place every frame, and at world entry the image is effectively frozen (0.3-1.4 fps, 32.6 GB private on a 32 GB machine).Three code paths explain it, and each looks worth guarding:
staging_budget_per_framereturns 384 MiB at a 24 GiB budget (draw.rs:4400-4430, unit testSome(24 * GIB) => 384 * MIB), soSTAGE_MB=768is already 2x the default. Withcatchup(on_time >= 1024) multiplying by 3, one frame asks for 2304 MB - 6x the base - and the pass uploads a large batch in one frame.draw.rs:2244-2254). At 384 MB a frame this trickles; at 2.3 GB a frame hundreds of half-mapped textures are uploaded and shown, then re-uploaded as their pages arrive - which is exactly "all textures flicker".STAGE_MSis not a background budget: the pass "runs on a thread that records the frame, and making and staging 192 MB of textures took 1.6-2.2 s of each of the world's first twenty frames" (draw.rs:2213-2216). With 700 ms, every frame that has a backlog spends >= 700 ms recording, so sub-2 fps follows by construction.Suggested guards, whichever you prefer:
min(user_mb, staging_budget_per_frame(budget))and cap the span at the 250 ms default;catchup * 3when the bytes were set by hand;--profile diag.Sample from that run:
textures picked by index: 108658 uploaded (7609 MB), 10757 waiting, 5092 passed over unmapped, 8036 draws/frame, 15.6 fps / 63.9 ms once the world was up. Log kept (run-B-stage.log), excerpts available on request.Everything else in the report above stands; with defaults these switches are unset and nothing here changes the late-texture behaviour.
@remembering7896 on GitHub · 2026-11-26 07:14 UTC · original
VICTORY_POP_WATCHonf249fe0: ~2.3 blips a frame, and the dominant state is "made null for another texture"Same machine and build as above (
main @ f249fe0, diag profile). All 25,790 shaders pre-translated (victory.exe shaders: 143 s; the 195 left are the geometry shaders, as you said), pipelines rebuilt for this run.Window
VICTORY_POP_WATCH=70-240, 170 s in the world, walking around trees and far buildings - what the eye calls the flicker:[made null for another texture, kept, neutral, stale] [585, 74, 75, 53]: several hundred slot rewrites per frame are of the "made null for another texture" kind, only tens are "kept".Then I tried to turn those nulls into held pictures:
VICTORY_KEEP_SHOWN=1(in a diagnostics build that maps to level 2,Kin::Other => keep >= 2, so a slot written with a different texture keeps what it showed): 603 frames, 1948 blips -> 3.23 per frame. Worse, not better - the stale picture is a blip too - and fps in that window was 6.6.Question:
VICTORY_SHOW_NEW_LATERcovers textures that are new, but a slot rewritten with another texture (kin = Other/None,keptonly atkeep >= 2) still goes null for a frame. Is there a path where such a slot keeps its old view until the new texture's upload has run (the analogue ofshow_new_laterfor rewrites), and is that where the remaining blips come from by design?Two negative results that may save you time:
VICTORY_TEXTURE_STAGE_MB=768withSTAGE_MS=700: the whole scene flickers and world entry freezes (reported earlier).victory-amd'sVICTORY_TEXTURE_GATE_S(60 s allowance, 3x bytes and span while the queue is long), patched into this tree: the queue only came down to ~6.5k (nowhere near that fork's 327) and fps was 7.4-8.2 while catching up, so I reverted it. The backlog is not what our staging budget limits.Logs (run-G-popwatch.log, run-H-keep.log) on request.
@jtrudeau1530 on GitHub · 2026-11-26 07:39 UTC · original
A data point on where the late textures come from, from a Linux run (Wine 11.18 stock wineserver, RADV, RX 7900 XT,
0a43566plus local patches; same streaming code). TL;DR: the reads themselves are fast. Texture-pack requests wait for the title's ownSubmit, and that wait grows with frame time.Per-request DirectStorage log (
VICTORY_DSTORAGE_LOG, one 120 s run into the opening cutscene, 138,636 requests). One note for Linux users: under bwrap/Proton sandboxes the path must be writable from the process's cwd. An absoluteZ:/...path silently wrote nothing for me; a relativedstorage.tsvworked..rpf(levels, packs, anim, bvh…), queues 0-16, options0x1.ttpftexture packs, queue 2, options0x200001.ttpftexture packs, queue 15, options0x200001By file:
octa_imposters.ttpfp50 290 / p90 682 / max 1,767 ms enqueue→done;ttdb_props_*p50 ~170 ms;peds_loose319 ms;levels.rpfp50 7 ms over 49,893 requests / 3.5 GB.So the runtime's queue isn't what holds these back. The title enqueues texture-pack reads and submits them later, apparently on its own cadence. At 1-4 fps in the first world frames, that's hundreds of ms per batch. Draining our upload queue faster (STAGE_MB/STAGE_MS: here too the backlog stayed 15-20k, as in the follow-up above) can't make data arrive that the title hasn't submitted yet. Frame rate in the first seconds is the lever.
A visible symptom of it in the opening yard wide shot: rooftop AC units, vents, a dish and light rigs float in the sky, with the distant buildings under them and some terrain pieces missing. What I checked:
VICTORY_DUMP_TARGETSat world+2…6). Reversed-Z, and the 1024x512 R32F HiZ (built from the main depth by42683eebec081520/2dc602192abf6288) reads "far" there, so the GPU occlusion culling (fc5e66f8…/0452fc2d…→ mesh args) isn't hiding them.VICTORY_DSTORAGE_TRACE=1) shows 0 page-list or overlap faults.The remaining explanation consistent with all of that: distant buildings are drawn as octahedral imposters whose index-picked textures are still null (5-digit "waiting" at world entry), so alpha-tested cards discard. Close shots of the same buildings, drawn from real meshes, are fine. I haven't proven the imposter link at the draw level yet; if someone knows the imposter pixel-shader hash, a
VICTORY_CAPTURE_FRAMEStrace of its slots in that shot would settle it.(AI-assisted analysis with Claude Code on my machine; logs and the per-request TSV available.)
@towade on GitHub · 2026-11-26 12:11 UTC · original
VICTORY_POP_WATCHon an RX 9070 XT (RDNA 4), 64 GB: three runs, one switch set changed each; the upload queue and the blips do not move togetherHardware: Radeon RX 9070 XT 16 GB, driver 32.0.32029.2010 · Core i7-14700K · 64 GB · Windows 11 26300. Build:
9576c45+ #55 (the RDNA 4 compiler fix; without it this card does not get into the world),diag, all 25,790 shaders translated ahead.Each run:
scripts\play.ps1,VICTORY_POP_WATCH=180-300(120 s), andVICTORY_AB=10,VICTORY_UPLOAD_AHEAD, soUPLOAD_AHEADflips every 10 s within the same scene. About the same place each time, in a boat on open water, turning the boat and the camera slowly by hand (neither the place nor the turns were exactly the same). Water moves, so the lone-block counts are high in every run; the blips (one frame differing from two neighbours that agree) are the number to compare.UPLOAD_AHEADVICTORY_THIN=0VICTORY_THIN=0-Safe-SafeWhat it does and does not show:
VICTORY_THIN=1the queue of textures waiting stays four times longer here (7,466 against 1,867 and 2,231), but-Safe, with the short queue, has the most blips of the three.UPLOAD_AHEAD: within each run, on and off are within the noise of each other (more blips with it on in the first run, the same in the other two). Frame times per phase are the same within 1–2 ms.This is one run per row and the title's save moves on between runs, so the differences between runs are a hint, not a measurement. If a land scene helps, with the same window and switches, I can run it.
AI-assisted (Claude Code).
@Arvi23 on GitHub · 2026-11-26 13:41 UTC · original
The outdoor tree flicker comes from renderer port 2 (
VICTORY_PORT_DESCRIPTORS=1) here: off, the trees hold; on, they flicker. It misses view records the title writes with a store formdescriptor_sitesdoes not patch.Machine: RX 9070 XT 16 GB (RDNA 4), driver 32.0.32029.2010, Windows 10 LTSC 21H2 (Agility SDK 620 loaded), 32 GB. Build:
mainat0dec5dc/c9c932c+ local Windows 10 and RDNA 4 patches (Agility exports, compiler-crash guard);diag,scripts\play.ps1settings, Series X, all 25,790 shaders translated ahead. Same place each run: on the boat, trees against the sky.What the flicker is. With
VICTORY_POP_WATCH+VICTORY_POP_ALL=1, the toggling pixels are whole distant trees (palms and big trees against the sky, trunk included), not edges or textures: one tall tree is drawn in 1 of 5 consecutive frames and absent from the other 4. A per-frame census of draws by title pipeline (counted where draws are issued) shows the title asks for the same draws in frames with and without the trees, so they vanish on the card.What it is not (each tested on its own run, flicker unchanged):
VICTORY_RELAY=0;VICTORY_INDIRECT_BATCH=0+VICTORY_INDIRECT_WINDOW=0;VICTORY_SKIP_PIPELINESof the two meshlet culls (fc5e66f8f873d3bb,0452fc2d2e2fc4c3);VICTORY_OUTPUT=2560x1440+VICTORY_RENDER_SCALE=1.0(no upscaling); occlusion queries (resolve_queriesanswers "visible").Bisect.
VICTORY_PORT_CONSTANTS=1VICTORY_PORT_CONSTANTS=1 VICTORY_PORT_DESCRIPTORS=1Why. Port 2's own line in that run: about 136 view records a frame that no mark told of, found by the fallback on its 16 pages (so the real number is higher), 113,631 since the start. Of the writers it attributes them to (the last fault on each 64 KiB block, so only a hint), most are the frame allocator's bookkeeping in the same blocks (
+0x18849c,+0x2474afc,+0x4e9b4e2: 8-byte list stores). One is not: around+0x4d9f25f, in the table filler near+0x4d9efd0, the title copies four records at a time from[r12+…]with stores that have a displacement:descriptor_sites::lea_oftakes onlyvmovups [base+index](no displacement), so these four are never patched and their slots keep the view of before until the fallback reaches their page.Smaller thing we also saw: the
memcpy/memmovewrap marks a slot only if the record's first word lies in the copy ((lo - start).div_ceil(32)), so a copy into the middle of a record is not marked. Marking every slot the copy touches did not change the flicker here, so the displaced stores look like the main gap.Until port 2 covers those stores (a stub for
[base+disp8], or the fallback taking every page the watch says was written while the port is on),VICTORY_PORT_DESCRIPTORS=1makes distant trees flicker on this machine; port 1 alone does not.@z395977743-svg on GitHub · 2026-11-26 14:06 UTC · original
I reproduced the unmarked descriptor records on an RX 7900 XTX (RDNA 3) in the prison room at the window after skipping the intro. This is an indoor comparison for the outdoor report above. I haven't tied an individual record to a disappearing object.
Windows 10 build 19045, driver 32.0.32029.2010, Ryzen 5 5600X, 32 GB RAM. Series X, 1920×1080 output, frame generation off. Diagnostic build from
c9c932cwith the mouse changes from #153 and local Agility SDK 1.620.2 support. Normalscripts/play.ps1settings withPORT_CONSTANTS,PORT_DESCRIPTORS,PORT_GUARD,PORT_JOURNAL,RESIDENCYandPIPELINE_BOOKenabled. No texture staging overrides. Copied save, warmed pipelines. The log confirmed 6/6 descriptor store sites patched.Two host samples from the same stationary room, about 10 seconds apart:
Individual warnings frequently list
title+0x18849cas the last writer to the page. Both samples reported 342 draws without a host pipeline and zero pipelines being made at sample time. A background Rust build overlapped this run, so the frame times are context only. The observation is that even with 6/6 sites patched and local VRAM headroom, the fallback still found hundreds of unmarked records per frame on this card.@Arvi23 on GitHub · 2026-11-26 16:31 UTC · original
Follow-up: the store form
descriptor_sitesmissed is the copy of a whole table of four records. Patched as a seventh site, the records port 2 misses drop from ~136 to ~6 a frame here.Same machine as my comment above (RX 9070 XT, Windows 10 LTSC,
c9c932c+ local patches), same place on the water, renderer ports 1, 2, 6 and 7.Where. The writer I named,
+0x4d9f25f, is in a function at+0x4d9f200. It takes a table ofr14bytes from the frame allocator (call +0x4d9f3e0). For a 128-byte table (cmp r14, 80h) it copies four records with four loads from[r12]and four stores that have a displacement:Any other size goes to
call +0x5f40560, which isjmp [IAT memcpy]and is already wrapped byport_descriptors::import. So only the 128-byte path was uncovered.Patch. The 19 bytes of the four stores become one jump to a stub. The stub does the four stores unchanged, then
lea rax, [rbx+60h]and the usual bounds check against the heap, and marks the four slots (mov dword [slots+last-3], 01010101h) plus the chunks of the first and last slot. A table that lies below the heap or across its start is not marked (cmp rax, 60h ; jb). The flags are dead there (thexorsets them), and the window is byte-checked like the other six. The jump back lands on+0x4d9f272, which is unchanged. There's a test that runs the hooked window: records stored, four slots and both chunks marked across a chunk boundary, nothing marked outside the heap.Port 2's own counters, per frame, before → after:
VICTORY_ASYNC_SUBMITline)The rest of the misses are attributed mostly to
+0x18849cand+0x4e9b4e2, the allocator's own bookkeeping in the same 64 KiB blocks, plus a few non-title writers, so they're probably not view records written behind port 2's back. The opening cutscene now reaches ~21 fps here at times. This should also cover z395977743's indoor numbers above (hundreds of unmarked records with 6/6 sites).Diff (on
c9c932c)@Jrjy3 on GitHub · 2026-11-26 19:43 UTC · original · edited 2026-11-26 19:47 UTC
Edited (correction): with
-RayTracingthe near trees are steady, but distant trees still pop in and out of existence (whole trees, not their lighting). So ray tracing does not fix the flicker. It changes which trees flicker, and that points at distance (level of detail or culling) rather than light. The original text below said "steady" and was wrong about the distant ones.Renderer port 2 is not the cause of the tree flicker here, and ray tracing only moves it further away.
Radeon AI PRO R9700 (RDNA 4), driver 32.0.32015.2008, Windows 11 26300. Release build of main
c9c932c+ #55 (with its faces fix) + Belobug5d6bd84.play.ps1settings with renderer ports 1, 5, 6 and 7,VICTORY_OUTPUT=2560x1440,VICTORY_CARD_STEPS=1. The same spot on the water, trees against the sky, judged by eye, one session each:VICTORY_PORT_DESCRIPTORS=0)5d6bd84(textures uploaded in the submission prelude)-RayTracingSo on this machine the missed store sites from the comments above are not what makes the trees flicker. Arvi23's fix may well be right for the RX 9070 XT, and the two may be separate faults with the same look.
What
-RayTracingchanges is that the structure builder runs (pipeline::builder_runs). The pop watch above found whole trees present in 1 frame of 5, and with the builder on only the far ones still do. So my guess is that the title's level-of-detail or culling of vegetation is what goes wrong at a distance, and that the builder's passes happen to feed the near range. That is a guess, not traced. AVICTORY_POP_WATCHrun at the same spot, with and withoutVICTORY_BVH_BUILDER=1, would show whether the draws that come and go are the far LODs.By the way, port 2 off was also faster here (43.5 against 47.0 ms at the same spot and draw count) and hitched less.
AI-assisted (Claude Code).
@Arvi23 on GitHub · 2026-11-26 19:55 UTC · original
Thanks, that's a better lead than mine. Agreed, the missed store sites and the flicker look like separate faults. The seventh site took the missed records from ~136 to ~6 a frame here, but the trees still flicker with it.
What this RX 9070 XT showed, all at the same spot on the water, ports 1 and 2 only (no 5, 6 or 7): with port 1 alone, only the farthest trees flickered, and adding port 2 (six or seven sites) brought the flicker back. So here port 2 does make it worse, unlike on your card, which fits a timing fault more than a single missed write. Ports 6 and 7, flipped live on top, made it worse at times (6 more than 7).
Our log also shows the builder's passes dropped every frame without
-RayTracing("a stage of the ray-tracing structure builder, which is off"), which fits your guess that the near range depends on them. I'll try the run you describe:VICTORY_POP_WATCHat the same spot with and withoutVICTORY_BVH_BUILDER=1, to see whether the draws that come and go are the far LODs.@Arvi23 on GitHub · 2026-11-26 21:30 UTC · original
Follow-up on the
-RayTracinglead: on this card it doesn't steady the trees.RX 9070 XT, Windows 10 LTSC,
c9c932cplus local patches (port 2 with the seventh site, Belobug5d6bd84, card buffers from 64 KiB), diag build, Series X, 4K output (no FSR), ports 1 and 2. Same spot on the water.With
-RayTracingthe structure builder runs (the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53, and no more "which is off" drops). Lighting, eyes and glasses look right. But the trees still flicker, near ones included. So here the near range doesn't depend on the builder's passes, unlike on your R9700. Cost: busy frames went from 49 to 78 ms (median). That was the first run with cold ray-tracing pipelines, so it reads a bit high.The run with the builder has
VICTORY_POP_WATCHlogged. I still owe the same spot without it for the comparison.@Arvi23 on GitHub · 2026-11-26 21:37 UTC · original
The pop-watch comparison I owed. Same build and settings as above (RX 9070 XT, 4K output, no FSR, ports 1 and 2),
VICTORY_POP_WATCH=150-400, on the water from 2:30 on, the builder on and off:-RayTracing)So with the builder running the picture blinks no less here, if anything more. It's not a clean A/B: the stretches of play differ (2:30–5:28 against 2:30–4:28, at different frame rates), and ray-traced lighting changes more from frame to frame anyway. These counts also cover every blinking block, not only trees. Together with the eye test, though, the near trees on this card don't seem to depend on the builder's passes. To pin the blips on trees I'd need
VICTORY_POP_ALLwith saved frames at the same spot.@remembering7896 on GitHub · 2026-11-27 01:45 UTC · original
Follow-up from me (@remembering7896), on the same RX 7900 XTX / 9800X3D / 32 GB / Windows 11 26300 box.
Build:
main @ 014d52d, diag + diagnostics. All runs =scripts\play.ps1default switches + the named extras, Series S profile. Single runs of a few minutes; the title resumes its save, so scenes differ between runs — treat the differences as a hint, not a controlled A/B.1) Pop-watch on a trees/land spot (this reproduces the flicker)
-More @{VICTORY_POP_WATCH='5-600'; VICTORY_POP_FOLDER='...\popland'}(no POP_ALL; blip frames saved)Final: 4102 frames — blips in 357 (1150 blip blocks of 16×16), 1978 frames with 234 blocks stepped, lone blocks in 1204 frames (3770 blocks), ~15 fps, 335 blip pictures saved.
Looking at a consecutive world run (frames 2403–2408): a distant house with a lit window pops into existence at frame 2406 where the previous frame had only dark foliage; distant trees and power poles appear/vanish abruptly rather than streaming in. So at this spot the flicker is whole distant objects coming and going (LOD / culling class) — not untextured grey cards, and no floating geometry here. That reads like a distance/LOD issue rather than the missed descriptor-store sites in #353-style fixes (Jrjy3 / Arvi23 comments); on my machine they look separate.
2) BVH-builder A/B (per @Jrjy3), window
180-480VICTORY_BVH_BUILDER=1Turning the structure builder on did not steady the picture here (if anything marginally more blips) and cost ~5 fps — consistent with the near range not depending on the builder's passes on this card. Caveat: this window caught few blips (flicker is intermittent/place-dependent); the
5-600land run above caught many.3) Capture + render-target dump at world entry (per @jtrudeau1530)
-More @{VICTORY_CAPTURE='...\capture'; VICTORY_CAPTURE_WORLD='1'; VICTORY_DUMP_TARGETS='1'}World entry = first frame of ≥500 draws = frame 1056 at t=47.4 s; saved 109 window frames + 1077 per-resource PNG dumps (dumps concentrated on frames 1058/1062/1086/1136; 2560×1440, 1280×720, 256×256 …).
The octahedral-imposter pack is loaded around entry:
data/ttdb/props/octa_imposters.ttpf(iid43704f9f-27c6-4a9f-8815-d16527894df4) via DirectStorage. World-entry pixel-shader hashes includea1f08b8b7d514a39and6992feba843e3b84. Happy to attach the frame-1058/1136 dumps — which imposter PS hash should I be matching the floating rooftop props against?Questions
myokex/victory-amdon the same machine I saw a near-zero queue (327 waiting) — is queue order / the re-look interval / thecf9ba0864 KiB pool change holding textures in waiting too long?VICTORY_TEXTURE_SWEEP=0safe on a 24 GB card, or does it just defer the churn into VRAM pressure? (It didn't help the queue in my heavy run.)texture picked by index changed after its upload with nothing to tell of itwarnings (122 / 28 / 30 per run) share the mechanism that makes a newly streamed texture appear a few frames late?Logs (popwatch-off, popwatch-rt, popall-land, capture-intro), the 335 blip PNGs and the 1077 dumps are on request.
victory-7900xtx-issue122-pack.zip
@LloydNicholson on GitHub · 2026-11-27 05:34 UTC · original
A repeatable spot for the tree flicker, and what a 3-frame capture says about it (RX 9060 XT, Linux/Proton; same symptom as the Windows reports above)
Machine: RX 9060 XT 16 GB (RDNA 4), Ryzen 7 5700X, 32 GB, Linux with Proton (patched RADV). Build: this fork's main up to
a9400a6plus Linux patches, diag. Series X, 4K output. The flicker is the one described above: whole distant trees and palms present in some frames and gone in others, while the title asks for the same draws.Repeatable spot. The "Just Like Paradise" title shot over the boat, right after the second skipped cutscene of the boat mission (about 2.5 min into a new game if you hold A through the cutscenes). The mangroves and palms behind the boat switch between a full set and a sparse set (a bare dead tree with sky through it) from one frame to the next, for the whole 3 s of the shot, every run. It reproduces in scripted runs with no input during the shot, so it is a good A/B spot.
Ruled out on that shot (each by eye on live runs and/or on 30 fps recordings, frame by frame):
VICTORY_RELAY=0(+RELAY_COPY=0)TOLD_HOLES=0 CARD_STEPS=0 CARD_REHASH_RUNS=0 JOIN_COPIES=0 JOIN_PARTS=1 WIDE_BACK=0 RELAY=0 RELAY_COPY=0 TEXTURE_NO_WAIT=0 KEEP_SHOWN=1 INDIRECT_WINDOW=0 PORT_CBV=0 PORT_GUARD=0VICTORY_INDIRECT_BATCH=1withVICTORY_INDIRECT_WINDOW=0(renderer port 1 is off here, so thePORT_CONSTANTS_ORDERfix does not apply)depth_pyramid_cpu_occlusion42683eebec081520, 1024x512 R32F, 10 mips): added toVICTORY_TEXTURE_BACKso it lands in title memory, and also forced to a constant 0.0 and 1.0 there: same flicker. Skipping the pyramid passes in a replay does not change the picture either, so the GPU culling does not read it.lodScale3.0What the frame recorder shows.
VICTORY_RECORD_FRAMES=3) of the shot: frames 0 and 1 full, frame 2 sparse; the replay reproduces all three. The title issues the same draws, the same number per pipeline, in frames 1 and 2. The indirect records the culling writes are what differ. Work per pipeline (sum of the records' group counts) in frame 2 against frame 1: the trunk pipeline 903776ba469c8bac (MS_VS_TransformD) -44%, adc5c689b0552cc2 -38%, 89a622617919c92a -51%, 9d81dbdaa685de5f -36%, two smaller ones to 0; everything else within about 2%.InstanceCulling:CS_Tree_BatchCull55679a0547649d0b) gets the same 196 batches each frame, split between two dispatches differently each frame (98/98, 88/108, 105/91); root constant word 4 alternates between two blocks frame by frame, but pointing frame 2 at frame 1's block changes nothing.So on this card it is not the relay, the indirect batching, the occlusion pyramid or any of the host shortcuts above. The culling is fed something different in the sparse frames. If someone has already decoded what
CS_Tree_BatchCullreads per batch (LOD/fade fields in the batch records), that is where I'm looking next.AI-assisted (Claude Code).