Local lights and headlights stop working up close; the log shows the card reading zeros from memory outside unified memory #91
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#91
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 18:15 UTC · original
Local lights and headlights stop working up close, and the log shows the card reading zeros
Reported on the same 8 GB RDNA3 build as #76, because the cause looks like memory the layer cannot place rather than a light bug.
Symptom. Car headlights and the local lights around them stop contributing when you get close: at distance the headlight cone and its pool of light on the road are there, a few metres away they fade out and the road goes unlit. Same on foot near lamps. It is not the "dark interior" case (#61): the scene is lit, the local light simply stops.
What the log says. In one run, 34 title regions totalling 144 MB fell into the path for memory outside unified memory, and the largest of them is at address zero:
shadow::holesays what that means: the card is shown zeros there and whatever shaders store is lost on the next refresh. In the same window the title opens its lighting dataset (data/ttdb/lighting/lighting.ttpf).Why it fits. If the list of local lights, or the shadow mask the light pass reads, sits in one of those 4 MiB holes, the light pass reads zeros: no light. Up close it matters most, because that is where the light is resolved against the near shadow mask instead of the far one.
Not proven. That the hole at
0x0really is the light list: I cannot see which resource owns it from outside. What would settle it: a switch that names the resource behind a hole, or a run with the holes logged by their pipeline rather than by address. If you point me at one I will capture it on a lit street at night.Also known from another line: the same symptom is reported on btf (
linux-wine), so it is not specific to this tree's changes.No game files, screenshots or captures included.
@EdouardSence on GitHub · 2026-12-01 21:27 UTC · original
A data point on the hole at
0x0, which I think rules it out as the lost light list.It is not specific to 8 GB. It shows up in every run on an RX 9070 XT 16 GB (
37bb30f, Series X, RT on,run.shdefaults): 12-28outside unified memorylines per session. Thestart=0x0 len=4194304 window=truepair appears each time, already at the menu and in the loading screen, long before any lit street.The ask is a literal null address. I logged every by-address ask that lands in the
[0, 4 MiB)window (shadow::loose, a temporary probe):All 7 asks in a 6-minute run are
address=0x0, unsized (len <= 1), and come from the thin list threads (list::thin).window_ofrounds that up to the 4 MiB window, which is why the log readsstart=0x0 len=4194304and looks like a 4 MiB region. Nothing in the title lives at GPU address 0. So this is a null by-address reference, most likely a null root view or descriptor. Zeros are the right answer for that, and D3D12 gives the same for a null view.So the
0x0hole is probably benign noise. If headlights really read zeros, it would have to be through one of the other windows, the non-zeroa copy with two sides/ hole lines. A possible log improvement: report an unsized null ask separately (or not at all) instead of as a 4 MiB hole, so it stops looking like lost memory.(Probe build only. It changes no behaviour and is not suggested as a patch.)
@SpositoDouglas on GitHub · 2026-12-03 04:36 UTC · original
Same symptom here on an RX 9060 XT 16 GB (RDNA 4).
e92fd7a, Series X profileVICTORY_OUTPUT=1920x1080,VICTORY_FSR_4K=quality, RT on, page moving onSymptom: car headlights are lit at a distance and go out as you get close, both day and night.
Session: about 3 h of driving around the city and doing a few missions, with no crash.
The log has the same signature: 9
outside unified memorylines in the session, including thenull-window pair right after the world loads:
That makes three cards: RDNA 3 8 GB, RX 9070 XT, and now RX 9060 XT.
In the same session there was also shadow/lighting flicker, lights out of place and some untextured
objects (details in #239). Those may or may not share the cause.
Happy to capture a run with a probe build on a lit street at night.
@Squalthor on GitHub · 2026-12-05 05:48 UTC · original
Same
start=0x0 len=4194304 window=truelines here, and on this card they show up as groundtextures dropping to nothing for a moment and coming back.
Hardware and settings. RX 6700 XT (RDNA 2, 12 GB, reported card budget 10 372 MB, 9 427 MB in
use, 91 %), Ryzen 7 3700X, 64 GB, Arch Linux, Mesa 26.3.1, commit
b581f7e0, Series X profile,VICTORY_PRESET=medium, 1440p, no extra environment variables —run.confholds only GAME, CONSOLE,PRESET, NATIVE_INPUT, SKIP_INTRO.
What the log says. In one 57-minute session, 4 occurrences at 05:25, 05:38, 06:06 and 06:21 UTC:
What it looks like. A screenshot every 30 s for twelve minutes, then thirty more at the same
interval; the defect is confirmed on three of the ones I inspected, all showing the same thing. Two
of them, 30 s apart at the same spot, are the clearest: one moment the road surface is sharp —
asphalt grain and lane markings readable — and 30 s later the same close-range ground is a flat dark
area with no texture at all, while vehicles, buildings and vegetation stay sharp. The third one is
the same thing on foot: the sand under the player is a featureless dark patch while the mangroves,
water and debris around it are detailed.
The affected surface is always the closest ground, that is the one needing the highest-resolution
mip — the freshest block, so the one a reclaim pass can take.
Other lines in the same session, in case they belong to the same cause:
resource: a placed texture lies where a texture the host writes does, and is not like it (width, height, format of each): [4096, 2048, 98, 1920, 1088, 29], levels 10 and 1texture: HERO LEAD: a placed texture view lies in the memory of a texture the host copied into: it is filled from title memory, which the copy never reacheddraw: textures picked by index: the card has no room for more; they waitpipeline::make: not made: the driver's compiler crashed on it beforehost: texture blocks: 52 alive, 6 being emptied, 14 given back to the card since the startHow often, on this machine.
shown zerosper session: 1 on Dec 3 (three sessions), 2 on Dec 4morning, 1 on Dec 4 afternoon, 6 on Dec 4 evening, 4 in the session above. File size is no guide: one
of the three degraded captures is among the largest of the set, because the rest of the frame is
sharp.
A build with extra logging would be fine if it helps narrow which region at
0x0is not placed.AI-assisted — drafted with Hermes Agent (model deepseek-v4.1-flash); figures read from the raw game
log; reviewed by the reporter before posting.