Local lights and headlights stop working up close; the log shows the card reading zeros from memory outside unified memory #91

Open
opened 2026-12-01 18:20:03 +00:00 by github-bot · 3 comments
Owner

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

victory_gpu::shadow: a buffer outside unified memory: a copy with two sides start=0xca0900000 len=4194304
victory_gpu::shadow: title memory outside unified memory: the card is shown zeros there start=0x0 len=4194304 window=true
victory_gpu::shadow: shaders are given memory outside unified memory to write: what they write there does not reach title memory start=0x0 len=4194304

shadow::hole says 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 0x0 really 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.

**@⁠YaBulochka** on GitHub · 2026-12-01 18:15 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/91) # 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: ``` victory_gpu::shadow: a buffer outside unified memory: a copy with two sides start=0xca0900000 len=4194304 victory_gpu::shadow: title memory outside unified memory: the card is shown zeros there start=0x0 len=4194304 window=true victory_gpu::shadow: shaders are given memory outside unified memory to write: what they write there does not reach title memory start=0x0 len=4194304 ``` `shadow::hole` says 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 `0x0` really 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 18:20:04 +00:00
Author
Owner

@⁠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.sh defaults): 12-28 outside unified memory lines per session. The start=0x0 len=4194304 window=true pair 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):

HOLE0 probe: a by-address ask in the null window address=0x0 end=0x1 unsized_ask=true

All 7 asks in a 6-minute run are address=0x0, unsized (len <= 1), and come from the thin list threads (list::thin). window_of rounds that up to the 4 MiB window, which is why the log reads start=0x0 len=4194304 and 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 0x0 hole is probably benign noise. If headlights really read zeros, it would have to be through one of the other windows, the non-zero a 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.)

**@⁠EdouardSence** on GitHub · 2026-12-01 21:27 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/91#issuecomment-7326288827) 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.sh` defaults): 12-28 `outside unified memory` lines per session. The `start=0x0 len=4194304 window=true` pair 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): ``` HOLE0 probe: a by-address ask in the null window address=0x0 end=0x1 unsized_ask=true ``` All 7 asks in a 6-minute run are `address=0x0`, unsized (`len <= 1`), and come from the thin list threads (`list::thin`). `window_of` rounds that up to the 4 MiB window, which is why the log reads `start=0x0 len=4194304` and 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 `0x0` hole is probably benign noise. If headlights really read zeros, it would have to be through one of the other windows, the non-zero `a 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.)
Author
Owner

@⁠SpositoDouglas on GitHub · 2026-12-03 04:36 UTC · original

Same symptom here on an RX 9060 XT 16 GB (RDNA 4).

  • Ryzen 7 5800XT, 32 GB, Nobara 44, GE-Proton10-34
  • e92fd7a, Series X profile
  • VICTORY_OUTPUT=1920x1080, VICTORY_FSR_4K=quality, RT on, page moving on

Symptom: 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 memory lines in the session, including the
null-window pair right after the world loads:

INFO victory_gpu::shadow: a buffer outside unified memory: a copy with two sides start=0x13ad00000 len=4194304
WARN victory_gpu::shadow: title memory outside unified memory: the card is shown zeros there start=0x0 len=4194304 window=true
WARN victory_gpu::shadow: shaders are given memory outside unified memory to write: what they write there does not reach title memory start=0x0 len=4194304

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.

**@⁠SpositoDouglas** on GitHub · 2026-12-03 04:36 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/91#issuecomment-7367829828) Same symptom here on an **RX 9060 XT 16 GB (RDNA 4)**. - Ryzen 7 5800XT, 32 GB, Nobara 44, GE-Proton10-34 - `e92fd7a`, Series X profile - `VICTORY_OUTPUT=1920x1080`, `VICTORY_FSR_4K=quality`, RT on, page moving on **Symptom:** 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 memory` lines in the session, including the null-window pair right after the world loads: ``` INFO victory_gpu::shadow: a buffer outside unified memory: a copy with two sides start=0x13ad00000 len=4194304 WARN victory_gpu::shadow: title memory outside unified memory: the card is shown zeros there start=0x0 len=4194304 window=true WARN victory_gpu::shadow: shaders are given memory outside unified memory to write: what they write there does not reach title memory start=0x0 len=4194304 ``` 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.
Author
Owner

@⁠Squalthor on GitHub · 2026-12-05 05:48 UTC · original

Same start=0x0 len=4194304 window=true lines here, and on this card they show up as ground
textures 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.conf holds 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:

victory_gpu::shadow: title memory outside unified memory: the card is shown zeros there start=0x0 len=4194304 window=true

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:

  • 4 × 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 1
  • 1 × texture: 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 reached
  • 1 × draw: textures picked by index: the card has no room for more; they wait
  • 1 × pipeline::make: not made: the driver's compiler crashed on it before
  • 1 × host: texture blocks: 52 alive, 6 being emptied, 14 given back to the card since the start

How often, on this machine. shown zeros per session: 1 on Dec 3 (three sessions), 2 on Dec 4
morning, 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 0x0 is 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.

**@⁠Squalthor** on GitHub · 2026-12-05 05:48 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/91#issuecomment-7432896833) Same `start=0x0 len=4194304 window=true` lines here, and on this card they show up as **ground textures 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.conf` holds 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: ``` victory_gpu::shadow: title memory outside unified memory: the card is shown zeros there start=0x0 len=4194304 window=true ``` **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: - 4 × `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 1` - 1 × `texture: 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 reached` - 1 × `draw: textures picked by index: the card has no room for more; they wait` - 1 × `pipeline::make: not made: the driver's compiler crashed on it before` - 1 × `host: texture blocks: 52 alive, 6 being emptied, 14 given back to the card since the start` **How often, on this machine.** `shown zeros` per session: 1 on Dec 3 (three sessions), 2 on Dec 4 morning, 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 `0x0` is 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.*
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#91
No description provided.