8 GB RDNA3: tiles of another texture on roads and clothes, characters white or black (levels viewed alone) #76

Open
opened 2026-12-01 16:08:33 +00:00 by github-bot · 4 comments
Owner

@⁠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, build ed9bc9-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:

textures from the first level viewed, since the start:
  77 118 host copies of the levels viewed alone
   5 150 MB on the card
  32 503 MB of title memory whole
   3 616 replaced by one with more levels
   7 790 slots made from their new view after its upload had run

and, window by window, the queue:

textures picked by index, the queue: 11 300-13 500 slots, 60-370 of them due
  (the oldest written 4 900-11 000 frames ago)

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:

switch effect on the artifact
VICTORY_TEXTURE_KEEP_AWAY=1 (my patch: keep the slot when its page is away) none; re-uploads 16.7 -> 41, frame slower
VICTORY_TEXTURE_WHOLE_ONLY=1 (my patch: skip partly-mapped textures) none
VICTORY_TEXTURE_LATER_MAX=4 (retry sooner) none; re-uploads x18
VICTORY_PAGES=0 none
VICTORY_LOW_MEMORY=0, VICTORY_SHADER_OPT=0xffffffff, VICTORY_PROCESS_PRIORITY=high none (they do fix gpu_wait, see #64)

Two questions I cannot answer from outside.

  1. Is the level copy taken from memory the title is still writing? The 7 790 slots made from their new view after its upload had run line 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.
  2. When a page of a copied level is not mapped, does the copy keep the old content of that page while the rest updates? A per-page mix inside one level would explain both the blotchy road and the fully white/black character: the character's level is all pages, so if the source page is gone for all of them, the whole surface is stale.

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:06 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/76) # 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, build `ed9bc9`-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: ``` textures from the first level viewed, since the start: 77 118 host copies of the levels viewed alone 5 150 MB on the card 32 503 MB of title memory whole 3 616 replaced by one with more levels 7 790 slots made from their new view after its upload had run ``` and, window by window, the queue: ``` textures picked by index, the queue: 11 300-13 500 slots, 60-370 of them due (the oldest written 4 900-11 000 frames ago) ``` 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:** | switch | effect on the artifact | |---|---| | `VICTORY_TEXTURE_KEEP_AWAY=1` (my patch: keep the slot when its page is away) | none; re-uploads 16.7 -> 41, frame slower | | `VICTORY_TEXTURE_WHOLE_ONLY=1` (my patch: skip partly-mapped textures) | none | | `VICTORY_TEXTURE_LATER_MAX=4` (retry sooner) | none; re-uploads x18 | | `VICTORY_PAGES=0` | none | | `VICTORY_LOW_MEMORY=0`, `VICTORY_SHADER_OPT=0xffffffff`, `VICTORY_PROCESS_PRIORITY=high` | none (they do fix `gpu_wait`, see #64) | **Two questions I cannot answer from outside.** 1. Is the level copy taken from memory the title is still writing? The `7 790 slots made from their new view after its upload had run` line 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. 2. When a page of a copied level is not mapped, does the copy keep the *old* content of that page while the rest updates? A per-page mix inside one level would explain both the blotchy road and the fully white/black character: the character's level is all pages, so if the source page is gone for all of them, the whole surface is stale. 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 16:08:33 +00:00
Author
Owner

@⁠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:

  • #47 (GPU-written levels kept from later uploads): makes characters' meshes tear here, reverted;
  • #31 (VICTORY_POOL_MOVE=1): no change to this;
  • #67 (BC7 dictionary indices): no visible change to this;
  • VICTORY_AMBIENT_REFLECT=0 and VICTORY_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 16:56 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/76#issuecomment-7318502012) 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:** - #47 (GPU-written levels kept from later uploads): makes characters' meshes tear here, reverted; - #31 (`VICTORY_POOL_MOVE=1`): no change to this; - #67 (BC7 dictionary indices): no visible change to this; - `VICTORY_AMBIENT_REFLECT=0` and `VICTORY_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.
Author
Owner

@⁠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 17:04 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/76#issuecomment-7318696699) 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.
Author
Owner

@⁠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):

slots shown after their texture's upload, since the start: 1 760 000,
  0.93 frames after they were asked for, the longest 25
  the neutral texture meanwhile in 1 321 380

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:

  1. Can a slot keep showing what it showed before instead of the neutral, at least when the previous content came from the same texture? A slightly stale level would be far less visible than a neutral hole at 40-70 ms a frame.
  2. Is the "0.93 frames" a deadline that could be tuned on slow cards (the upload lands at 25 frames in the worst case here), or does the slot go neutral regardless?

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-01 18:35 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/76#issuecomment-7321183849) 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): ``` slots shown after their texture's upload, since the start: 1 760 000, 0.93 frames after they were asked for, the longest 25 the neutral texture meanwhile in 1 321 380 ``` 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: 1. Can a slot keep showing *what it showed before* instead of the neutral, at least when the previous content came from the same texture? A slightly stale level would be far less visible than a neutral hole at 40-70 ms a frame. 2. Is the "0.93 frames" a deadline that could be tuned on slow cards (the upload lands at 25 frames in the worst case here), or does the slot go neutral regardless? 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.
Author
Owner

@⁠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), xmem d044248, Series S, 1920x1080
through 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=1 the log says ray-tracing node test … on=true,
the structure builder runs, and the picture does not improve; with 0, 1, or with
VICTORY_BVH_IN_PLACE=1 and VICTORY_BVH_BUILDER=1 the flicker is the same. A first flat-black
geometry case at HARDWARE=1 is already in #33.

Driver (Mesa/RADV), three separate workarounds. Each tested in isolation:

  • radv_wait_for_vm_map_updates=true for 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=2048 VRAM drops 7.7 → 4.4 GB
and frames go 17–19 → 22–33 fps, but surfaces stay black (the copy is refused, not evicted).
VICTORY_UM_CARD_MB 1024/4096/6144, VICTORY_PAGE_MOVE_MB=256 and VICTORY_PAGES_SEEN=1 do not
make 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_SHOWN from 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_lately from the keep condition,
and returning the old copy instead of None, changed nothing or made it fully black.

min LOD. from_base already shifts MostDetailedMip to the copy's base; the refusal in
resource.rs (h.base > base_level(...) → None) was replaced by showing that copy. No visible
change.

Barriers. The title sends no ResourceBarrier through the intercepted path in a normal
run (0 lines, 29 frames), so the console's compressed/expanded states never reach us.

What the counters say

neutral texture showings: 32 447 of 35 000 (92 %)
  new slot:                32 447   ← all of them
  dead old view:                0
  nothing can stand for it:     0
  another texture:              0
  moved/sized not kept:         0

XMemMapPhysicalPages: 128 183 calls over 132 s (971/s), 554 362 pages
  136.8 µs per call, 13.3 % of CPU, longest 121 ms
pages already bound where asked: 0 of 342 205 (0.0 %)

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 texcheck in 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.

**@⁠YaBulochka** on GitHub · 2026-12-02 15:47 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/76#issuecomment-7350929220) # 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), `xmem` `d044248`, Series S, 1920x1080 through 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=1` the log says `ray-tracing node test … on=true`, the structure builder runs, and the picture does not improve; with 0, 1, or with `VICTORY_BVH_IN_PLACE=1` and `VICTORY_BVH_BUILDER=1` the flicker is the same. A first flat-black geometry case at `HARDWARE=1` is already in #33. **Driver (Mesa/RADV), three separate workarounds.** Each tested in isolation: - `radv_wait_for_vm_map_updates=true` for 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=2048` VRAM drops 7.7 → 4.4 GB and frames go 17–19 → 22–33 fps, but surfaces stay black (the copy is refused, not evicted). `VICTORY_UM_CARD_MB` 1024/4096/6144, `VICTORY_PAGE_MOVE_MB=256` and `VICTORY_PAGES_SEEN=1` do not make 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_SHOWN` from 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_lately` from the keep condition, and returning the old copy instead of `None`, changed nothing or made it fully black. **min LOD.** `from_base` already shifts `MostDetailedMip` to the copy's `base`; the refusal in `resource.rs` (`h.base > base_level(...) → None`) was replaced by showing that copy. No visible change. **Barriers.** The title sends **no** `ResourceBarrier` through the intercepted path in a normal run (0 lines, 29 frames), so the console's compressed/expanded states never reach us. ## What the counters say ``` neutral texture showings: 32 447 of 35 000 (92 %) new slot: 32 447 ← all of them dead old view: 0 nothing can stand for it: 0 another texture: 0 moved/sized not kept: 0 XMemMapPhysicalPages: 128 183 calls over 132 s (971/s), 554 362 pages 136.8 µs per call, 13.3 % of CPU, longest 121 ms pages already bound where asked: 0 of 342 205 (0.0 %) ``` 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 `texcheck` in 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.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#76
No description provided.