RX 9070 XT: materials turn black for a moment (floor decal, faces, clothes), and different objects stay black from run to run #69
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/lobomfz--VIctory-xmem#69
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?
@Fran-co-F on GitHub · 2026-12-01 14:02 UTC · original
Thanks for xmem. It's far faster here than the fork I used before: with over 7,000 draws a frame and ray tracing off, I went from about 12 to about 30 fps (rough comparison: different fork, scaling and route). These image problems remain, and they're what keeps me from playing. I didn't find an existing report of them.
System
37bb30f, your patched Mesa 26.3.1 and pinned vkd3d-protonsetup.sh: VIctory is built withcargo-xwinand an SDK I already had. I also removed the two optionalsudocalls fromrun.sh.1. Materials turn black for a moment
It's easiest to reproduce in the cash-store robbery, in the shot where the character in the hood points the gun. The floor mat (or decal) turns black for one distinct picture in a 60 fps recording, then comes back. Sometimes other materials turn black in the same picture:
37bb30f, vkd3d-proton built with GCC 16.2, no switches37bb30f, vkd3d-proton built with llvm-mingw (Clang 23.1.6), no switches37bb30f+ #47 #45 #44 #43 #38 #31,VICTORY_POOL_MOVE=1(Clang)Each row is one recorded session, and the number of flashes may vary between runs. The images show before / during / after, and there are slow-motion clips for the first and last rows.
Plain
37bb30f, vkd3d-proton built with GCC (left to right: before, during, after):VIDEO:
https://github.com/user-attachments/assets/079e7bd0-69ca-4a11-83fd-af733bd5ebb7
Plain
37bb30f, vkd3d-proton built with Clang (left to right: before, during, after; afterwards, the mat has no orange border):Combined build, Clang (each row is one flash; left to right: before, during, after):
VIDEO:
https://github.com/user-attachments/assets/d8582ba1-67ae-47fe-bbc8-1b1f5ae58e17
37bb30f, the mat comes back without its orange border for at least the next picture. By eye, it looks like a less detailed version of the texture. That might point to the texture's host copy being dropped and made again, but I haven't confirmed it.37bb30f(with and withoutVICTORY_PAGES=0) and on the combined build. I don't have videos of those. It's easy to notice while driving, too.Probably not the cause of the flicker:
victory.exeand Mesa were the same.37bb30fdoes it too.native pipeline missed at first use.What the logs show (not matched to individual flashes): these sessions all reach
textures picked by index: the card has no room for more; they wait. In the GCC session (about 7 minutes):311719 for room or age (28264 MB)host copies let go9612 uploaded from memory that read all zeros (1033 of them filled later)texture_late kind="after_memory": n=487,129, mean 14.4 s, p90 over 32 sIn the combined-build session there are also bursts of
a texture already on the card is brought up to date although the card has no room for new ones(about 8,500 in 1.5 s). Other sessions have similar bursts.2. Objects that stay black, different from run to run
Table in the prison cell (combined build):
SECOND SESSION:

"STORE ROOM" door (combined build):
I also tried reading more of each texture in
fingerprint_blank/print_of(16 windows of 16 KiB instead of 3, a local switch). It didn't fix the table.3. Seen once
On the combined build with ray tracing on, the cell ceiling showed a faded image of what looks like the prison yard (screenshot). I didn't notice it in the later sessions, including the ones with plain
37bb30f. I don't know whether the PRs orVICTORY_POOL_MOVE=1cause it.Prison yard on the cell ceiling (combined build):
I haven't tested #67 yet. Its BC7 and placed-view fixes may be related to some of this, but I don't know. I can test patches or diagnostic switches on this card.
AI use: Claude Code (Claude Opus 5.5) made the builds, read the logs and code, compared the video frames, and wrote this. I played and recorded the sessions, and saw the image problems myself.
@Widget9337 on GitHub · 2026-12-01 15:14 UTC · original · edited 2026-12-01 15:57 UTC
Same card here, same problem. Mostly ground, terrain, buildings and props go black: sometimes a small section, sometimes a whole object (a road sign). Which ones changes from run to run, and some flash black and come back. I worked through the open PRs and a few switches to narrow it down.
Setup: RX 9070 XT, Ryzen 9 7950X3D, CachyOS (kernel 7.2), this repo's patched Mesa 26.3.1 and pinned vkd3d-proton, runtime
proton-cachyos-slr. Series X profile, 1920x1080 output, PC FSR 4 Quality (1280x720 render), ray tracing on, fullscreen through gamescope. The base is37bb30f+ #52 + #60 (which includes #58).What I tried
nir_lower_memory_model)VICTORY_PLACED_COPIED=1VICTORY_AMBIENT_RT=0(#61)VICTORY_BVH_BUILDER=0(RT off)None of these cost measurable fps (except #43).
The zero-memory uploads are real zeros
Every session logs about 2,300–3,100
uploaded from memory that read all zeros, with only 50–80filled later. I wondered whether the blank recheck, which looks at three 16 KiB windows, misses fills elsewhere in a texture. So I added a local diagnostic: after the third look still finds the samples blank, it reads the whole texture once (up to 64 MiB).699 of 700 were still zero end to end. The one with data started at offset 0, so it was a fill between looks, not a miss. So the sampling isn't the problem: that title memory stays empty. Either these textures never get used, or their data reaches the card some other way that the host copy doesn't follow, like the placed-view case #67 covers.
TLDR
That points at another GPU-side write path into textures (a copy, resolve, or compute/decompression output) that doesn't reach the host copy or the views placed over it. Happy to run a diagnostic build or switches on this card.
@Widget9337 on GitHub · 2026-12-01 20:58 UTC · original · edited 2026-12-02 13:12 UTC
Follow-up with something that may be related: whole parts of objects vanish when the camera moves slightly.
From one spot, turning the camera by just a few degrees makes a parked red pickup lose its entire body, both the cab and the bed. Only the wheels, the front bumper and a cooler sitting next to it are still drawn. A scooter nearby does the same thing: its body disappears and only its wheels are left. Turning back brings both bodies back right away, and it repeats every time at the same angles. The pieces that stay visible look like separate meshes from the body, so whole draws seem to be dropped, not single triangles or textures. Same setup as before: RX 9070 XT, Series X profile, 1080p, FSR 4 Quality, RT on.
What I checked:
0x1c8/0x218(#74) all happen at startup (16,384 and 2,048 calls by 20:40:24, with gameplay starting at 20:40:59), not when the camera moves.Because it follows the camera and nothing is dropped on our side, my guess is the title's own GPU culling. If the data that decides visibility (depth or occlusion results, bounding data) has parts that a GPU write didn't make visible, whole objects would get culled. That's the same family as the black textures above. I'm happy to run a capture or try switches at this spot if that helps.
@weneedbucks on GitHub · 2026-12-02 00:27 UTC · original
System: Intel i7-10700K, RX 9060 XT 16 GB, 32 GB RAM, CachyOS (kernel 7.3), system Wine 11.23, this repo's patched Mesa and vkd3d-proton from setup.sh. All 99,409 pipelines prepared, 0 bad.
Build/settings:
f7f0360(+ #109, #126, #129, #113). Series S profile, 1920x1080 output, VICTORY_UPSCALER=7 + VICTORY_FSR_HOST=1 (FSR 4, 1280x720 render), VICTORY_PAGES=0.Happy to run a diagnostic build or switches on this card.
@GreemSC on GitHub · 2026-12-02 11:52 UTC · original
Another data point, RDNA 3 this time: RX 7900 XT 20 GB, i7-12700K, CachyOS kernel 7.3.6, Proton-CachyOS Wine, this repo's patched Mesa 26.3.1 and vkd3d-proton
71cae09. Buildd044248+ #163 + #164 + #166, Series X, ray tracing on, all 99,830 pipelines prepared, 0 bad.With
VICTORY_FSR_4K=quality(FSR 4.1.2 through the PC upscaler, 1706x960 → 2560x1440) and frame generation on: in the car scene of the opening, Lucia's face skin turned black (seen by the user while playing). Frame captures of every 8th frame of the same run show her face lit normally, so it is transient, like the flashes described above.I can't say yet whether it also happens there without FSR 4: on the same build with the title's own upscaler (render scale 0.75) nobody was watching that scene. If someone has a lead on what to log for a skin draw that goes black, I can run it.
AI assistance: Claude Code (Claude Opus 5.5) wrote this report from the run's log and captures; the black face was seen by the user.
github-bot referenced this issue2026-12-02 19:27:50 +00:00
@DrArroway on GitHub · 2026-12-02 22:30 UTC · original
Data point from a clean 61-minute run on
main(32b136e) withAMD Radeon RX 6900 XT (1002:73bf)(Ryzen 9 7900X, 64 GiB RAM,GE-Proton11-15, defaultrun.conf,VICTORY_PLACED_COPIEDoff, RT on).Overall run health was clean (
0errors, steady8660 MBRAM /3378 MBVRAM,11412440 MiBtexture versions skipped vs73102 MiBread with0audit misses,98.8%median GPU busy across3211clock samples), except 2–3 character skin textures showed psychedelic rainbow/block corruption.Looking at the run log, two placed-view diagnostics showed up right where character skin/bake textures are created:
1. Three
HERO LEADplaced views over host-copied textures (placed_in_host_written)Worth noting for anyone looking at
VICTORY_PLACED_COPIED/seed_later: all three cases are views placed after the host copy (placed_in_host_written), cross block sizes (format=71(8, 4)overformat=78&99(16, 4)), and one starts at a non-zero offset (view_offset=81920).2. Placed textures overlapping mismatched host render/UAV targets (
alias_of/placed_inside_target)Ten
a placed texture lies where a texture the host writes does, and is not like itwarnings (placed 8–10 level views in formats71/80/83/98/99/28over 1-levelformat=28/29(4, 1)targets):Plus one
placed_inside_targetwarning at a non-zero offset inside a host target:@Widget9337 on GitHub · 2026-12-03 01:21 UTC · original
More on the vanishing vehicles from my last comment. It looks like visibility culling tied to one place, not level of detail:
VICTORY_VEHICLE_LOD_BIAS=2(#133, the log confirmsdetail: patched … vehicle LOD bias value=2), nothing changed.main(8585cd4, with #109/#110/#133/#163/#164 in), plus the earlier builds.Where: In front of the gun store just after getting full control of Jason.
Because whole bodies go while separate pieces (wheels, bumper, a cooler beside it) stay, and only within one region of the screen from one spot, my guess is the title's occlusion test sees something wrong there: wrong depth from an occluder, or one of the black or missing surfaces from this issue writing depth it shouldn't. Happy to try a switch or take a capture at that spot.
@Widget9337 on GitHub · 2026-12-03 06:50 UTC · original · edited 2026-12-03 07:04 UTC
A partial fix for some of the black and flickering textures, from the
alias_ofwarning (the same one @DrArroway found):What it is. The title draws into a render target, then places a BC texture over the same memory: for example a 1024x1024 BC7 (format 98/99) over a 1024x1024 RGBA8 target (28), or a 2048x2048 BC1 (72) over the same target. On the console both read the same memory. Here the drawing stays in the host's target, and the BC texture is filled from title memory, which the drawing never reaches, so it reads zeros or old bytes. With
target_flagsandtarget_layoutadded to that warning, the targets I saw are all0xc00001(render target) and tiled (layout 0).What I changed.
texback.rsalready copies textures of a fixed list of kinds back into title memory in the console's layout (the ocean's maps, the phone photo). I used that in two steps:VICTORY_TEXTURE_BACK=<w>x<h>f<format>,...switch that2773fdfremoved, as an addition to the default list, and letrender_target_wantedtake drawn targets of those kinds in any layout, not only the linear photo target. I took the kinds from the warnings in all my logs: 1024x1024f28 ×68, 1920x1088f29 ×21, 512x512f29 ×16, 1024x1024f29 ×7, 512x1024f28 ×3.VICTORY_TEXTURE_BACK_ALIASED. Whenalias_offinds a texture of another kind placed over a target, it marks that target (the object, not its size). A marked target is copied back each time it's drawn or written. With=2, it's also copied back once at the next list close when it's found, for a target that was drawn before the texture was placed over it and maybe never again. Targets over 32 MiB are logged and skipped, and a freed target is unmarked. About 200 lines in total, mostly comments and logging, intexback.rs,resource.rs(the call inalias_of, plus the two fields on the warning) andhost.rs(the once-only copy intextures_back).Result (RX 9070 XT, 7950X3D,
main8585cd4+ local commits, Series X, 1080p with FSR 4 Balanced, RT on, 30 cap):could not be tiled, 0 stale).The automatic session had the most fast driving, which is GPU-bound here and accounts for its lower heavy-scene numbers.
Not covered:
lies inside the memory of a texture the host writes). Here those are mostly 640x360 and 565x318 views into a 1280x720 format-17 target and into the 3840x2160 format-24 UI plane; copying those back every frame would be expensive.I'm happy to share the patch, or to test a build that does this properly upstream.
@Fran-co-F on GitHub · 2026-12-03 13:00 UTC · original
Thanks @Widget9337, this is the most concrete lead on the black/flickering textures so far: the title drawing into a render target and then reading the same memory as a BC texture matches what I saw (several objects going black together, the mat coming back at what looked like a lower mip).
Would you consider opening a PR with
VICTORY_TEXTURE_BACK_ALIASED, even as a draft and opt-in? Since a rewrite is underway in a separate repo, having the diagnosis and the patch in a PR (with your notes on what it fixes and what it doesn't, like textures placed inside a target and the all-zero title memory) seems like the best way for it to reach the maintainers and carry over, even if the code itself doesn't.@UwUCammie on GitHub · 2026-12-03 13:05 UTC · original
I have another data point for the interior-offset case. On an RX 7900 XT with RADV, loading my city save at native 1920×1080 (Series X, render scale 1.0, frame gen off) logged a 960×540 format-67 view starting at offset
0x5b0000inside a 1920×1080 format-42 texture. Both have one mip. The loader reportstarget_bytes=8294400andtarget_flags=0x300004.That gives us a concrete pair to check if the alias work is extended to interior views. The diagnostic is limited to one line per kind of pair, so this capture doesn’t tell me how often the view was sampled. I haven’t matched it to a particular flickering object.
github-bot referenced this issue2026-12-03 15:14:53 +00:00
@DrArroway on GitHub · 2026-12-03 18:03 UTC · original
Follow-up to our previous #69 comment, this time with
VICTORY_PLACED_COPIED=1enabled onmain(4e02e38).Setup & settings
AMD Radeon RX 6900 XT (1002:73bf), Ryzen 9 7900X, 62 GiB RAM, CachyOS kernel7.3.7-1-cachyos,GE-Proton11-15-x86_642560x1440, RT on (VICTORY_BVH_BUILDER=1),VICTORY_PLACED_COPIED=1,VICTORY_PARTS_ONE_CALL=1,VICTORY_KEEP_HOST_BUFFERS=1,VICTORY_SKIP_INTRO=1VICTORY_PLACED_COPIED=1result (31m 09ssession)VICTORY_PLACED_COPIEDoff yesterday, 2–3 character skins showed psychedelic block corruption).HERO LEADwarnings:0(down from3).twin_copyactivity:99placed views paired (32×1024×102478→98/99,18×2048×204878→98/99,16×256×25678→98/99, plus99→98/99/95/83/78and71→71/72) and21live subresource copy events logged (16copied=true).3alias_ofrender-target pairs appeared —[1024, 1024, 99, 1920, 1088, 29],[1024, 1024, 99, 1280, 720, 29],[1024, 1024, 98, 1280, 720, 29](the target-copyback case @Widget9337 is addressing withVICTORY_TEXTURE_BACK_ALIASED).Stability &
#330/#332notes0GPU errors (8484 MBRAM /3554 MBunified-memory VRAM,25.4median /26.0avg FPS across360tools/session-fps.shsamples,6.7 msavg preparing).VICTORY_PARTS_ONE_CALL=1(#330): coalesced20.9median joined parts/frame (p90 = 44.2) into17.7queue calls/frame.VICTORY_KEEP_HOST_BUFFERS=1(#332):0.0allocators remade for age across all1,815samples (saving32.1/smedian,713.3/speak).31m 09son the unrelated#57/#142+0x2626877allocator-list cycle hang (tools/wake-race.sh 30onGE-Proton11-15-x86_64passed cleanly:3305092 waits, 6206854 wakes,ok: no damage in 30 s).@fish1917 on GitHub · 2026-12-03 20:20 UTC · original
Same card (RX 9070 XT, Mesa 26.3.1 + pinned vkd3d-proton) and the same symptoms here: black or missing ground, decals and signs that change from run to run, present with RT off too. This render-target/BC-texture alias case is the first lead that matches what we see.
Could you open the PR for
VICTORY_TEXTURE_BACK_ALIASED(draft and opt-in is fine), or share the patch? Happy to test it here and report before/after on the same saves, including frame time, copy-back counts and which remaining cases stay black.@LloydNicholson on GitHub · 2026-12-03 20:28 UTC · original
Another data point, this time with every result measured on recorded frames rather than judged by eye. Eight things are ruled out.
Setup: RX 9060 XT 16 GB, Nobara (kernel 7.3), Proton-CachyOS. Build is
main+ upstream842767amerged, Series X profile,highpreset, diag build.Repro: the opening motel. Walk to door 10, knock, then hold LT on Vicki and click RS to zoom in and out. Her head goes black for exactly one frame, cut off sharply at the neck, while the shine on her eyes and lips stays. In some flashes her neck, arms and back go black in the same frame. One-frame black squares also show on the wall and on the chair next to the door.
Method: every run starts from the same save copy, and every frame is saved at 640x360 (
VICTORY_POP_WATCH+VICTORY_POP_ALL=1). A script counts frames where 16x16 blocks drop below 45% of both neighbours while those neighbours agree.VICTORY_NULL_RGBA=ff00ffff(null and neutral slots painted magenta)SYNC_ALL/ACCESS_COMMONwait (about 790 a frame)VICTORY_SKIP_PIPELINESwith all sixCS_DenoiseShadowMask*(the log confirms the skip)Log correlation across those runs:
The flash share rises as fps drops (1.6% at baseline, 6.1% in the slowest run). So flashes come at a roughly steady rate per second, not per frame.
A tool that may help others: shader hashes can be mapped to names.
shaders.rpfstores its SGD5 records uncompressed, and blake3 of each unpacked DXBC container, first 16 hex digits, is exactly the hashVICTORY_SKIP_PIPELINESandVICTORY_SHADER_SAVEuse (checked against aVICTORY_SHADER_SAVErun). So any shader can be found by name and skipped. The denoisers are:I can share the full list of 26,503 names and the small extractor.
What's left: with every barrier a full wait, every submission serialised, buffers recopied and textures frozen, a material still goes black for one frame. So the black is computed by the title's own GPU work from inputs that look correct to us, such as a pass reading a target written by an earlier frame, or a value the title computes. Next, I'd take a GPU capture of a flash frame to see which pass writes her head black. I'm happy to run any switch or diagnostic build at this spot.
AI assistance: Claude Code (Claude Opus 5.5) built the switches, ran the analysis and wrote this report; the user played every run and saw the black face each time.
@Widget9337 on GitHub · 2026-12-03 22:02 UTC · original
More measurements of the one frame black flashes, from the same kind of pop watch runs as @LloydNicholson's, with a few results that add to theirs. Same setup as my earlier comments (RX 9070 XT,
8585cd4+ local commits, Series X, 1080p with FSR 4 Balanced, 30 cap), render target copy back on.A pop watch note
With
VICTORY_UI_PLANEset, every frame is composed from two planes, andpresentskips the pop watch for composed frames (if composed { None }), so it never ran for me. I let it read the game's plane in that case (transition to COPY_SOURCE,popwatch::take, transition back), which also keeps the interface out of the counts. Anyone using the UI plane needs the same change.Results
VICTORY_BVH_BUILDER=0)It only happens while the character or camera is moving, and the rate per minute varies from 1% to 21% of frames with what's on screen.
Two things that may narrow it down
Also ruled out here
These add to Lloyd's list:
unmake_stale): with a local switch that leaves older views alone when a newer one starts at the same address with a different length (the same texture with more or fewer levels), stale slots went from about 10 to 35 per frame to about 0.2, and blips stayed at 4.5%.made_copygoes throughhosted_for, which stampshost.used, so a diagnostic that looks up a copy marks it as used.Happy to run any switch or diagnostics build at the alley, and to repeat the pop watch runs to put a number on a fix.
@Widget9337 on GitHub · 2026-12-03 22:14 UTC · original
@Fran-co-F @fish1917 here's the patch for
VICTORY_TEXTURE_BACK_ALIASED, as one commit on currentmain(1152b9c). It applies cleanly and builds there, but I've only played it on8585cd4, so a test on newermainwould help.Apply with
git am victory-xmem-texture-back-aliased.patchfrom the repo root, rebuild (./setup.sh victory), and add torun.conf:=1copies a target back each time it's drawn once a texture of another kind has been found over it;=2also copies it back once right when it's found. Both are off by default, so nothing changes without the switch.What to look for in the log:
targets with a placed texture of another kind over them are copied back into title memory (VICTORY_TEXTURE_BACK_ALIASED) mode=2once at starta target with a placed texture of another kind over it is copied backfor each new kind of target it markstexture readback landed ... not_tiled=0(anycould not be tiledwould be worth reporting)With it on, a big sign that flickered every time I passed it stopped, and a few small signs that were always black showed. They showed in every run since, about a dozen, except two. Both of those had a diagnostic of mine running that reads texture memory on its own thread and holds a lock the texture pass uses every 20 s, so I think that diagnostic disturbed the timing and the copy back works consistently in normal play. I haven't done a formal off and on comparison, though. The copy backs cost no frame rate I could measure. It doesn't touch textures placed inside a target (like @UwUCammie's 960x540 view at an offset), and it doesn't stop the one frame black flashes.
It also brings back
VICTORY_TEXTURE_BACK=<w>x<h>f<format>,...for adding kinds by hand, and adds the target's flags and layout to thealias_ofwarning. Before and after results on your saves would settle it: with it off and on, at a spot with black or flickering signs, a couple of runs each.victory-xmem-texture-back-aliased.patch
@Fran-co-F on GitHub · 2026-12-04 03:22 UTC · original
@Widget9337 thanks for the patch. I tested it on current
main(1152b9c), RX 9070 XT, Series X, ray tracing on, at the prison opening, and here it made things worse.With
VICTORY_TEXTURE_BACK_ALIASED=2it marked one target, a 1920x1088 RGBA8 sRGB (format 29), because a 2048x2048 BC1 with 10 levels was placed at its address:From then on the guard's arms showed multicolored block noise, Lucia's arms went flat grey-green, and an inmate's face was smeared with color. That is what BC1 decoding of a rendered RGBA8 image looks like. A screen-sized RGBA8 target and a 2048x2048 BC1 with mips cannot be two views of the same texels, so this looks like memory the title used for one and then the other: copying the target back on every draw overwrites the texture's own data. The same spot looked better with the switch off (I didn't record that run). The other pairs I've seen here are the same kind: BC7 2048x512 over RGBA8 1024x1024, BC7 2048x1024 over RGBA8 736x1280, BC1 2048x2048 over RGBA8 1024x1024.
A filter on top of your patch. Copy a target back only when the texture's blocks line up with the target's texels: same bytes per element, and the target's width and height are the texture's divided by the block size (a BC texture over an
R32G32_UINT/R32G32B32A32_UINTtarget a quarter its size, or a same-size texture with other levels and as many bytes per texel). Thealias_ofwarning also getsfits=:With it, all four pairs above say
fits=falseand nothing is copied: no more noise, but also no change to the black materials or the one-frame flashes on this save. Could you check whether the pairs behind your fixed signs sayfits=true? If they don't, the copy that fixed them overwrote something else that happened to help, and the patch needs another way to tell a real alias from reused memory.AI assistance: Claude Code (Claude Opus 5.5) built and analyzed the runs and wrote this; I played them and saw the results.
@abomalocaris on GitHub · 2026-12-04 04:14 UTC · original
Data from an RX 9070 XT 16 GB: how early copies are let go, and a label that is black in half of all launches
Setup: RX 9070 XT 16 GB, Ryzen 7 9800X3D, 32 GB RAM, CachyOS (kernel 7.3.7),
proton-cachyos-slr, this repo's patched Mesa 26.3.1 and vkd3d-proton. Series X profile, 2560x1440 output with FSR 4 quality, ray tracing on,VICTORY_PAGES=0,VICTORY_PLACED_COPIED=1.1. Objects that go black for a moment and come back. On
8fd0a70the card settles at about 13.1 of 15.4 GB in free roam, which is inside the band wherevram_keeplets go of copies idle for 4 s (from 80 % of the budget). Looking away from something for a few seconds and back is enough. A diagnostics build'sstats: texturesline over a scripted 10 minute walk-and-pan:VICTORY_VRAM_BUDGET_MB=17000, room 87 %, room cap 87 %Raising the budget only moves the lines up (the room settings keep admissions near 14.8 GB), so it is a workaround, but "made again" fell by 81 % at the same frame rate, and by eye a plant's shadow that used to pop in and out stopped doing so. With #342's card memory changes on current
mainthe same test lets go of almost nothing (see my comment there).2. A decal that is black for a whole session, decided at load. In the opening cutscene on the boat, the neck label of the beer bottle is either drawn or solid black for the whole scene. Classified from screenshots at a fixed time over 44 scripted launches of the same save: black in 23, drawn in 21. It does not follow ray tracing (builder off: black in 3 of 4), paging on or off, the texture room setting, the FSR mode or the frame interval, and none of the counters I compared differs between the two groups (zero-memory uploads, "filled later", bake sources failed or not mapped,
alias_ofwarnings, placed-view copies). Builds that changed asset read timing were black more often (12 of 15), so it looks like a race at load. A US flag prop in free roam does the same: solid black for a whole session in some launches, fine in others. Still the case onmainat00aa4d3+ #342 + #344 (2 black, 2 drawn in 4 launches).3. Black triangles on the player's elbows. While walking, patches of the arm mesh near the elbow are black for one or two frames (captured with
VICTORY_CAPTURE_FRAMES; I can attach the frames). They look like whole triangles or meshlets, not texels. Still there withVICTORY_BVH_BUILDER=0, withVICTORY_PLACED_COPIED=0, withVICTORY_HW_RT=1, and with #344 merged.I tried to trace the label's pixel with
VICTORY_RECORDandreplay --pixel; a capture of that frame is 28 GB here, which does not fit in this machine's memory to replay. If a smaller capture is possible I will try again.Written with AI assistance (Claude Code); the runs and observations are from my own machine.
@Widget9337 on GitHub · 2026-12-04 05:25 UTC · original · edited 2026-12-04 05:32 UTC
@Fran-co-F thanks for testing it, and for the filter. I checked every pair from my runs against it: none fit. Over 33 logs since
8585cd4, the targets the automatic mode marked were:The last one is the same target that gave you the block noise, and it was marked in 4 of my runs. None of these pairs can be two views of the same texels, so I agree with you: it's memory the title used for one and then the other, and the copy back was writing over the texture's own data. Please treat the patch as withdrawn. I wouldn't add it upstream, even with the filter, since nothing here fits.
That also changes how I read my results. @abomalocaris's beer bottle label, black in 23 of 44 launches and decided at load, matches my small signs: they showed in most runs and were black in a few, and I'd put that down to a diagnostic of mine. A load race explains it better, so the small signs are probably not the copy back's doing. The other result was a large building sign that flickered every time I passed it and stopped with the copy back on. I've now done the off run I should have done before posting: with the copy back off, the big sign doesn't flicker and the small signs show. So neither result came from the copy back, and I have nothing left in its favor.
@Widget9337 on GitHub · 2026-12-04 16:37 UTC · original · edited 2026-12-04 21:11 UTC
More on the one frame flashes: four lighting stages switched off with
VICTORY_SKIP_PIPELINES, none of which changed them, and an observation that may point somewhere else. Same setup as before (RX 9070 XT, Series X, 1080p with FSR 4 Balanced, ray tracing on), build8585cd4with #216, #344 and #428 on top, diagnostics build, on foot at the alley where flashes are frequent.Shader names
I made the name list the way @LloydNicholson described (blake3 of each unpacked container in
shaders.rpf, first 16 hex digits): 26,503 records, and his denoiser hashes match. The frame report's drop lines (dropped N/frame without a host pipeline: skipped shader <hash>) show which of the skipped shaders actually run, which made it easy to check each skip took effect.What was switched off
indirect_diffuse_lighting:CS_ScreenProbes_TemporalResolve*(6)..._ReflectiveCaustics_a911b49c, 1 a frameTAA_Utilities:CS_ReconstructSurfaces,CS_FilterShadingChangeCS_ReconstructSurfaces, 1 a frame (the other never runs)indirect_diffuse_lighting:*(GI off entirely)CS_FinalGather_*,CS_ScreenSpaceBentCones*ambient_map:*CS_AmbientMap, the classify and sky passes,CS_LightMap*With GI or the ambient map off, shaded areas look very different, but surfaces still flash for a frame and come back, same as before. Earlier, outside VIctory:
radv_split_fma=truewithRADV_DEBUG=nodcc,nohiz,nofastclearsleft the flashes per frame unchanged (103 vs 108 blip blocks per 1,000 frames), and #344 didn't change them either.Sharp cutoffs along materials
The flashes aren't only black. Often a material goes black for a frame, but sometimes it goes bright for a frame, close to white. It's too fast to be sure which each time, but it looks as if the material just isn't shown for that frame. Either way the change is always cut sharply along a material boundary, never a soft falloff: the green dumpster's body goes black while the decals on it stay lit, and in Lloyd's repro Vicki's head goes black cut at the neck while the shine on her eyes stays (the eyes have their own decal material,
ped_standard_eye_cap_decal). That looks like a step that works per material and loses one material for a frame, not a light source.This renderer shades by material tile:
tiled_lighting:CS_GenerateMaterialMasks,CS_MaterialTilesInitialandCS_MaterialTilessort the screen into tiles by material,CS_ResetMaterialTilesIndirectArgsresets the per material arguments, and the lighting then runs per material through those GPU written arguments (VS_TiledLighting). If one material's tile list or argument count is wrong or stale for a frame, that whole material would go unshaded while its neighbours are fine, showing whatever the lighting target held there (black when cleared, something bright when not), and since the tiles change as the camera moves, it would mostly happen in motion. I can't skip those without losing all lighting, so I can't test it from here, but it fits everything above better than the lighting stages did.One cause in that direction is ruled out: #445's
VICTORY_IN_PLACE_ALONE=all(every indirect execution whose arguments are read in place clamped alone, so none can read an earlier frame's record from a batch opened too early; the log confirmedkinds="all") didn't stop the flashes. They looked a little rarer, but the game was down to 15 to 17 fps, and in an earlier run at about 17 fps (a GPU slowdown, not a switch) the flashes per frame were the same as at 28 fps (103 vs 108 blip blocks per 1,000 frames), so fewer of them a second is likely just the frame rate. So if a material's tile count or list is wrong for a frame, it isn't from a stale clamp; it would have to be the count itself, or how the lighting reads it.One more thing in that direction, weaker: Lloyd's "buffers" test (every buffer refresh copied whole) had the highest flash share (6.1% against 1.6%), though it was also his slowest run. If a refresh from the CPU side can overwrite indirect arguments the title's own compute pass wrote earlier in the frame, that would make exactly this kind of failure, and recopying more would make it worse. I haven't been able to confirm that in the code.
I tried a frame capture to trace a flashing pixel, but a capture here can't be replayed on 64 GB (details in #441). A note for counting these: the pop watch's own blip count takes any block that differs from both neighbours while they agree, so it counts the bright flashes too, but a script that only looks for blocks dropping below 45% of their neighbours (like the one in Lloyd's runs) would miss them. Happy to run any switch or diagnostics build at the alley.