RX 9070 XT (Fedora): neon green car paint, slow texture streaming, and two fixes that may be useful upstream #37
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#37
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?
@luk3h on GitHub · 2026-11-30 17:35 UTC · original
Thanks for xmem. On my machine it is the first VIctory build that keeps VRAM inside its budget. I get 25–34 fps at 1080p with RT on, against about 14 fps on a non-xmem fork.
System
env.sh)mainatcd811c1, plus the local commits listed belowVICTORY_OUTPUT=1920x1080and 2560x1440Issues
1. Car paint glows neon green. Parts of some cars (bonnet, side panels) glow bright green, mostly at dusk. Screenshots will follow in a comment.
2. Texture pop-in and long-blurry textures. This happens even at 1080p, where VRAM sits at 10–11.5 of 13.85 GB. The overlay's Tex queue stays at 100–370 due while driving. The log shows
textures picked by index: the card has no room for more; they waitonce, about 5 minutes in. At 1440p, VRAM reaches 12.45 of 13.58 GB and the queue reaches about 630.3. Lighting artefacts with RT on. Dark blocky patches and purple/blue smears appear on roads (toll plaza screenshot will follow). The default
VICTORY_AMBIENT_RTband (0.7, 1.5) is active.4. "Waves" coming off the player character while moving. They're hard to see in a still frame.
The log (
local/run/play-20261130-172454.log) will follow in a comment. Besides the warnings above, its only other warnings are the usual 29pipeline creation method that is not implementedlines.Local changes I tested with (patches will follow in a comment if useful)
I made these to fix problems I saw first. Two of them might be worth having upstream.
nir_lower_memory_model:image_heap_*andbindless_image_*accesses getnir_var_imagemodes, so loads after a barrier are madeACCESS_COHERENT. Without it, cutscene faces were wrong on RADV. The fork I had used before fixed it by running vkd3d-proton withoutVK_EXT_descriptor_heap, but xmem can't do that: without descriptor heaps vkd3d-proton fails withno view heap of 2097152 views. Faces are better with this patch, though not perfect.877978e1.unmakeand the waiting path ofdescriptor/host.rs, asmakealready does. A null view decodes as green in YCoCg/BC5 textures, and trees flashed green while they streamed in.DisableHidraw=1in the prefix so a DualSense shows up as an XInput pad.I haven't checked whether issues 1–4 also happen on plain
cd811c1. I can do that if it helps.@Anzymanz on GitHub · 2026-12-02 09:11 UTC · original
Written with Claude Code.
On item 2, one data point from the same card (RX 9070 XT 16 GB, Mesa 26.3.1 + this repo's patch, GE-Proton, 1440p render, RT off), on a tree branched from xmem around 29 Nov, where
VICTORY_TEXTURE_ROOM_PERCENTwas the only limit (90 by default then). At 90 the room limit held back new textures about 2,000 times a second in heavy play while the kernel evicted nothing; at 97 none were held back, nothing was evicted, and we could not resolve any frame cost. We have run 97 since.Current main has a second limit,
VICTORY_TEXTURE_ROOM_CAP_PERCENT(92 unless set), which counts all card memory in use; we have not tested that one, and its comment warns that too high stalls frames. So the thing to try isVICTORY_TEXTURE_ROOM_PERCENT=97first, then the cap a few points up, watching the "they wait" line and the Tex queue.@Coldtrain on GitHub · 2026-12-03 07:39 UTC · original
hahah i found the VICTORY_TEXTURE_ROOM_PERCENT resolve a few days ago too, 97 set for me as well. reduced black faces, but their is still most likely further work to be done removing stale textures rather then just queueing or stopping texture admission altogether based on ram usage....
Also this tree issue, were they very bright? I am trying to resolve a similar issue where trees further away display bright neon green low poly, when getting closer they dissapear, when close enough render correctly.
@maple-quartz18 on GitHub · 2026-12-03 17:41 UTC · original
also meet pipeline creation method that is not implemented
@t-jonesy on GitHub · 2026-12-05 14:19 UTC · original
Data from another RX 9070 XT (game 1.0.2.1, Series X, 4K output with FSR 4 Performance, ray tracing on), on the
downtownroute of #554 at noon, with a fork build whoseunmakeandnull_forpaths are still main's (no #557). We see the flashing lime canopies too, and the mechanism matches what #557 describes. Here is what our counters and screenshots show, and what we have tried.What it looks like.
What the counters show at those moments. Per 5 s, all through the drive and in every run:
HostHeap::unmakeas stale (a newer view of their memory);null_for).No spike lines up with the shots; it is a steady background. We have no per-slot count of how long a stale-unmade slot stays null; the one-frame duration comes from the video. Our reading: a tree LOD swap binds such a slot in the frame before it is made again, reads zeros, and the foliage shader's own channel unpacking turns (0,0,0,0) into this lime.
Ruled out for these canopies:
What we tried (fork builds):
Result so far: inconclusive. In a live A/B/A session (20 shots per 60 s phase), the share of shots with more than 300 lime pixels was:
But our pixel rule also matches sunlit foliage at noon, so these counts don't separate the bug from real green leaves. We need to look at the flagged shots by eye before saying more.
The other green from this issue, a whole tree at medium distance staying lime until you get close, is a different path. deebsy's #557 comments describe it: a partly arrived copy exposes levels whose pages are not there yet. We have not looked at that one.
@t-jonesy on GitHub · 2026-12-05 16:03 UTC · original
Correction to my comment above: the null-slot explanation was wrong, at least for our fork.
We tested it live today with a person driving past the same trees (RX 9070 XT, downtown at noon, switching settings in-game about once a minute):
So on our fork the lime came from our own keep-old change, which also kept views of another texture. Most likely a green-looking normal map was shown in a leaf albedo slot for a frame or two. Our channel-class check let it through because the formats looked compatible. Main's rule after #503 doesn't do this. That is the same point as my comment on #503.
So this doesn't explain the specks seen on stock main (#591). Those must have another cause. Sorry for the noise.
@t-jonesy on GitHub · 2026-12-05 16:11 UTC · original
Follow-up: the keep-old result in my last comment didn't hold up either. We relaunched with main's keep-old rule from the start, confirmed in the process environment. The lime canopies still appear. Our counters show no other-texture views kept at all in that mode. Adding the neutral stand-in and the stale-view keep on top changed nothing.
So the earlier "lime gone, then back" was most likely chance: it's an intermittent one-frame effect, and one-minute phases are too short to judge by eye. On our fork the cause is still unknown. We've now ruled out stale or null 2D slots and keep-old views of another texture. Next we'll capture frames when it happens, rather than flipping switches. Apologies for the two wrong leads.