RX 9070 XT (RDNA4): the ray-tracing builder runs here; unbacked title pages then cost either the device, or 86 GB/frame of refresh #543

Open
opened 2026-11-26 03:45:54 +00:00 by github-bot · 6 comments
Owner

@⁠0xmp3 on GitHub · 2026-11-25 02:04 UTC · original

RX 9070 XT (RDNA4): the ray-tracing builder runs here; unbacked title pages then cost either the device, or 86 GB/frame of refresh

Setup

Windows 11 build 26300, RX 9070 XT (RDNA4, gfx1201), Adrenalin 32.0.32015.7029, Ryzen 5 5600, 32 GB. Title 1.0.2.1, Series X profile, diag build, c96b4f2.

Switches: VICTORY_SHADER_OPT=59 VICTORY_SHADER_LOOP_LIMIT=256 VICTORY_RELAY=2 VICTORY_D3D12_DRED=1.

Without VICTORY_SHADER_OPT=59 this machine dies in amdxc64.dll+0x85fd0f — that is #422, and 59 clears it on this driver too. Everything below is with 59.

What works

Second run on the same shader cache reaches the prologue. The 3D scene renders (dark, as expected with the builder off), credits and subtitles composite correctly, and about 14 minutes of walking around the prison starting area at 1–2 fps was possible. Warm in-world frames: 1,031–4,862 draws/frame, 499–788 ms/frame.

1. The ray-tracing builder runs on this card

docs/fork-ray-tracing.md lists as a known gap that the builder "still stays off in a real run: a few of its pipelines are refused by the host (they still ask for 64-lane waves on a 32-lane GPU) or do not translate". With VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1 here:

victory_gpu::pipeline: the ray-tracing structure builder runs: all of its programs have host pipelines

So on RDNA4 the 64-lane request is not a refusal, and all of the builder's programs got host pipelines. That may be worth knowing before anyone spends time on a 32-lane workaround.

2. Unbacked title pages are what removes the device

With the builder off, every warm frame attributed its drops:

dropped 424.0/frame  a stage of the ray-tracing structure builder, which is off
dropped 235.3/frame  being made
dropped  42.0/frame  compute b22a16a178976e1b

...and the run ended with:

host GPU device removed after 1 submissions sent ahead (VICTORY_RELAY=1) of 6 lists;
page fault at 0x2a0b000; no title memory copy below it;
the nearest above: 0xd5e626f90+0x1e8 at host 0x201f0...

DRED printed that frame's bindings as well, including u5=0x1f071a0 [heap 1016717: Placed(false, …)] and two UAVs on s0.

The builder builds the structures the traversal programs read. With its stages off, those pages are never written and never get host copies, while traversal is still translated, bound and dispatched — so a traversal read lands in title memory with no copy behind it. The DRED line is exactly that.

With the builder on, the same accesses are caught instead of faulting:

victory_gpu::memory: title memory by address: shaders touched pages that had no copy
    (those accesses read 0 or were dropped); the copies are made now
    pages=962 first=0xebf170000

No device removal in that run. So the fork's diagnostic path catches these, and the fault above is the path where the access reaches the GPU first.

3. The cost of making those copies is the new wall

With the builder running, per-frame refresh volume:

time refreshes/frame
02:02:30 43,707 MB
02:02:37 78,408 MB
02:02:44 86,959 MB

86 GB per frame of texture refresh, 24.4 GB resident, 0 fps at 3,752 ms/frame (4,805 draws/frame). Earlier, builder-off runs showed the same trend more slowly — 7,728 → 10,125 → 15,637 MB — and the same regions copied repeatedly (0x1002ba0000+0x1518000: 2.9×/frame, 0xdb6e90000+0xa7df00: 4.1×/frame), with 636 ms of one frame spent "waiting for title memory to hold still (the runtime remapping it)" over 253 hash passes and 1,144 pieces. VRAM sat at 14.7 of 16.0 GB.

So: every builder write invalidates host copies, and the refresh path re-uploads the world. Avoiding the fault this way moves the wall to bandwidth and VRAM rather than removing it.

4. One named translation gap, for completeness

compute b22a16a178976e1b (compute_graph_ops:CS_TransposeVecMatMulAlignedOperation) is refused with a wave sum of 16-bit floats where not every lane runs, dropping 42 draws/frame in the world. Everything else I looked at translates — 0 refused programs in the world runs themselves.

Not tested

VICTORY_BVH_BUILDER=1 without the quarantine; a longer builder-on run to see whether it ends in the same place; the newer commits after c96b4f2; VICTORY_INPLACE.

No game data: driver build, the module offset from #422, page addresses as the log prints them, program hashes, counts and timings. No screenshots attached. AI-assisted (Hermes Agent).

**@⁠0xmp3** on GitHub · 2026-11-25 02:04 UTC · [original](https://github.com/fxceless/victory-fork/issues/543) RX 9070 XT (RDNA4): the ray-tracing builder runs here; unbacked title pages then cost either the device, or 86 GB/frame of refresh ## Setup Windows 11 build 26300, RX 9070 XT (RDNA4, gfx1201), **Adrenalin 32.0.32015.7029**, Ryzen 5 5600, 32 GB. Title 1.0.2.1, Series X profile, diag build, `c96b4f2`. Switches: `VICTORY_SHADER_OPT=59 VICTORY_SHADER_LOOP_LIMIT=256 VICTORY_RELAY=2 VICTORY_D3D12_DRED=1`. Without `VICTORY_SHADER_OPT=59` this machine dies in `amdxc64.dll+0x85fd0f` — that is #422, and 59 clears it on this driver too. Everything below is with 59. ## What works Second run on the same shader cache reaches the prologue. The 3D scene renders (dark, as expected with the builder off), credits and subtitles composite correctly, and about 14 minutes of walking around the prison starting area at 1–2 fps was possible. Warm in-world frames: 1,031–4,862 draws/frame, 499–788 ms/frame. ## 1. The ray-tracing builder runs on this card `docs/fork-ray-tracing.md` lists as a known gap that the builder "still stays off in a real run: a few of its pipelines are refused by the host (they still ask for 64-lane waves on a 32-lane GPU) or do not translate". With `VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1` here: ``` victory_gpu::pipeline: the ray-tracing structure builder runs: all of its programs have host pipelines ``` So on RDNA4 the 64-lane request is not a refusal, and all of the builder's programs got host pipelines. That may be worth knowing before anyone spends time on a 32-lane workaround. ## 2. Unbacked title pages are what removes the device With the builder off, every warm frame attributed its drops: ``` dropped 424.0/frame a stage of the ray-tracing structure builder, which is off dropped 235.3/frame being made dropped 42.0/frame compute b22a16a178976e1b ``` ...and the run ended with: ``` host GPU device removed after 1 submissions sent ahead (VICTORY_RELAY=1) of 6 lists; page fault at 0x2a0b000; no title memory copy below it; the nearest above: 0xd5e626f90+0x1e8 at host 0x201f0... ``` DRED printed that frame's bindings as well, including `u5=0x1f071a0 [heap 1016717: Placed(false, …)]` and two UAVs on `s0`. The builder builds the structures the traversal programs read. With its stages off, those pages are never written and never get host copies, while traversal is still translated, bound and dispatched — so a traversal read lands in title memory with no copy behind it. The DRED line is exactly that. With the builder on, the same accesses are caught instead of faulting: ``` victory_gpu::memory: title memory by address: shaders touched pages that had no copy (those accesses read 0 or were dropped); the copies are made now pages=962 first=0xebf170000 ``` No device removal in that run. So the fork's diagnostic path catches these, and the fault above is the path where the access reaches the GPU first. ## 3. The cost of making those copies is the new wall With the builder running, per-frame refresh volume: | time | refreshes/frame | |---|---| | 02:02:30 | 43,707 MB | | 02:02:37 | 78,408 MB | | 02:02:44 | 86,959 MB | 86 GB per frame of texture refresh, 24.4 GB resident, 0 fps at 3,752 ms/frame (4,805 draws/frame). Earlier, builder-off runs showed the same trend more slowly — 7,728 → 10,125 → 15,637 MB — and the same regions copied repeatedly (`0x1002ba0000+0x1518000: 2.9×/frame`, `0xdb6e90000+0xa7df00: 4.1×/frame`), with 636 ms of one frame spent "waiting for title memory to hold still (the runtime remapping it)" over 253 hash passes and 1,144 pieces. VRAM sat at 14.7 of 16.0 GB. So: every builder write invalidates host copies, and the refresh path re-uploads the world. Avoiding the fault this way moves the wall to bandwidth and VRAM rather than removing it. ## 4. One named translation gap, for completeness `compute b22a16a178976e1b` (`compute_graph_ops:CS_TransposeVecMatMulAlignedOperation`) is refused with `a wave sum of 16-bit floats where not every lane runs`, dropping 42 draws/frame in the world. Everything else I looked at translates — 0 refused programs in the world runs themselves. ## Not tested `VICTORY_BVH_BUILDER=1` without the quarantine; a longer builder-on run to see whether it ends in the same place; the newer commits after `c96b4f2`; `VICTORY_INPLACE`. No game data: driver build, the module offset from #422, page addresses as the log prints them, program hashes, counts and timings. No screenshots attached. AI-assisted (Hermes Agent).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:45:54 +00:00
Author
Owner

@⁠0xmp3 on GitHub · 2026-11-25 02:07 UTC · original

A follow-up on what the builder-on run actually looks like, because it changes how this issue should be read: it is not only fault-free, it is the correct-looking picture.

Same machine and switches as above, plus VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1. Builder on, warm cache, 5,068 draws/frame, 0 fps at 2,948–3,750 ms/frame:

  • Warm interior in shadow, with the sun through a doorway blowing out to white and falling off correctly into the room
  • Materials reading properly: fabric, wood, metal, a glass door with reflection
  • Scene content that only exists if geometry and lighting are right: characters seated in the yard at tables, lawn chairs, a chain-link fence, a tower with crossed struts, palms
  • A pinboard of polaroids and taped notes with legible hand-drawn content
  • Bloom and glare around the light source, with the shadowed side of the frame still dark rather than lifted

Builder off, the same scene is flat and washed out — no falloff, no indirect, nothing reading as material. So the tradeoff is not "correct but slow" versus "wrong but fast": builder on is the target state, and the only thing standing in the way is the refresh volume in section 3 (43,707 → 86,959 MB/frame). In other words the fix is to make the refresh cheaper, not to keep the builder off.

Not verified against a console reference — I cannot compare with the real thing, only say that the image is coherent, coloured and lit, and that elements which depend on the structures exist in it (the yard population and the shading both do).

No screenshots attached (asset policy); this is a description only. AI-assisted (Hermes Agent).

**@⁠0xmp3** on GitHub · 2026-11-25 02:07 UTC · [original](https://github.com/fxceless/victory-fork/issues/543#issuecomment-7150353431) A follow-up on what the builder-on run actually looks like, because it changes how this issue should be read: **it is not only fault-free, it is the correct-looking picture.** Same machine and switches as above, plus `VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1`. Builder on, warm cache, 5,068 draws/frame, 0 fps at 2,948–3,750 ms/frame: - Warm interior in shadow, with the sun through a doorway blowing out to white and falling off correctly into the room - Materials reading properly: fabric, wood, metal, a glass door with reflection - Scene content that only exists if geometry and lighting are right: characters seated in the yard at tables, lawn chairs, a chain-link fence, a tower with crossed struts, palms - A pinboard of polaroids and taped notes with legible hand-drawn content - Bloom and glare around the light source, with the shadowed side of the frame still dark rather than lifted Builder off, the same scene is flat and washed out — no falloff, no indirect, nothing reading as material. So the tradeoff is not "correct but slow" versus "wrong but fast": **builder on is the target state, and the only thing standing in the way is the refresh volume in section 3** (43,707 → 86,959 MB/frame). In other words the fix is to make the refresh cheaper, not to keep the builder off. Not verified against a console reference — I cannot compare with the real thing, only say that the image is coherent, coloured and lit, and that elements which depend on the structures exist in it (the yard population and the shading both do). No screenshots attached (asset policy); this is a description only. AI-assisted (Hermes Agent).
Author
Owner

@⁠0xmp3 on GitHub · 2026-11-25 03:36 UTC · original

Correction to the refresh figures above, from #591: the per-frame refresh volume I quoted (43,707 → 86,959 MB, and 55,008 MB in later runs) is the sum of requests before batching, so it overstates physical copies. Treat it as an upper bound on traffic, not as bytes moved. The trend across a run — climbing, then holding — still stands, and so does the VRAM observation (14.7 of 16.0 GB), but I should not have implied those numbers were raw PCIe volume. Thanks to DoubleD17 for the correction and for the disjoint-range fix.

Two related updates while I am here:

  • #607 (orazal12) targets exactly the per-access overhead this issue ran into on the builder/traversal path — the fault-slot modulo and UAV writes on every title-memory access, and the second BVH directory lookup for non-straddling nodes. I verified its test suite (216 passed, 0 failed) and that it boots to the world here with no device removal, though frame-time A/B cannot resolve an effect that small (details in that PR's thread).
  • I have not re-tested whether the on-demand copy path ("the copies are made now, pages=962") still faults under load since then; that is on my list.

No game data; numbers from VIctory's own log. AI-assisted (Hermes Agent).

**@⁠0xmp3** on GitHub · 2026-11-25 03:36 UTC · [original](https://github.com/fxceless/victory-fork/issues/543#issuecomment-7152072112) Correction to the refresh figures above, from #591: the per-frame refresh volume I quoted (43,707 → 86,959 MB, and 55,008 MB in later runs) is the sum of requests **before batching**, so it overstates physical copies. Treat it as an upper bound on traffic, not as bytes moved. The trend across a run — climbing, then holding — still stands, and so does the VRAM observation (14.7 of 16.0 GB), but I should not have implied those numbers were raw PCIe volume. Thanks to DoubleD17 for the correction and for the disjoint-range fix. Two related updates while I am here: - **#607** (orazal12) targets exactly the per-access overhead this issue ran into on the builder/traversal path — the fault-slot modulo and UAV writes on every title-memory access, and the second BVH directory lookup for non-straddling nodes. I verified its test suite (216 passed, 0 failed) and that it boots to the world here with no device removal, though frame-time A/B cannot resolve an effect that small (details in that PR's thread). - I have not re-tested whether the on-demand copy path ("the copies are made now, pages=962") still faults under load since then; that is on my list. No game data; numbers from VIctory's own log. AI-assisted (Hermes Agent).
Author
Owner

@⁠nuiiv on GitHub · 2026-11-25 09:42 UTC · original

A data point from RDNA 2 on a small machine: the builder runs natively here as well, but on 16 GB of system memory the run ends about 10 s into the world, when memory shared with the card runs out.

Setup

  • AMD Radeon RX 6650 XT 8 GB (RDNA 2), driver 32.0.21045.29003; Ryzen 5 7500F; 16 GB RAM; Windows 11 Pro 26300. Own 1.0.2.1, Series X profile, release build.
  • Build: main 9376fd6 + #150 + #112 + #25 + #156, plus one local change that is not in any PR (a longer texture budget for the decoration bake before the first world frame only). Fresh shader cache.
  • Switches: VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1 VICTORY_LEVELS_ON_DEMAND=1, everything else default.

Offline on this card (translate --pipelines, no host-wave override):

  • All 52 structure-builder programs: host pipelines made.
  • sr_tracing:CS_Tiling_Generate_Opaque (2cc4c197ee29e291), which 32-lane hosts refuse (#512): pipeline made. So are all 112 sr_tracing / sr_denoising programs.
  • With #156: 4 of the 5 shadowmask:CS_TraceShadowRays_* programs translate, validate and make pipelines; _FullAdaptive still stops ("a lane mask holding lanes elsewhere read as data"), as #156 says.

In the title, one run:

  • At world entry: the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53.
  • 12 s later: title memory by address: shaders touched pages that had no copy ... pages=1078 first=0x10000.
  • 2 s later: title memory by address: no number left for another copy; its pages read zeros COPIES=1023.
  • Then 1,811 × no shared buffer ... (0x8007000E) size=4194304 and 78 × no upload buffer ... (0x8007000E), with the PC's memory shared with the card at 5,674 of 7,338 MB at the last memory line.
  • The run ended with host GPU failure: no memory to fetch what shaders wrote to the card's memory (6356992 bytes, VICTORY_RELAY=1). No device removal, no exception in the title.
  • About 10 s of world frames, so no frame-time figures and no look at the lighting.

For comparison, the same build without #156 and with the builder off ran a whole session in the world with no failure: 2.7–3.2 fps, 97 card copies of title buffers (941 MB).

So on this machine the limit came at two points close together: the 1,023 numbered copies for title memory by address, and the shared-memory budget (about half of 16 GB). With 32 GB and 16 GB of VRAM the run above got further. I have not tested whether a larger copy count alone would get past the first, or what memory the run would need.

Not tested: a second run; a builder-on run without #156; a diagnostics build.

AI use: Claude Code (Claude Opus 5.5) set up the build, ran it on my machine, read the logs and wrote this comment.

**@⁠nuiiv** on GitHub · 2026-11-25 09:42 UTC · [original](https://github.com/fxceless/victory-fork/issues/543#issuecomment-7158696538) A data point from **RDNA 2 on a small machine**: the builder runs natively here as well, but on 16 GB of system memory the run ends about 10 s into the world, when memory shared with the card runs out. **Setup** - AMD Radeon RX 6650 XT 8 GB (RDNA 2), driver 32.0.21045.29003; Ryzen 5 7500F; **16 GB RAM**; Windows 11 Pro 26300. Own 1.0.2.1, Series X profile, release build. - Build: `main` `9376fd6` + #150 + #112 + #25 + #156, plus one local change that is not in any PR (a longer texture budget for the decoration bake before the first world frame only). Fresh shader cache. - Switches: `VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1 VICTORY_LEVELS_ON_DEMAND=1`, everything else default. **Offline on this card** (`translate --pipelines`, no host-wave override): - All 52 structure-builder programs: host pipelines made. - `sr_tracing:CS_Tiling_Generate_Opaque` (`2cc4c197ee29e291`), which 32-lane hosts refuse (#512): pipeline made. So are all 112 `sr_tracing` / `sr_denoising` programs. - With #156: 4 of the 5 `shadowmask:CS_TraceShadowRays_*` programs translate, validate and make pipelines; `_FullAdaptive` still stops ("a lane mask holding lanes elsewhere read as data"), as #156 says. **In the title, one run:** - At world entry: `the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53`. - 12 s later: `title memory by address: shaders touched pages that had no copy ... pages=1078 first=0x10000`. - 2 s later: `title memory by address: no number left for another copy; its pages read zeros COPIES=1023`. - Then 1,811 × `no shared buffer ... (0x8007000E) size=4194304` and 78 × `no upload buffer ... (0x8007000E)`, with the PC's memory shared with the card at **5,674 of 7,338 MB** at the last memory line. - The run ended with `host GPU failure: no memory to fetch what shaders wrote to the card's memory (6356992 bytes, VICTORY_RELAY=1)`. No device removal, no exception in the title. - About 10 s of world frames, so no frame-time figures and no look at the lighting. **For comparison**, the same build without #156 and with the builder off ran a whole session in the world with no failure: 2.7–3.2 fps, 97 card copies of title buffers (941 MB). So on this machine the limit came at two points close together: the 1,023 numbered copies for title memory by address, and the shared-memory budget (about half of 16 GB). With 32 GB and 16 GB of VRAM the run above got further. I have not tested whether a larger copy count alone would get past the first, or what memory the run would need. **Not tested:** a second run; a builder-on run without #156; a diagnostics build. AI use: Claude Code (Claude Opus 5.5) set up the build, ran it on my machine, read the logs and wrote this comment.
Author
Owner

@⁠0xmp3 on GitHub · 2026-11-25 10:35 UTC · original

Fault rate and a new fault shape on 9376fd6 (RDNA4, RX 9070 XT)

Machine unchanged from the first post: RX 9070 XT (gfx1201), driver 32.0.32015.7029, Ryzen 5 5600, Windows 11 26300, game on D:\GTA6.

Build and switches for every run below: cargo build --profile diag -p victory --features diagnostics, then

VICTORY_SHADER_OPT=59 VICTORY_SHADER_LOOP_LIMIT=256 VICTORY_RELAY=2 \
VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1 VICTORY_D3D12_DRED=1

VICTORY_KEYS=25:Enter,40:Enter,... drives the boot and menus; the window is left alone after that, so every run sits at the same first-world-frame view. VICTORY_INPLACE was 1 except where noted. Runs are capped at 6 minutes by the harness, so "survived" means "still drawing at the cap", not "stable".

What happened

build runs outcome duration peak draws/frame
c96b4f2 1 survived to cap 8:17 5,901
c96b4f2 2 survived to cap 6:08 5,829
c96b4f2 3 title-side AV, read 0xffffffffffffffff 1:49 2,827
8dd30ab 1 title-side AV, read 0xffffffffffffffff 1:49 8,472
a26859f 1 device removed, fault 0x2c76000 2:38 3,615
9376fd6 1 (cold) device removed, fault 0x3bf7000 2:58 5,010
9376fd6 2 (warm) device removed, fault 0x3d5d000 3:03 4,122
9376fd6 3 (INPLACE=0) device removed, fault 0x500002fe5000 3:41 3,082
9376fd6 4 (VIEW_GUARD=0) title-side AV in VCRUNTIME140+0x1bc5b 2:01 1,256

So: 3 of 3 runs on 9376fd6 with the view guard at its default ended in a host device removal at 2:58–3:41, at 3,082–5,010 draws. 2 of 3 runs on c96b4f2 ran the full cap (6:08 and 8:17) at 5,829–5,901 draws, and its one failure was the title-side fault, not a device removal.

I am not claiming a clean regression: with 3 runs against 3 runs and a failure that is clearly stochastic on this card, that is a rate observation, not a bisect. What I think is solid is the shape of the new failures.

The shape that is new to me

Three of the four 9376fd6 deaths read an address that is backed by nothing, and they are not all the same kind of nothing.

Unbacked title page (runs 1 and 2, and a26859f):

host GPU device removed after 5 submissions sent ahead (VICTORY_RELAY=1) of 22 lists;
page fault at 0x3d5d000; no title memory copy below it; the nearest above:
0xb49c00000+0x400000 at host 0x23ad80000 (5267 copies in all); view heap 0x100494000+0x4000000: 0xfc737000 below

A wild descriptor address (run 3):

host GPU device removed after 1 submissions sent ahead (VICTORY_RELAY=1) of 10 lists;
page fault at 0x500002fe5000; the nearest title memory copy below it: 0x796000000+0x400000
at host 0x789280000, offset 0x4ff879d65000; view heap 0x1040a0000+0x4000000: 0x4ffefaf45000
past its end (slot 2748644303488); sampler heap 0x100494000+0x800: 0x4fff02b50800 past its end

That second one I have never seen on this card before: the read is ~0x4ff8_79d6_5000 above everything the runner knows, i.e. not a page that lost its copy, but a descriptor whose contents are wrong. It points at the record-mirroring / draw-table slot work in a26859f and 9376fd6 rather than at the page-copy path.

What the breadcrumbs say

With VICTORY_D3D12_DRED=1, the last recorded activity before the run-2 removal is a sweep handing copies back:

51.1 ms before, thread 2488: sweep: 17 host copies of windows of title memory let go (69632 KiB),
                              held by no list and no slot
37.2 ms before, thread 2488: sweep: 17 host copies of textures the title fills let go (2816 KiB),
                              each held by its title texture alone (no list, no slot)

A copy released as "held by no list and no slot" 51 ms before a shader read faults on memory that has no copy is the thing I would look at first. If a list that is still in flight (5 were sent ahead) can read a copy the sweep has just judged unheld, both of the shapes above follow: the read is unbacked, and under a26859f's mirroring a descriptor can be mirrored from a copy that has since gone. But DRED only keeps recent activity, so I can't show the copy the read wanted being the one that was let go — treat this as where I'd start, not as a diagnosis.

Switches that did not help

  • VICTORY_INPLACE=0: same device removal (though the fault shape changed to the wild descriptor).
  • VICTORY_VIEW_GUARD=0 (turning off the per-page guard over every view from 8dd30ab): no rescue. It ended in the title-side 0xc0000005 ... read 0xffffffffffffffff at 2:01 instead.

What I could not measure, which is the part that matters to me

The four commits at 9376fd6 are exactly the processor-side work I pulled them for, and I still cannot say whether they help: 9376fd6 never reached the draw counts where the old numbers were taken (3,082–5,010 against 5,829–5,901), because it dies first. On c96b4f2 the clean runs sit at 1,947–2,166 ms/frame with 711–1,000 ms on the GPU, and both its texture lane and its copy-back lane settle once streaming finishes (texture refreshes fall to 3–7 ms/frame). So the frame-time question is still open on this card.

Not tested

  • Bisecting 310c6eb / 8dd30ab / a26859f / 9376fd6 individually; only the range as a whole was run.
  • More than one run per intermediate commit — the intermediate results are single runs.
  • VICTORY_STALE_TEXTURES=0, VICTORY_REUPLOAD_WHEN_FULL=0, VICTORY_CARD_ROOM_FOR_BUFFERS=0 (the other new defaults) — these are the next three runs I'd make if anyone wants the rate narrowed.
  • A second session on 9376fd6 from a cold shader cache was run once only.

No game data. Numbers from VIctory's own log. Logs kept local; happy to paste any specific line.

AI-assisted (Hermes Agent).

**@⁠0xmp3** on GitHub · 2026-11-25 10:35 UTC · [original](https://github.com/fxceless/victory-fork/issues/543#issuecomment-7159902611) # Fault rate and a new fault shape on 9376fd6 (RDNA4, RX 9070 XT) Machine unchanged from the first post: **RX 9070 XT (gfx1201), driver 32.0.32015.7029, Ryzen 5 5600, Windows 11 26300**, game on `D:\GTA6`. Build and switches for every run below: `cargo build --profile diag -p victory --features diagnostics`, then ``` VICTORY_SHADER_OPT=59 VICTORY_SHADER_LOOP_LIMIT=256 VICTORY_RELAY=2 \ VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1 VICTORY_D3D12_DRED=1 ``` `VICTORY_KEYS=25:Enter,40:Enter,...` drives the boot and menus; the window is left alone after that, so every run sits at the same first-world-frame view. `VICTORY_INPLACE` was 1 except where noted. Runs are capped at 6 minutes by the harness, so "survived" means "still drawing at the cap", not "stable". ## What happened | build | runs | outcome | duration | peak draws/frame | |---|---|---|---|---| | `c96b4f2` | 1 | survived to cap | 8:17 | 5,901 | | `c96b4f2` | 2 | survived to cap | 6:08 | 5,829 | | `c96b4f2` | 3 | title-side AV, read `0xffffffffffffffff` | 1:49 | 2,827 | | `8dd30ab` | 1 | title-side AV, read `0xffffffffffffffff` | 1:49 | 8,472 | | `a26859f` | 1 | device removed, fault `0x2c76000` | 2:38 | 3,615 | | `9376fd6` | 1 (cold) | device removed, fault `0x3bf7000` | 2:58 | 5,010 | | `9376fd6` | 2 (warm) | device removed, fault `0x3d5d000` | 3:03 | 4,122 | | `9376fd6` | 3 (`INPLACE=0`) | device removed, fault `0x500002fe5000` | 3:41 | 3,082 | | `9376fd6` | 4 (`VIEW_GUARD=0`) | title-side AV in `VCRUNTIME140+0x1bc5b` | 2:01 | 1,256 | So: **3 of 3 runs on `9376fd6` with the view guard at its default ended in a host device removal** at 2:58–3:41, at 3,082–5,010 draws. **2 of 3 runs on `c96b4f2` ran the full cap** (6:08 and 8:17) at 5,829–5,901 draws, and its one failure was the title-side fault, not a device removal. I am not claiming a clean regression: with 3 runs against 3 runs and a failure that is clearly stochastic on this card, that is a rate observation, not a bisect. What I think is solid is the *shape* of the new failures. ## The shape that is new to me Three of the four `9376fd6` deaths read an address that is backed by nothing, and they are not all the same kind of nothing. **Unbacked title page (runs 1 and 2, and `a26859f`):** ``` host GPU device removed after 5 submissions sent ahead (VICTORY_RELAY=1) of 22 lists; page fault at 0x3d5d000; no title memory copy below it; the nearest above: 0xb49c00000+0x400000 at host 0x23ad80000 (5267 copies in all); view heap 0x100494000+0x4000000: 0xfc737000 below ``` **A wild descriptor address (run 3):** ``` host GPU device removed after 1 submissions sent ahead (VICTORY_RELAY=1) of 10 lists; page fault at 0x500002fe5000; the nearest title memory copy below it: 0x796000000+0x400000 at host 0x789280000, offset 0x4ff879d65000; view heap 0x1040a0000+0x4000000: 0x4ffefaf45000 past its end (slot 2748644303488); sampler heap 0x100494000+0x800: 0x4fff02b50800 past its end ``` That second one I have never seen on this card before: the read is ~0x4ff8_79d6_5000 above everything the runner knows, i.e. not a page that lost its copy, but a descriptor whose *contents* are wrong. It points at the record-mirroring / draw-table slot work in `a26859f` and `9376fd6` rather than at the page-copy path. ## What the breadcrumbs say With `VICTORY_D3D12_DRED=1`, the last recorded activity before the run-2 removal is a sweep handing copies back: ``` 51.1 ms before, thread 2488: sweep: 17 host copies of windows of title memory let go (69632 KiB), held by no list and no slot 37.2 ms before, thread 2488: sweep: 17 host copies of textures the title fills let go (2816 KiB), each held by its title texture alone (no list, no slot) ``` A copy released as "held by no list and no slot" 51 ms before a shader read faults on memory that has no copy is the thing I would look at first. If a list that is still in flight (5 were sent ahead) can read a copy the sweep has just judged unheld, both of the shapes above follow: the read is unbacked, and under `a26859f`'s mirroring a descriptor can be mirrored from a copy that has since gone. But DRED only keeps recent activity, so I can't show the copy *the read wanted* being the one that was let go — treat this as where I'd start, not as a diagnosis. ## Switches that did not help - `VICTORY_INPLACE=0`: same device removal (though the fault shape changed to the wild descriptor). - `VICTORY_VIEW_GUARD=0` (turning off the per-page guard over every view from `8dd30ab`): no rescue. It ended in the title-side `0xc0000005 ... read 0xffffffffffffffff` at 2:01 instead. ## What I could not measure, which is the part that matters to me The four commits at `9376fd6` are exactly the processor-side work I pulled them for, and I still cannot say whether they help: **`9376fd6` never reached the draw counts where the old numbers were taken** (3,082–5,010 against 5,829–5,901), because it dies first. On `c96b4f2` the clean runs sit at 1,947–2,166 ms/frame with 711–1,000 ms on the GPU, and both its texture lane and its copy-back lane settle once streaming finishes (texture refreshes fall to 3–7 ms/frame). So the frame-time question is still open on this card. ## Not tested - Bisecting `310c6eb` / `8dd30ab` / `a26859f` / `9376fd6` individually; only the range as a whole was run. - More than one run per intermediate commit — the intermediate results are single runs. - `VICTORY_STALE_TEXTURES=0`, `VICTORY_REUPLOAD_WHEN_FULL=0`, `VICTORY_CARD_ROOM_FOR_BUFFERS=0` (the other new defaults) — these are the next three runs I'd make if anyone wants the rate narrowed. - A second session on `9376fd6` from a cold shader cache was run once only. No game data. Numbers from VIctory's own log. Logs kept local; happy to paste any specific line. AI-assisted (Hermes Agent).
Author
Owner

@⁠0xmp3 on GitHub · 2026-11-25 11:22 UTC · original

Same evening, after f85101b: the "second night" switch set on RDNA4

f85101b builds and runs here. The set from the README (VICTORY_ASYNC_SUBMIT=1 VICTORY_QUEUE2=1 VICTORY_INDIRECT_WINDOW=1 VICTORY_MERGE_GAP=64 VICTORY_MERGE_RUNS=4096) is a real frame-rate win on this card with the builder off: 209–261 ms/frame, 3.8–4.8 fps, 5,604–9,870 draws, texture lane 3.5–8.8 ms, copy-back 51–65 ms (from over 1,000). Builder-off baseline on this machine was 499–788 ms and 1–2 fps.

It is not a stability fix. Five runs, five failures:

config (builder off unless noted) outcome duration peak draws/frame
defaults, builder on device removed, fault 0x47e6000 2:40 1,932
switches, builder on title-side AV, read 0xffffffffffffffff 2:35 1,660
switches device removed, fault 0x700002b67000 4:36 5,604
switches, MERGE_GAP=0 device removed, fault 0x5f71000 2:40 9,870
switches, LEVELS_ON_DEMAND=1 device removed, fault 0x300002617000 4:47 5,959

MERGE_GAP=0 and LEVELS_ON_DEMAND=1 change neither the frame rate nor the failure. With levels on demand the texture lane sits at 3.5 ms a frame and the queue settles, so a full card is not what triggers this.

What I had not seen before: every device removal tonight faults inside the title's first ~100 MB of console addresses, and three of them carry junk above bit 40 while the low 40 bits are a real console address in the same band as the untagged ones.

0x500002fe5000  -> low 40 bits 0x2fe5000, bits 44-47 = 0x5
0x700002b67000  -> low 40 bits 0x2b67000, bits 44-47 = 0x7
0x300002617000  -> low 40 bits 0x2617000, bits 44-47 = 0x3
untagged faults: 0x2c76000  0x3d5d000  0x3bf7000  0x47e6000  0x5f71000

Read as a 64-bit pointer whose upper half was never written, the tagged and untagged faults are one fault: the low part lands in one band, and the read would have been backed if the high part were clean. That points me at a partially initialised address field — a descriptor record, or title memory the layer writes — before the page-copy path. I cannot show which field, so this is a lead, not a diagnosis.

Still unverified: whether moving around matters. Every run above is static after the menus; the one session that was walked around died at 4:36 while the static runs died at 2:35–4:47, so I have no separation between "movement" and "time".

No game data; numbers from VIctory's own log. AI-assisted (Hermes Agent).

**@⁠0xmp3** on GitHub · 2026-11-25 11:22 UTC · [original](https://github.com/fxceless/victory-fork/issues/543#issuecomment-7160969178) ### Same evening, after `f85101b`: the "second night" switch set on RDNA4 `f85101b` builds and runs here. The set from the README (`VICTORY_ASYNC_SUBMIT=1 VICTORY_QUEUE2=1 VICTORY_INDIRECT_WINDOW=1 VICTORY_MERGE_GAP=64 VICTORY_MERGE_RUNS=4096`) is a real frame-rate win on this card with the builder **off**: 209–261 ms/frame, 3.8–4.8 fps, 5,604–9,870 draws, texture lane 3.5–8.8 ms, copy-back 51–65 ms (from over 1,000). Builder-off baseline on this machine was 499–788 ms and 1–2 fps. It is not a stability fix. Five runs, five failures: | config (builder off unless noted) | outcome | duration | peak draws/frame | |---|---|---|---| | defaults, builder on | device removed, fault `0x47e6000` | 2:40 | 1,932 | | switches, builder on | title-side AV, read `0xffffffffffffffff` | 2:35 | 1,660 | | switches | device removed, fault `0x700002b67000` | 4:36 | 5,604 | | switches, `MERGE_GAP=0` | device removed, fault `0x5f71000` | 2:40 | 9,870 | | switches, `LEVELS_ON_DEMAND=1` | device removed, fault `0x300002617000` | 4:47 | 5,959 | `MERGE_GAP=0` and `LEVELS_ON_DEMAND=1` change neither the frame rate nor the failure. With levels on demand the texture lane sits at 3.5 ms a frame and the queue settles, so a full card is not what triggers this. What I had not seen before: every device removal tonight faults inside the title's first ~100 MB of console addresses, and three of them carry junk above bit 40 while the low 40 bits are a real console address in the same band as the untagged ones. ``` 0x500002fe5000 -> low 40 bits 0x2fe5000, bits 44-47 = 0x5 0x700002b67000 -> low 40 bits 0x2b67000, bits 44-47 = 0x7 0x300002617000 -> low 40 bits 0x2617000, bits 44-47 = 0x3 untagged faults: 0x2c76000 0x3d5d000 0x3bf7000 0x47e6000 0x5f71000 ``` Read as a 64-bit pointer whose upper half was never written, the tagged and untagged faults are one fault: the low part lands in one band, and the read would have been backed if the high part were clean. That points me at a partially initialised address field — a descriptor record, or title memory the layer writes — before the page-copy path. I cannot show which field, so this is a lead, not a diagnosis. Still unverified: whether moving around matters. Every run above is static after the menus; the one session that was walked around died at 4:36 while the static runs died at 2:35–4:47, so I have no separation between "movement" and "time". No game data; numbers from VIctory's own log. AI-assisted (Hermes Agent).
Author
Owner

@⁠0xmp3 on GitHub · 2026-11-25 11:24 UTC · original

Correction to the table above: two "peak draws" figures were the last frame's count, not the run's peak. Read from every frame line in each log:

  • f85101b defaults (builder on): 4,000 draws/frame, not 1,932
  • switches with the builder off: 6,801, not 5,604
  • the other three stand: 1,660 / 9,870 / 5,959

So the full set is 4,000 / 1,660 / 6,801 / 9,870 / 5,959. Nothing in the conclusions moves — the runs still fail between 2:35 and 4:47 — but every draw count goes up, and the two that got furthest into the scene are MERGE_GAP=0 (9,870) and the second-night set with the builder off (6,801), both of which still end in a device removal.

My error: I read the last frame line in the log rather than the maximum. Logs kept local.

**@⁠0xmp3** on GitHub · 2026-11-25 11:24 UTC · [original](https://github.com/fxceless/victory-fork/issues/543#issuecomment-7160998044) Correction to the table above: two "peak draws" figures were the last frame's count, not the run's peak. Read from every frame line in each log: - `f85101b` defaults (builder on): **4,000** draws/frame, not 1,932 - switches with the builder off: **6,801**, not 5,604 - the other three stand: 1,660 / 9,870 / 5,959 So the full set is 4,000 / 1,660 / 6,801 / 9,870 / 5,959. Nothing in the conclusions moves — the runs still fail between 2:35 and 4:47 — but every draw count goes up, and the two that got furthest into the scene are `MERGE_GAP=0` (9,870) and the second-night set with the builder off (6,801), both of which still end in a device removal. My error: I read the last frame line in the log rather than the maximum. Logs kept local.
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/fxceless--victory-fork#543
No description provided.