8 GB RDNA3: tiles of another texture on roads and clothes, characters white or black (levels viewed alone) #76
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#76
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?
@YaBulochka on GitHub · 2026-12-01 16:06 UTC · original
8 GB RDNA3: tiles of another texture on roads and clothes, characters going fully white or black
The visual bug that keeps this from being playable here, with the counters I have. Same rig as #64 (RX 7600 XT 8 GB, Ryzen 5 9600X, RADV 26.3.1,
series-s,VICTORY_FSR_HOST=1, 1080p,VICTORY_BVH_HARDWARE=0, ray tracing on otherwise, builded9bc9-line with #51/#52/#58/#60/#63 and my switches).What it looks like. Driving through the city, patches of the road show a dark, blotchy pattern that is not the asphalt texture; clothing picks up printed patterns from elsewhere; a character turns entirely white, or entirely black, for a moment and comes back. It is not a lighting change: the shapes stay and the content swaps. Ray tracing off changes nothing about it, so this is not #38.
What the counters say. From the frame summary:
and, window by window, the queue:
So most of the card is a cache of small level copies (68 KB on average), and a few hundred of them are "due" at any moment while the oldest has waited thousands of frames.
What I tried, all on the same build, and none of it touched the artifact:
VICTORY_TEXTURE_KEEP_AWAY=1(my patch: keep the slot when its page is away)VICTORY_TEXTURE_WHOLE_ONLY=1(my patch: skip partly-mapped textures)VICTORY_TEXTURE_LATER_MAX=4(retry sooner)VICTORY_PAGES=0VICTORY_LOW_MEMORY=0,VICTORY_SHADER_OPT=0xffffffff,VICTORY_PROCESS_PRIORITY=highgpu_wait, see #64)Two questions I cannot answer from outside.
7 790 slots made from their new view after its upload had runline suggests copies are made and then a newer view arrives; if the copy does not wait for the title's write to settle, it would hold a mix of two textures, which is exactly what the picture shows.If it helps: the same symptom is reported for another fork's line on an 8 GB card (fxceless/victory-fork#1072, same GPU class, "tiled texture pages show content from another texture"), and VKtory's log names the same mechanism (
texture refill put off: none of its memory is mapped (streamed out; the last fill kept)), so the shape of the bug looks shared rather than a local detail.No game files, screenshots or captures included.
@YaBulochka on GitHub · 2026-12-01 16:56 UTC · original
Correcting my earlier description (withdrawn): it is not foreign textures appearing. What actually happens is patches of the other level's content sitting on top of a surface.
The clearest case: road markings. Up close, the white zebra stripes stop being crisp: their edges go ragged and pixelated, and inside a stripe holes open up that show the asphalt's colour, so a stripe reads as if it had been eaten. The same on plain asphalt: large dark patches that do not follow the surface's own pattern. In motion this shimmers — a stripe is whole in one frame and chewed in the next; standing still it holds.
Not foreign textures. No part of the road ever shows a recognisable picture from somewhere else. It is the same texture at the wrong level: coarse-level texels where fine ones belong, which gives both the ragged edges and the "holes" that are really the coarser level bleeding through.
What is ruled out on this build, same save, same spot:
VICTORY_POOL_MOVE=1): no change to this;VICTORY_AMBIENT_REFLECT=0andVICTORY_AMBIENT_RT=0: no change (the second one breaks the lighting, reverted).Context from the same run: texture queue
768 due / 18 543 waiting,xmem maps 19 317 direct / 22 ref, VRAM 5.96 of 7.06 GB, 17.4 fps at 7449 draws. So it happens with a deep queue, not an empty one.If it would help I can capture with the camera fixed and only the vehicle moving, so the pixel footprint changes without the view changing: then the level's own boundary is visible frame by frame.
No game files, screenshots or captures included.
@YaBulochka on GitHub · 2026-12-01 17:04 UTC · original
Where it hits, since that narrows the suspect: it is not one surface but the whole class of object textures, and it is noticeably milder on the world.
Worst: clothing, characters' skin and faces, cars and their paint, road markings and asphalt in the foreground. Those are the things that stream in as their own textures while you approach them.
Milder: buildings and terrain, which mostly stay clean even while everything else shimmers.
That split matches the counters: what this build copies per level is 77 118 "levels viewed alone" (5.15 GB of the card), which is what objects are, while the world's atlases are viewed whole and are mostly fine.
So the suspect list narrows to the per-level path: the copy of an individually-viewed level ends up holding the wrong level's content, or the right level with the wrong extent, whichever produces ragged stripes with holes plus the odd dark patch. It is not a page that is missing: if the page were gone the surface would be blank or black, not chewed.
Practically, on an 8 GB card this is the thing that decides whether the game is playable, more than the frame rate: at 17-25 fps with RT the picture is already usable, but this artifact is in every scene.
No game files, screenshots or captures included.
@YaBulochka on GitHub · 2026-12-01 18:35 UTC · original
Following LOCKhart07's note in #64 ("about 92% of new slot showings first show the neutral texture for up to 3 frames while their upload lands"), here are the same counters from this 8 GB card — the numbers make the flicker much easier to explain than my level guess above.
From one in-world run (
series-s, 1080p, RT on, 15-25 fps):So 75% of slot showings show the neutral texture, and the worst wait is 25 frames. That is the missing/"chewed" look I described: at 40-70 ms a frame on this card, one frame of neutral is already visible as a hole, and 25 frames is over a second of it. On a 9070 XT the same 0.93 frames is ~11 ms and nobody sees it; here it is 40-70 ms, which is exactly why this bug looks like an 8 GB bug and not a rendering bug.
That also explains the two things I could not fit before: the "holes" inside a road stripe are the neutral texel showing through, and the character that goes fully white or black is a whole surface on neutral.
Two questions, if I may:
I can instrument either way on this card: the counters above come from the stock build, and I can re-run with any switch you name.
No game files, screenshots or captures included.
@YaBulochka on GitHub · 2026-12-02 15:47 UTC · original
8 GB RDNA3: what we ruled out on the texture flicker (measurements, no fixes)
Not a bug report with a fix: a list of what we tried on one card, so nobody repeats it.
Nothing here changed the visible flicker. Counters and costs are from our logs.
Setup. RX 7600 XT 8 GB (Navi 33, RADV, Mesa 26.3.1 +
patches/mesa.patch), Ryzen 5 9600X,30 GB, CachyOS, Wine 11.22 (GE-Proton11-16 runtime),
xmemd044248, Series S, 1920x1080through FSR 4 (720p render), ray tracing off,
VICTORY_BVH_BUILDER=0.Symptom. Texture tiles on roads, clothes and vehicles show another texture's bytes, flicker
between frames, and some surfaces near the camera stay black until something else makes them
upload again. Distant surfaces are mostly right.
Ruled out
Ray tracing paths. With
VICTORY_BVH_HARDWARE=1the log saysray-tracing node test … on=true,the structure builder runs, and the picture does not improve; with 0, 1, or with
VICTORY_BVH_IN_PLACE=1andVICTORY_BVH_BUILDER=1the flicker is the same. A first flat-blackgeometry case at
HARDWARE=1is already in #33.Driver (Mesa/RADV), three separate workarounds. Each tested in isolation:
radv_wait_for_vm_map_updates=truefor our exe: no change (cost of a mapping even fell,148 → 121 µs);
radv_force_64_byte_sampled_image=true(the Forza 6 workaround): no change;RADV_DEBUG=nodcc: no change.Memory pressure and budgets. With
VICTORY_TEXTURE_BUDGET_MB=2048VRAM drops 7.7 → 4.4 GBand frames go 17–19 → 22–33 fps, but surfaces stay black (the copy is refused, not evicted).
VICTORY_UM_CARD_MB1024/4096/6144,VICTORY_PAGE_MOVE_MB=256andVICTORY_PAGES_SEEN=1do notmake the title keep more pages: it holds ~1.7 GB of 5956 MB paged title memory with 1.7 GB of the
card free. The card is not the limit — the title does not ask for more.
List order.
VICTORY_THIN=0(translate every list at the call, no deferred translation):no change; fps was not lower either.
Slot keep.
KEEP_SHOWNfrom 1 to 2 (keep a slot showing any texture of the same dimension):no change in flicker, neutral showings went up.
Neutral texture instead of a lower level. Removing
room_latelyfrom the keep condition,and returning the old copy instead of
None, changed nothing or made it fully black.min LOD.
from_basealready shiftsMostDetailedMipto the copy'sbase; the refusal inresource.rs(h.base > base_level(...) → None) was replaced by showing that copy. No visiblechange.
Barriers. The title sends no
ResourceBarrierthrough the intercepted path in a normalrun (0 lines, 29 frames), so the console's compressed/expanded states never reach us.
What the counters say
So: the flicker is not "a slot keeps the wrong texture" and not "a copy is evicted"; 92 % of the
neutral showings are first uses of a new slot. And every page mapping is a real one — a
"skip if already bound" cache saves nothing.
Guess we could not test here
The bytes in the host copy may simply be the wrong ones (a stale level, a partial upload), which
is what btf #66 and VKtory #59 look at with byte comparisons. We have no
texcheckin our tree,so we cannot say which side is wrong. A switch that compares a named texture's host copy against
title memory and logs the first differing byte would settle it; we would run it on this card.
No game files, screenshots or captures are included.
github-bot referenced this issue2026-12-02 19:27:49 +00:00