GPU: bind root SRVs as one-view tables bounded to their host copy #493

Closed
github-bot wants to merge 3 commits from gh-pr/493/head into gh-pr/493/base
Owner

@⁠hophaver on GitHub · 2026-11-24 04:04 UTC · original
hophaver:fix/bounded-root-srvs → main · +248 −30 · 3 files · 3 commits · closed without merging

Builds on #336 (it uses that PR's bind returning false); the diff against main shows #336's two commits until that one is merged. The change here is c48b240.

Problem

With #336, the world on an RX 9070 XT runs past the 60 s descriptor exhaustion, then is removed at about 134–145 s with a different signature, seen on three machines (#336 comments):

page fault at 0x408da3000; inside freed ["texture 2048x512 f98 …", "texture 1024x1024 f98 …", …];
the nearest title memory copy below it: 0xb92400000+0x400000 at host 0x408900000, offset 0x4a3000
a list stopped at … mesh 1 [mesh 38ad582f523fd7cf, …] | … root3=0xb925e6000 host Some((0x408ae6000, 0x21a000))

As @⁠GamingRipperDoc worked out there: the mesh shader reads its vertex stream through root SRV root3, whose host copy ends exactly at the end of that 4 MB title memory copy, and the fault lies just past it. A root SRV is a bare address, and vertex fetch reads it with no record limit, so a read past the copied range lands in whatever the host placed there, here memory that had held since-freed textures.

Change

  • A root SRV becomes a one-descriptor table holding a raw view of the buffer's host copy from the root address to the copy's end (raw_at). Reads past the end return zero, as for any bounded view, instead of reaching other host memory.
  • One dynamic slot per (heap, address) per list, from the heap's dynamic range, given back with the list's other dynamic slots.
  • A root SRV the title did not set, or with no host copy, gets a null raw view: an unset table is undefined. If no slot can be had, the draw or dispatch is dropped, as #336 does for tables.
  • Raw views must start on 16 bytes. A root address that does not reads zeros and is logged once (not seen in the world runs here).
  • VICTORY_ROOT_SRV_DIRECT=1 goes back to root descriptors.

Root CBVs are unchanged.

Tested

Windows 11, RX 9070 XT, v1.0.2.1, diag build, VICTORY_D3D12_DRED=1, this branch alone on main d2a4bae (+ #336):

  • #336 only: removed at ~134 s in the world (inside freed texture 1024x1024 f99), matching the two reports on #336 (~136 s, ~145 s).
  • + this PR: 361 s in the world with no removal; stopped by hand. No exhaustion warning, no root SRV not on 16 bytes line.
  • cargo test -p victory-gpu passes (43, 1 ignored). cargo xtask policy passes.

One run with the change; more runs, and NVIDIA / Intel, are untested.

**@⁠hophaver** on GitHub · 2026-11-24 04:04 UTC · [original](https://github.com/Marvisak/VIctory/pull/493) `hophaver:fix/bounded-root-srvs` → `main` · +248 −30 · 3 files · 3 commits · closed without merging Builds on #336 (it uses that PR's `bind` returning `false`); the diff against `main` shows #336's two commits until that one is merged. The change here is `c48b240`. ## Problem With #336, the world on an RX 9070 XT runs past the 60 s descriptor exhaustion, then is removed at about 134–145 s with a different signature, seen on three machines (#336 comments): ``` page fault at 0x408da3000; inside freed ["texture 2048x512 f98 …", "texture 1024x1024 f98 …", …]; the nearest title memory copy below it: 0xb92400000+0x400000 at host 0x408900000, offset 0x4a3000 a list stopped at … mesh 1 [mesh 38ad582f523fd7cf, …] | … root3=0xb925e6000 host Some((0x408ae6000, 0x21a000)) ``` As @⁠GamingRipperDoc worked out there: the mesh shader reads its vertex stream through root SRV `root3`, whose host copy ends exactly at the end of that 4 MB title memory copy, and the fault lies just past it. A root SRV is a bare address, and vertex fetch reads it with no record limit, so a read past the copied range lands in whatever the host placed there, here memory that had held since-freed textures. ## Change - A root SRV becomes a one-descriptor table holding a raw view of the buffer's host copy from the root address to the copy's end (`raw_at`). Reads past the end return zero, as for any bounded view, instead of reaching other host memory. - One dynamic slot per (heap, address) per list, from the heap's dynamic range, given back with the list's other dynamic slots. - A root SRV the title did not set, or with no host copy, gets a null raw view: an unset table is undefined. If no slot can be had, the draw or dispatch is dropped, as #336 does for tables. - Raw views must start on 16 bytes. A root address that does not reads zeros and is logged once (not seen in the world runs here). - `VICTORY_ROOT_SRV_DIRECT=1` goes back to root descriptors. Root CBVs are unchanged. ## Tested Windows 11, RX 9070 XT, v1.0.2.1, diag build, `VICTORY_D3D12_DRED=1`, this branch alone on `main` `d2a4bae` (+ #336): - **#336 only:** removed at ~134 s in the world (`inside freed texture 1024x1024 f99`), matching the two reports on #336 (~136 s, ~145 s). - **+ this PR:** **361 s in the world with no removal**; stopped by hand. No exhaustion warning, no `root SRV not on 16 bytes` line. - `cargo test -p victory-gpu` passes (43, 1 ignored). `cargo xtask policy` passes. One run with the change; more runs, and NVIDIA / Intel, are untested.
When HostHeap::dynamic ran out, State::tables skipped the fresh table and
the stage's user data fell back to the title's table offset. Constant
buffer tables are always made fresh and never mirrored, so the shader read
whatever host descriptor sat at those slots as a constant buffer; on AMD a
texture or null descriptor read as a buffer gives a wild base address and
the device is removed (#59: faults at 0x7000037xxxxx, 0x8000037xxxxx,
0x33c4000, a different pipeline every run, about 60 s in).

bind now reports that a table could not be made, and the draw, mesh
dispatch, dispatch or indirect execution is dropped. The dynamic range grows
from 2^16 to 2^18 slots, which the world did not exhaust on an RX 9070 XT.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A host that refuses the title's slots plus 2^18 dynamic ones (NVIDIA's
1,000,000-view cap) now gets 2^16 dynamic slots, as before, instead of
losing mirrored title slots to the larger range: at the cap, 2^18 left
737,856 title slots against 934,464, and titles were seen to index slots
up to 917,140. The cap itself is unchanged. Hosts that take the larger
heap (RX 9070 XT) keep 2^18.
A root SRV is a bare GPU address: nothing bounds what a shader reads
through it. Vertex fetch reads its stream through a root SRV with no
record limit, and a mesh shader read past the end of the buffer's host
copy into memory the host had already freed (the "inside freed texture"
device removal after the fix for #59: the fault lay just past the copy's
end, in the gap where released textures had been).

Each root SRV is now a one-descriptor table holding a raw view of the
host copy from the root address to the copy's end, made once per address
per list in the heap's dynamic slots; reads past the end return zero, as
for any bounded view. A root SRV the title did not set, or one with no
host copy, gets a null raw view (an unset table is undefined). Addresses
not on 16 bytes, which a raw view cannot start at, read zeros and are
logged once. VICTORY_ROOT_SRV_DIRECT=1 restores root descriptors.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:06:03 +00:00
github-bot closed this pull request 2026-11-26 04:06:03 +00:00
Author
Owner

@⁠desplmfao on GitHub · 2026-11-24 04:27 UTC · original · edited 2026-11-24 04:45 UTC

NVIDIA / Linux data point, since NVIDIA was untested here.

Setup: RTX 5080, driver 615.71.09, CachyOS, proton-cachyos (vkd3d-proton 3.2.0), Series X 1.0.2.1, diagnostics build of main d2a4bae + #336 + this PR, plus #185, #440, #436, #462, #259, #177, #151 (the last three needed to reach the world here). Story mode entered by VICTORY_KEYS at about 35 s, no other input.

Before (same stack without #336 / #493): 4 of 5 runs ended in a GPU hang, NVRM: Xid 109 ... CTX SWITCH TIMEOUT from title-main, 3.5–5.3 min after start (about 2–4 min into the world), followed about 20 s later by the title's crash at +0x23cf683. The fifth was stopped at 4.5 min. Earlier the same day, with fewer PRs, the same hang came at 1.5–3 min.

With #336 + #493: 4 of 4 runs without a hang: 8, 10 and 9 min after start, through to the timer, and 7.5 min (stopped by hand), about 6–8.5 min in the world. The last one also had #431. No Xid, nothing in crashes.log, no root SRV not on 16 bytes line, no exhaustion warning.

Four runs, so not conclusive, but it fits @⁠matheushagedorn's finding on #71 (an Xid 13 MMU fault in compute from reads past the end, which turns into this CTX SWITCH TIMEOUT with robustness on). Frame times were unchanged (several seconds per world frame here; that is the copy path, not this PR).

AI-assisted (Claude Code); the numbers come from the logs of these runs.

**@⁠desplmfao** on GitHub · 2026-11-24 04:27 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7122033298) · edited 2026-11-24 04:45 UTC NVIDIA / Linux data point, since NVIDIA was untested here. **Setup:** RTX 5080, driver 615.71.09, CachyOS, proton-cachyos (vkd3d-proton 3.2.0), Series X 1.0.2.1, diagnostics build of `main` `d2a4bae` + #336 + this PR, plus #185, #440, #436, #462, #259, #177, #151 (the last three needed to reach the world here). Story mode entered by `VICTORY_KEYS` at about 35 s, no other input. **Before (same stack without #336 / #493):** 4 of 5 runs ended in a GPU hang, `NVRM: Xid 109 ... CTX SWITCH TIMEOUT` from `title-main`, 3.5–5.3 min after start (about 2–4 min into the world), followed about 20 s later by the title's crash at `+0x23cf683`. The fifth was stopped at 4.5 min. Earlier the same day, with fewer PRs, the same hang came at 1.5–3 min. **With #336 + #493:** 4 of 4 runs without a hang: 8, 10 and 9 min after start, through to the timer, and 7.5 min (stopped by hand), about 6–8.5 min in the world. The last one also had #431. No `Xid`, nothing in `crashes.log`, no `root SRV not on 16 bytes` line, no exhaustion warning. Four runs, so not conclusive, but it fits @⁠matheushagedorn's finding on #71 (an `Xid 13` MMU fault in compute from reads past the end, which turns into this `CTX SWITCH TIMEOUT` with robustness on). Frame times were unchanged (several seconds per world frame here; that is the copy path, not this PR). AI-assisted (Claude Code); the numbers come from the logs of these runs.
Author
Owner

@⁠iurysf on GitHub · 2026-11-24 04:55 UTC · original

Heads-up: this PR and #458 both add pub(crate) fn is_sampler(&self) -> bool to crates/victory-gpu/src/descriptor/host.rs. They merge without textual conflicts, but the result does not compile:

error[E0592]: duplicate definitions with name `is_sampler`
   --> crates\victory-gpu\src\descriptor\host.rs:371:5

Whichever lands second will need to drop or rename its copy.

**@⁠iurysf** on GitHub · 2026-11-24 04:55 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7122461386) Heads-up: this PR and #458 both add `pub(crate) fn is_sampler(&self) -> bool` to `crates/victory-gpu/src/descriptor/host.rs`. They merge without textual conflicts, but the result does not compile: ``` error[E0592]: duplicate definitions with name `is_sampler` --> crates\victory-gpu\src\descriptor\host.rs:371:5 ``` Whichever lands second will need to drop or rename its copy.
Author
Owner

@⁠iurysf on GitHub · 2026-11-24 05:24 UTC · original

NVIDIA data point: RTX 4070 (driver 32.0.16.2101, Windows 11), diag builds, entering the world (first mission intro), 300 s runs.

  • main d2a4bae: host device removed (0x887A0006) in every run, 100–231 s after start, after a single submission of ~4.9–5.5 s. DRED has no page fault and stops on mesh pipelines that read root parameter 3. GBV on main also reports id 936: heap index 117,506,306 of 1,000,000 in a pixel shader.
  • main + this PR + #483: no removal in 300 s, both with the default loop limit (216 s in the world) and with VICTORY_SHADER_LOOP_LIMIT=32 (226 s in the world). Median frame 950 ms (main: ~1,000–1,380 ms).
  • Ablation: the same binary with VICTORY_ROOT_SRV_DIRECT=1 (only the bounded root SRVs turned off, #483's guard slot still on) is removed again at 176 s, with DRED stopping on a mesh draw that reads root 3.
  • For comparison, main + #309 #385 #458 #459 #492 #491 #485 without this PR and #483 is removed ~30 s into the world.

Still seen on NVIDIA with both applied: the 65,536 dynamic descriptor slots run out (dropped=65536), and one run had a 1.84 s GPU frame from two mesh+pixel pipelines, close to the TDR limit.

cargo test -p victory-shader and -p victory-gpu pass on the combination (--test-threads=1). Not tested: #483 alone in game, runs longer than 300 s.

**@⁠iurysf** on GitHub · 2026-11-24 05:24 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7122922102) NVIDIA data point: RTX 4070 (driver 32.0.16.2101, Windows 11), diag builds, entering the world (first mission intro), 300 s runs. - **main `d2a4bae`**: host device removed (`0x887A0006`) in every run, 100–231 s after start, after a single submission of ~4.9–5.5 s. DRED has no page fault and stops on mesh pipelines that read root parameter 3. GBV on main also reports id 936: heap index 117,506,306 of 1,000,000 in a pixel shader. - **main + this PR + #483**: no removal in 300 s, both with the default loop limit (216 s in the world) and with `VICTORY_SHADER_LOOP_LIMIT=32` (226 s in the world). Median frame 950 ms (main: ~1,000–1,380 ms). - **Ablation**: the same binary with `VICTORY_ROOT_SRV_DIRECT=1` (only the bounded root SRVs turned off, #483's guard slot still on) is removed again at 176 s, with DRED stopping on a mesh draw that reads root 3. - For comparison, main + #309 #385 #458 #459 #492 #491 #485 without this PR and #483 is removed ~30 s into the world. Still seen on NVIDIA with both applied: the 65,536 dynamic descriptor slots run out (`dropped=65536`), and one run had a 1.84 s GPU frame from two mesh+pixel pipelines, close to the TDR limit. `cargo test -p victory-shader` and `-p victory-gpu` pass on the combination (`--test-threads=1`). Not tested: #483 alone in game, runs longer than 300 s.
Author
Owner

@⁠Nixitov on GitHub · 2026-11-24 06:19 UTC · original

RTX 5070, native Windows D3D12: this plus #483 keeps the world alive, where main loses the device within 1-2.5 min.

Setup: Windows 11 Pro 26200.9974, NVIDIA RTX 5070, driver 617.14, in-box D3D12 10.0.26100.9818, Rust 1.98.1, release build.

build world
d2a4bae + #581 11-list submission takes 10.97 s, device removed (0x887A0006 after 0x887A0004)
d2a4bae + #581 + #578 1-list submission of 12 wave32 compute programs takes 11.34 s, device removed
d2a4bae + this PR + #483 still running after 300 s in the world, 0 device removals

With this PR + #483 the slow-submission lines settle at 265-284 ms for the same 11-list submissions that took 11 s before (10-40x), and the frame log goes 2 fps / 455-570 ms per frame, 500-1113 draws per frame. Stopped by the run, not by a fault.

One integration note for landing both: #493 and #483 conflict in crates/victory-gpu/src/descriptor/host.rs. What I merged for the test above:

  • keep this PR's DYNAMIC / MIN_DYNAMIC selection and add #483's guard slot as one more (let guard = u32::from(!sampler); ... make(count + DYNAMIC + guard), and the capped branch PORTABLE_VIEWS - (MIN_DYNAMIC + guard));
  • guard_slot() returns count + self.dynamic for view heaps instead of count + DYNAMIC, so it is the last slot whichever dynamic range the heap got.

That build runs cargo build --release -p victory clean. Whichever lands second needs that small adaptation.

No game files; only timings, frame counts and the two error names.

AI-assisted (DeepSeek V4.1 Flash coding agent).

**@⁠Nixitov** on GitHub · 2026-11-24 06:19 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7123817372) RTX 5070, native Windows D3D12: this plus #483 keeps the world alive, where main loses the device within 1-2.5 min. **Setup:** Windows 11 Pro 26200.9974, NVIDIA RTX 5070, driver 617.14, in-box D3D12 10.0.26100.9818, Rust 1.98.1, release build. | build | world | |---|---| | `d2a4bae` + #581 | 11-list submission takes 10.97 s, device removed (`0x887A0006` after `0x887A0004`) | | `d2a4bae` + #581 + #578 | 1-list submission of 12 wave32 compute programs takes 11.34 s, device removed | | **`d2a4bae` + this PR + #483** | **still running after 300 s in the world, 0 device removals** | With this PR + #483 the slow-submission lines settle at 265-284 ms for the same 11-list submissions that took 11 s before (10-40x), and the frame log goes 2 fps / 455-570 ms per frame, 500-1113 draws per frame. Stopped by the run, not by a fault. **One integration note for landing both:** #493 and #483 conflict in `crates/victory-gpu/src/descriptor/host.rs`. What I merged for the test above: - keep this PR's `DYNAMIC` / `MIN_DYNAMIC` selection and add #483's guard slot as one more (`let guard = u32::from(!sampler); ... make(count + DYNAMIC + guard)`, and the capped branch `PORTABLE_VIEWS - (MIN_DYNAMIC + guard)`); - `guard_slot()` returns `count + self.dynamic` for view heaps instead of `count + DYNAMIC`, so it is the last slot whichever dynamic range the heap got. That build runs `cargo build --release -p victory` clean. Whichever lands second needs that small adaptation. No game files; only timings, frame counts and the two error names. AI-assisted (DeepSeek V4.1 Flash coding agent).
Author
Owner

@⁠walterwallaceson on GitHub · 2026-11-24 06:47 UTC · original

Windows 10 data point for #493 (c48b240) + #483 (65a161d): no device removal on an RTX 3070.

Setup: Windows 10 22H2 (19045.6466), RTX 3070, NVIDIA 621.14, Ryzen 5 5600X, release build, Agility SDK 1.620.2 via #175. Base stack: #175, #233 + #320 + #439 (f653ea4), #55, #89, #336 (e8d3b64), #334 (af2aecf). This GPU caps the view heap at 1,000,000, so #336/#493 take the 2^16 dynamic range. #493 and #483 conflict in descriptor/host.rs; I resolved it as described on #493: #493's DYNAMIC / MIN_DYNAMIC selection plus one guard slot (make(count + DYNAMIC + guard), capped branch PORTABLE_VIEWS - (MIN_DYNAMIC + guard)), the guard kept out of the dynamic pool, and guard_slot() returning count + self.dynamic.

base stack + #493 + #483
device removed yes, ~2–2.5 min into the world (0x887A0006 / DEVICE_HUNG) no, none in ~5.5 min in the world
what renders first mission title card, cutscene subtitles over a black scene the same, then the opening credits text and 2D credit art over the still-black 3D scene, for several minutes
no free dynamic descriptor slots ~8 s into the world ~2 min into the world
draws dropped (no dynamic slots) up to 16384–65536 up to 65536
  • Frame rate in the world 0.2–1.8 fps; 60 slow host submission lines, 0 host pipelines refused, 0 no host texture.
  • What ends the run now is the title, not the GPU: 0x80000003 (a breakpoint) at title +0x5149aec on 7 threads at once, all with the same stack (+0xa5db22, +0x5453ac7, +0x23d0f9a, …). The title then tries to upload a crash report, which VIctory's network policy blocks. I couldn't find that address in an issue yet.
  • cargo test --workspace: #483's a_heap_index_past_the_heap_reads_the_guard_slot fails here with "neither hardware nor WARP SM 6.6 device available", the same Windows 10 cause as the other valu_tests (#362). Otherwise only the known Windows 10 failures.

One run so far.

No game data in this report.

AI-assisted (Claude Code); everything above was run on my machine.

**@⁠walterwallaceson** on GitHub · 2026-11-24 06:47 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7124291680) Windows 10 data point for #493 (c48b240) + #483 (65a161d): no device removal on an RTX 3070. Setup: Windows 10 22H2 (19045.6466), RTX 3070, NVIDIA 621.14, Ryzen 5 5600X, release build, Agility SDK 1.620.2 via #175. Base stack: #175, #233 + #320 + #439 (f653ea4), #55, #89, #336 (e8d3b64), #334 (af2aecf). This GPU caps the view heap at 1,000,000, so #336/#493 take the 2^16 dynamic range. #493 and #483 conflict in `descriptor/host.rs`; I resolved it as described on #493: #493's `DYNAMIC` / `MIN_DYNAMIC` selection plus one guard slot (`make(count + DYNAMIC + guard)`, capped branch `PORTABLE_VIEWS - (MIN_DYNAMIC + guard)`), the guard kept out of the dynamic pool, and `guard_slot()` returning `count + self.dynamic`. | | base stack | + #493 + #483 | |---|---|---| | device removed | yes, ~2–2.5 min into the world (`0x887A0006` / `DEVICE_HUNG`) | **no**, none in ~5.5 min in the world | | what renders | first mission title card, cutscene subtitles over a black scene | the same, then the opening credits text and 2D credit art over the still-black 3D scene, for several minutes | | `no free dynamic descriptor slots` | ~8 s into the world | ~2 min into the world | | draws dropped (no dynamic slots) | up to 16384–65536 | up to 65536 | - Frame rate in the world 0.2–1.8 fps; 60 `slow host submission` lines, 0 host pipelines refused, 0 `no host texture`. - What ends the run now is the title, not the GPU: `0x80000003` (a breakpoint) at title `+0x5149aec` on 7 threads at once, all with the same stack (`+0xa5db22`, `+0x5453ac7`, `+0x23d0f9a`, …). The title then tries to upload a crash report, which VIctory's network policy blocks. I couldn't find that address in an issue yet. - `cargo test --workspace`: #483's `a_heap_index_past_the_heap_reads_the_guard_slot` fails here with "neither hardware nor WARP SM 6.6 device available", the same Windows 10 cause as the other `valu_tests` (#362). Otherwise only the known Windows 10 failures. One run so far. No game data in this report. AI-assisted (Claude Code); everything above was run on my machine.
Author
Owner

@⁠likecrank-dotcom on GitHub · 2026-11-24 08:49 UTC · original · edited 2026-11-24 09:05 UTC

NVIDIA RTX 5060 Ti 8 GB data point: the run with bounded root SRVs plus the wave64/compute-sample stack ended at 515.8 s from process start, on a title breakpoint (0x80000003 at +0x5149aec), without a logged GPU device removal. The earlier ongoing wording was corrected after reading the crash tail. This is one run, not a stability-fix or playable-world claim.

Setup: Windows 11, Ryzen 5 3600, 32 GB, NVIDIA 621.14, title 1.0.2.1 Series X. Diag, INFO + DRED, loop limit 4096, cloned settings and Enter at 10/20/30 seconds. The reproducible source is https://github.com/likecrank-dotcom/VIctory/tree/codex/victory-bounded-views at 91f1450f200c850b6444182aa9588a60ed47713d: main ce42e77 + #439 head 055aef9 + #180, then this PR c48b240, plus a diagnostics-only one-shot capture request and test adaptations. No #193/#704/#185 in this run.

Before: the same integration before this PR (10bec37, public branch codex/victory-world-integration) lost the device at 179.6 s (0x887A0005 / removed reason 0x887A0006), DRED command 600/1482, DispatchMesh f0c7efd2aceb2aaa / 7d85c9cab3c80721. No dynamic-slot exhaustion line.

Now, measured locally:

  • No logged device removal before the title breakpoint at 515.8 s; typically 0.3-0.5 fps. Final image still black. An Escape/Menu press has not produced a visible pause menu; character control is unconfirmed.
  • The first requested world-frame capture exported 236 target PNGs, 189 spatially uniform. A later one exported 246, 178 uniform. These counts are for VIctory's half-resolution normalized 8-bit RGB exports, not a bitwise census of the original full-resolution GPU textures.
  • A later 2560x1440 f28 target visibly contains a recognizable character silhouette and some surrounding geometry; the same frame's final presentation is black. Main full-size targets remain mostly empty. No screenshot or game-derived data is attached.
  • All four culling hashes fdd56d97a806bcca, 17af15c4015cb4b6, 55679a0547649d0b and 89d08e561897d4e5 reach runtime binds and then fail translation with 'a structured buffer of unknown stride'. #704 is the next local candidate.
  • cargo test --profile diag -p victory-gpu --features diagnostics --lib -- --test-threads=1: 54 passed, 0 failed, 1 ignored. Before the #493 addition, the integrated shader suite passed 108 / 0 / 1 ignored; it is unchanged by #493.

Limitations: one run. The world-target captures introduce extra readbacks/barriers, so this is not a clean attribution of longer survival to #493. Four existing BelowNormal Leonida SPIR-V translation workers remained active. After ~4 min, a one-job BelowNormal CPU build of the next candidate also ran; no other title or GPU tests ran. No timing comparison or hang-fix claim. End condition is now recorded above: title breakpoint, not harness timeout. Root cause of this assertion is under investigation.

AI-assisted with OpenAI Codex (exact backend variant not exposed): integration, builds/tests, run, capture utility and analysis. Hardware/title and audio observations are the user's. Source only; no game files, shader binaries, raw dumps or full logs published.

Crash-tail detail: the title's own report says INSTANCE_LIST 45000/45000, BUILDING 22479/22500, streaming requests 1298, TileHeap 3747/6236 MB, SRL Prestream, Paused Yes, game frame 1481. The full stack matches issue #698's first run: +0x5149aec, +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211, +0x257035e, +0x221c29c, +0x2215eca. This correlates the breakpoint with a full instance-list pool; it does not establish why the pool fills. Paused Yes does not establish delivery or effect of the Escape input.

Integration correction: the reused r4tedx integration/wave64-with-180 merge 24b3bcc has 055aef9 in its ancestry but its tree removes later #439 work, including console_pending tracking and numeric mask pairs (structure.rs loses 20 lines), plus related lowering/tests. The source SHA reported here is exact, but it should not be interpreted as the full latest #439 behavior. The four unknown-stride failures observed here, and their later mask-join failures with #704, are observations on that older effective wave64 integration. Rebuilding from ce42e77 + a clean merge of 055aef9 + the two #180 commits instead. This does not affect the separately reported pure 055aef9 runtime test.

**@⁠likecrank-dotcom** on GitHub · 2026-11-24 08:49 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7126613655) · edited 2026-11-24 09:05 UTC NVIDIA RTX 5060 Ti 8 GB data point: the run with bounded root SRVs plus the wave64/compute-sample stack ended at 515.8 s from process start, on a title breakpoint (0x80000003 at +0x5149aec), without a logged GPU device removal. The earlier ongoing wording was corrected after reading the crash tail. This is one run, not a stability-fix or playable-world claim. Setup: Windows 11, Ryzen 5 3600, 32 GB, NVIDIA 621.14, title 1.0.2.1 Series X. Diag, INFO + DRED, loop limit 4096, cloned settings and Enter at 10/20/30 seconds. The reproducible source is https://github.com/likecrank-dotcom/VIctory/tree/codex/victory-bounded-views at 91f1450f200c850b6444182aa9588a60ed47713d: main ce42e77 + #439 head 055aef9 + #180, then this PR c48b240, plus a diagnostics-only one-shot capture request and test adaptations. No #193/#704/#185 in this run. Before: the same integration before this PR (10bec37, public branch codex/victory-world-integration) lost the device at 179.6 s (0x887A0005 / removed reason 0x887A0006), DRED command 600/1482, DispatchMesh f0c7efd2aceb2aaa / 7d85c9cab3c80721. No dynamic-slot exhaustion line. Now, measured locally: - No logged device removal before the title breakpoint at 515.8 s; typically 0.3-0.5 fps. Final image still black. An Escape/Menu press has not produced a visible pause menu; character control is unconfirmed. - The first requested world-frame capture exported 236 target PNGs, 189 spatially uniform. A later one exported 246, 178 uniform. These counts are for VIctory's half-resolution normalized 8-bit RGB exports, not a bitwise census of the original full-resolution GPU textures. - A later 2560x1440 f28 target visibly contains a recognizable character silhouette and some surrounding geometry; the same frame's final presentation is black. Main full-size targets remain mostly empty. No screenshot or game-derived data is attached. - All four culling hashes fdd56d97a806bcca, 17af15c4015cb4b6, 55679a0547649d0b and 89d08e561897d4e5 reach runtime binds and then fail translation with 'a structured buffer of unknown stride'. #704 is the next local candidate. - `cargo test --profile diag -p victory-gpu --features diagnostics --lib -- --test-threads=1`: 54 passed, 0 failed, 1 ignored. Before the #493 addition, the integrated shader suite passed 108 / 0 / 1 ignored; it is unchanged by #493. Limitations: one run. The world-target captures introduce extra readbacks/barriers, so this is not a clean attribution of longer survival to #493. Four existing BelowNormal Leonida SPIR-V translation workers remained active. After ~4 min, a one-job BelowNormal CPU build of the next candidate also ran; no other title or GPU tests ran. No timing comparison or hang-fix claim. End condition is now recorded above: title breakpoint, not harness timeout. Root cause of this assertion is under investigation. AI-assisted with OpenAI Codex (exact backend variant not exposed): integration, builds/tests, run, capture utility and analysis. Hardware/title and audio observations are the user's. Source only; no game files, shader binaries, raw dumps or full logs published. Crash-tail detail: the title's own report says INSTANCE_LIST 45000/45000, BUILDING 22479/22500, streaming requests 1298, TileHeap 3747/6236 MB, SRL Prestream, Paused Yes, game frame 1481. The full stack matches issue #698's first run: +0x5149aec, +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211, +0x257035e, +0x221c29c, +0x2215eca. This correlates the breakpoint with a full instance-list pool; it does not establish why the pool fills. Paused Yes does not establish delivery or effect of the Escape input. Integration correction: the reused r4tedx integration/wave64-with-180 merge 24b3bcc has 055aef9 in its ancestry but its tree removes later #439 work, including console_pending tracking and numeric mask pairs (structure.rs loses 20 lines), plus related lowering/tests. The source SHA reported here is exact, but it should not be interpreted as the full latest #439 behavior. The four unknown-stride failures observed here, and their later mask-join failures with #704, are observations on that older effective wave64 integration. Rebuilding from ce42e77 + a clean merge of 055aef9 + the two #180 commits instead. This does not affect the separately reported pure 055aef9 runtime test.
Author
Owner

@⁠SkillIssueXO on GitHub · 2026-11-24 09:09 UTC · original

Desktop RTX 5070 Ti / NVIDIA 621.24 / Windows 11 26300.9974, Ryzen 7 9850X3D, 32 GB RAM. Native D3D12 diagnostic builds, Series X 1.0.2.1, same saved settings and startup input, DRED enabled and default shader loop limit.

  • Plain main c7a5f49 (runtime-identical to current main 8e79c80): device removed with DXGI_ERROR_DEVICE_HUNG (0x887A0006) 35.5 s after the first world frame-rate sample. DRED first stopped at command 409/515 (op 42). The six world samples were 0.8–1.5 fps.
  • 8e79c80 + #493 c48b240 + #206 05981dd + #189 d0fd9bf with bounded root SRVs: the host selected Wave32 automatically. 147.3 s of world samples with no logged device removal. Opening credits rendered over a black 3D scene at 0.4–1.1 fps. I ended the run when Windows commit headroom fell to 0.64 GiB (VIctory private bytes 23.97 GiB).
  • Same patched binary, VICTORY_ROOT_SRV_DIRECT=1: the commit-headroom guard ended the run during the first world load, at 0.44 GiB headroom and before any world frame-rate sample. This run is inconclusive about the effect of bounded root SRVs in isolation.

One observed run per row. Main reused its shader cache and the two patched runs started with separate empty caches. The timing is a survival observation for the three-patch stack. AI-assisted (Codex with Claude checking existing coverage).

**@⁠SkillIssueXO** on GitHub · 2026-11-24 09:09 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7127044653) Desktop RTX 5070 Ti / NVIDIA 621.24 / Windows 11 26300.9974, Ryzen 7 9850X3D, 32 GB RAM. Native D3D12 diagnostic builds, Series X 1.0.2.1, same saved settings and startup input, DRED enabled and default shader loop limit. - **Plain main `c7a5f49`** (runtime-identical to current main `8e79c80`): device removed with `DXGI_ERROR_DEVICE_HUNG (0x887A0006)` **35.5 s after the first world frame-rate sample**. DRED first stopped at command 409/515 (op 42). The six world samples were 0.8–1.5 fps. - **`8e79c80` + #493 `c48b240` + #206 `05981dd` + #189 `d0fd9bf`** with bounded root SRVs: the host selected Wave32 automatically. **147.3 s of world samples with no logged device removal**. Opening credits rendered over a black 3D scene at 0.4–1.1 fps. I ended the run when Windows commit headroom fell to 0.64 GiB (VIctory private bytes 23.97 GiB). - **Same patched binary, `VICTORY_ROOT_SRV_DIRECT=1`**: the commit-headroom guard ended the run during the first world load, at 0.44 GiB headroom and before any world frame-rate sample. This run is inconclusive about the effect of bounded root SRVs in isolation. One observed run per row. Main reused its shader cache and the two patched runs started with separate empty caches. The timing is a survival observation for the three-patch stack. AI-assisted (Codex with Claude checking existing coverage).
Author
Owner

@⁠Hiiva on GitHub · 2026-11-24 09:35 UTC · original

The bounded root SRV path exposed a small edge case during synthetic WARP testing: raw_at used max(1) for NumElements, so a declared range of zero to three bytes still exposed a complete dword from the backing resource.

A follow-up returns a null raw SRV for ranges shorter than four bytes: github.com/Hiiva/VIctory@44868bd2c7

The added eight-thread readback failed before the change, returning source value 0x71300004 from a three-byte view. Afterward it verifies a nonzero-offset valid window, zeros beyond that window despite nonzero backing memory, a missing root, a short range, and an empty range. It passed on WARP with native Windows/MSVC. Clippy with diagnostics and warnings denied passed. All fixtures are synthetic. I preserved your commit and authorship when integrating the root-SRV change.

**@⁠Hiiva** on GitHub · 2026-11-24 09:35 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7127624216) The bounded root SRV path exposed a small edge case during synthetic WARP testing: raw_at used max(1) for NumElements, so a declared range of zero to three bytes still exposed a complete dword from the backing resource. A follow-up returns a null raw SRV for ranges shorter than four bytes: https://github.com/Hiiva/VIctory/commit/44868bd2c71a411b35aeaaa8f8d9153d3d3b31a1 The added eight-thread readback failed before the change, returning source value 0x71300004 from a three-byte view. Afterward it verifies a nonzero-offset valid window, zeros beyond that window despite nonzero backing memory, a missing root, a short range, and an empty range. It passed on WARP with native Windows/MSVC. Clippy with diagnostics and warnings denied passed. All fixtures are synthetic. I preserved your commit and authorship when integrating the root-SRV change.
Author
Owner

@⁠AugustoZFJ on GitHub · 2026-11-24 09:53 UTC · original

Tested on Linux with an RDNA2 card, which I don't think anyone has reported here yet. Four runs with this PR, and the device wasn't removed in any of them.

RX 6900 XT, Mesa RADV 26.2.6, GE-Proton11-14 (vkd3d-proton v3.1-83), Series X 1.0.2.1, diag builds. Kernel 7.3.4 for the main runs and 7.3.5 for the rest (there was a reboot in between). Every scripted run starts from the same save and the same shader cache, and I stop it after 600 s in the world. Times are counted from the first world frame.

Build Runs Time in the world Ended by
main d2a4bae 1 scripted, 1 played by hand 83 s, about 130 s device removed (0x887A0005)
+ this PR (c48b240, with #336 in it, merged since) 2 508 s, 168 s an int3 in title code, the title's watchdog
+ this PR + #454 with VICTORY_NO_WATCHDOG=1 2 598 s, 442 s my 600 s limit, the same int3

On main the kernel logs the fault both times as a read from the texture unit at an unmapped address, coming from vkd3d's queue thread ([gfxhub] page fault, Faulty UTCL2 client ID: TCP, RW: 0x0). With this PR the kernel log has no fault line in any of the four runs, 1,716 s in the world in total.

Indirect execution wasn't running in any of these. The clamp doesn't compile under Wine without #178 or #190 (#170), so every indirect draw is dropped. main still faulted here without it. I haven't run this PR with indirect execution on.

The runs with this PR all ended on the title's side, not the GPU's. One is the watchdog's 30 s stall check at +0x2215c35, which #454 takes care of. The other two are an int3 at +0x63966f, reached from a job worker (+0x221c29c calls the task, then +0x257035e, +0x3e54ad0). That's the pool case bunbeans2-arch describes in #597, and Exorion1er got it on an RX 9070 XT under Proton too (#454). It isn't the watchdog, and there was no stall before it in either run.

Frame rate stays between 0.3 and 0.6 fps, nearly all of it in "preparing: copies", and the scene behind the title card is still dark. The machine wasn't idle during the runs, so don't read much into the fps.

If you test main on Linux, the fault doesn't always stay inside the game. In the scripted run the job that timed out was the compositor's, on the other gfx ring. The ring reset failed, the kernel reset the whole GPU and the desktop session went down with it. In the run played by hand only the game lost its device.

**@⁠AugustoZFJ** on GitHub · 2026-11-24 09:53 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7128033741) Tested on Linux with an RDNA2 card, which I don't think anyone has reported here yet. Four runs with this PR, and the device wasn't removed in any of them. RX 6900 XT, Mesa RADV 26.2.6, GE-Proton11-14 (vkd3d-proton v3.1-83), Series X 1.0.2.1, diag builds. Kernel 7.3.4 for the `main` runs and 7.3.5 for the rest (there was a reboot in between). Every scripted run starts from the same save and the same shader cache, and I stop it after 600 s in the world. Times are counted from the first world frame. | Build | Runs | Time in the world | Ended by | |---|---|---|---| | `main` d2a4bae | 1 scripted, 1 played by hand | 83 s, about 130 s | device removed (0x887A0005) | | + this PR (c48b240, with #336 in it, merged since) | 2 | 508 s, 168 s | an `int3` in title code, the title's watchdog | | + this PR + #454 with `VICTORY_NO_WATCHDOG=1` | 2 | 598 s, 442 s | my 600 s limit, the same `int3` | On `main` the kernel logs the fault both times as a read from the texture unit at an unmapped address, coming from vkd3d's queue thread (`[gfxhub] page fault`, `Faulty UTCL2 client ID: TCP`, `RW: 0x0`). With this PR the kernel log has no fault line in any of the four runs, 1,716 s in the world in total. Indirect execution wasn't running in any of these. The clamp doesn't compile under Wine without #178 or #190 (#170), so every indirect draw is dropped. `main` still faulted here without it. I haven't run this PR with indirect execution on. The runs with this PR all ended on the title's side, not the GPU's. One is the watchdog's 30 s stall check at `+0x2215c35`, which #454 takes care of. The other two are an `int3` at `+0x63966f`, reached from a job worker (`+0x221c29c` calls the task, then `+0x257035e`, `+0x3e54ad0`). That's the pool case bunbeans2-arch describes in #597, and Exorion1er got it on an RX 9070 XT under Proton too (#454). It isn't the watchdog, and there was no stall before it in either run. Frame rate stays between 0.3 and 0.6 fps, nearly all of it in "preparing: copies", and the scene behind the title card is still dark. The machine wasn't idle during the runs, so don't read much into the fps. If you test `main` on Linux, the fault doesn't always stay inside the game. In the scripted run the job that timed out was the compositor's, on the other gfx ring. The ring reset failed, the kernel reset the whole GPU and the desktop session went down with it. In the run played by hand only the game lost its device.
Author
Owner

@⁠sennecools on GitHub · 2026-11-24 10:29 UTC · original

Second RX 9070 XT (RDNA 4) data point, as an A/B with one binary.

Setup: Windows 11 Pro 26300, AMD Radeon RX 9070 XT, Adrenalin driver 32.0.32029.2010. Diag build (--profile diag --features diagnostics) of main 8e79c80 + this PR at c48b240. #427 and #537 were also merged in; they only change report text. Runs were offline, with VICTORY_D3D12_DRED=1 and the same scripted input (VICTORY_KEYS, Enter every 10 s from 20 to 120 s), and a 480 s limit.

  • Bounded: no switch, so root SRVs are bounded tables (this PR).
  • Direct: VICTORY_ROOT_SRV_DIRECT=1, the old root descriptors.

The order was bounded, direct, direct, bounded, bounded, direct, so the cold shader cache of each mode's first run does not fall on one side.

Bounded (this PR) Direct
Seconds to device removal, from process start 462, 439, 396 134, 137, 112
Seconds in the world before removal (approx.) 376, 381, 337 76, 79, 48
Removal reason DXGI_ERROR_DEVICE_HUNG, 3 of 3 DXGI_ERROR_DEVICE_HUNG, 3 of 3
Page fault next to a title memory copy 0 of 3 3 of 3 (0x17000, 0x17000 and 0xa57000 past the copy's end; 2 of them "inside freed" textures)
Page fault anywhere 1 of 3 (not near any title copy) 3 of 3
Submissions logged as slow (slow host submission), and the slowest 187 / 2332 ms, 174 / 2615 ms, 169 / 1102 ms 47, 48, 29 (slowest about 1.0-1.2 s)
no free dynamic descriptor slots / root SRV not on 16 bytes 0 / 0 0 / 0
fps in the world (window title) 0-4, median 1 1-7, median 1

What the runs show:

  • The fault next to a copy that #336 left behind goes away with the bounded root SRVs. That includes the far overreads (0xa57000 here) as well as the short ones. In our runs before this PR, these "inside freed texture" faults sat 0x17000 to 22 MiB past a copy's end. That fits reads through an unsized root view, not early freeing: the host waits for every submission.
  • Time in the world goes from about 1 minute to about 6 minutes, with no overlap between the two sets.
  • This build still loses the device on this card. All three bounded runs ended as hung. Two had no page fault and were preceded by submissions over 2 s, beyond the default Windows GPU timeout (TDR). The third faulted away from any title copy. So the next limit here looks like the ~1 fps world frames, not memory.

All runs left the game folder unchanged (checked before and after) and made no network connections. No game data is in this comment.

AI-assisted (Claude Code).

**@⁠sennecools** on GitHub · 2026-11-24 10:29 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7128845783) Second RX 9070 XT (RDNA 4) data point, as an A/B with one binary. **Setup:** Windows 11 Pro 26300, AMD Radeon RX 9070 XT, Adrenalin driver 32.0.32029.2010. Diag build (`--profile diag --features diagnostics`) of `main` 8e79c80 + this PR at c48b240. #427 and #537 were also merged in; they only change report text. Runs were offline, with `VICTORY_D3D12_DRED=1` and the same scripted input (`VICTORY_KEYS`, Enter every 10 s from 20 to 120 s), and a 480 s limit. - **Bounded:** no switch, so root SRVs are bounded tables (this PR). - **Direct:** `VICTORY_ROOT_SRV_DIRECT=1`, the old root descriptors. The order was bounded, direct, direct, bounded, bounded, direct, so the cold shader cache of each mode's first run does not fall on one side. | | Bounded (this PR) | Direct | |---|---|---| | Seconds to device removal, from process start | 462, 439, 396 | 134, 137, 112 | | Seconds in the world before removal (approx.) | 376, 381, 337 | 76, 79, 48 | | Removal reason | `DXGI_ERROR_DEVICE_HUNG`, 3 of 3 | `DXGI_ERROR_DEVICE_HUNG`, 3 of 3 | | Page fault next to a title memory copy | 0 of 3 | 3 of 3 (0x17000, 0x17000 and 0xa57000 past the copy's end; 2 of them "inside freed" textures) | | Page fault anywhere | 1 of 3 (not near any title copy) | 3 of 3 | | Submissions logged as slow (`slow host submission`), and the slowest | 187 / 2332 ms, 174 / 2615 ms, 169 / 1102 ms | 47, 48, 29 (slowest about 1.0-1.2 s) | | `no free dynamic descriptor slots` / `root SRV not on 16 bytes` | 0 / 0 | 0 / 0 | | fps in the world (window title) | 0-4, median 1 | 1-7, median 1 | **What the runs show:** - The fault next to a copy that #336 left behind goes away with the bounded root SRVs. That includes the far overreads (0xa57000 here) as well as the short ones. In our runs before this PR, these "inside freed texture" faults sat 0x17000 to 22 MiB past a copy's end. That fits reads through an unsized root view, not early freeing: the host waits for every submission. - Time in the world goes from about 1 minute to about 6 minutes, with no overlap between the two sets. - This build still loses the device on this card. All three bounded runs ended as hung. Two had no page fault and were preceded by submissions over 2 s, beyond the default Windows GPU timeout (TDR). The third faulted away from any title copy. So the next limit here looks like the ~1 fps world frames, not memory. All runs left the game folder unchanged (checked before and after) and made no network connections. No game data is in this comment. AI-assisted (Claude Code).
Author
Owner

@⁠h0useadv on GitHub · 2026-11-24 10:37 UTC · original

Tested on an RX 9070 XT (driver 32.0.32029.2010, Ryzen 7 7800X3D, Windows 11 Pro 26300), merged onto main dd54de2 with a local diagnostics-only patch. Diag build, VICTORY_D3D12_DRED=1, the same scripted input as all my other runs (Enter every 3 s from 45 s), into the first mission.

Why I tried it: on this card, all seven page faults I'd collected without this PR land just past the end of a 4 MB title-memory host copy (nearest title memory copy below it: …+0x400000, offset 0x401000…0x452000, two further out). Details on #557: #557

With this PR (one run):

world (first frame above 300 draws) → device removed
dd54de2, two runs 149 s, 144 s
dd54de2 + diagnostics, four runs 22 s, 88 s, 26 s, 22 s
dd54de2 + diagnostics + #493 195 s

And the fault itself is different:

host GPU device removed after a submission of 1 lists; page fault at 0x1fe17e000; no title memory copy below it;
the nearest above: 0x12f80000+0xae00000 at host 0x267700000 (1272 copies in all) ...
a list stopped at command 169 of 196 (op 6)

No "past the end of a copy" offset this time, no "inside freed" texture, and the stopped command is op 6 rather than the op 42 mesh draws of every earlier fault. So in this run the over-read pattern was gone and something else ended it.

One run each, so this is a lead, not proof. But it fits the idea that unbounded root SRVs reading past their host copy are what produce the #557 faults on RDNA4.

AI-assisted (Claude Code). Logs are VIctory's own output, with no game data.

**@⁠h0useadv** on GitHub · 2026-11-24 10:37 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7129024266) Tested on an RX 9070 XT (driver 32.0.32029.2010, Ryzen 7 7800X3D, Windows 11 Pro 26300), merged onto `main` `dd54de2` with a local diagnostics-only patch. Diag build, `VICTORY_D3D12_DRED=1`, the same scripted input as all my other runs (Enter every 3 s from 45 s), into the first mission. **Why I tried it:** on this card, all seven page faults I'd collected without this PR land just past the end of a 4 MB title-memory host copy (`nearest title memory copy below it: …+0x400000, offset 0x401000`…`0x452000`, two further out). Details on #557: https://git.gtahub.st/github/Marvisak--VIctory/issues/557 **With this PR (one run):** | | world (first frame above 300 draws) → device removed | |---|---| | `dd54de2`, two runs | 149 s, 144 s | | `dd54de2` + diagnostics, four runs | 22 s, 88 s, 26 s, 22 s | | **`dd54de2` + diagnostics + #493** | **195 s** | And the fault itself is different: ``` host GPU device removed after a submission of 1 lists; page fault at 0x1fe17e000; no title memory copy below it; the nearest above: 0x12f80000+0xae00000 at host 0x267700000 (1272 copies in all) ... a list stopped at command 169 of 196 (op 6) ``` No "past the end of a copy" offset this time, no "inside freed" texture, and the stopped command is op 6 rather than the op 42 mesh draws of every earlier fault. So in this run the over-read pattern was gone and something else ended it. One run each, so this is a lead, not proof. But it fits the idea that unbounded root SRVs reading past their host copy are what produce the #557 faults on RDNA4. AI-assisted (Claude Code). Logs are VIctory's own output, with no game data.
Author
Owner

@⁠h0useadv on GitHub · 2026-11-24 10:49 UTC · original

Second run with this PR, same card, build and scripted input as above:

build world → device removed page fault
dd54de2 (2 runs) 149 s, 144 s both just past the end of a 4 MB host copy
dd54de2 + diagnostics (4 runs) 22 s, 88 s, 26 s, 22 s all past the end of a 4 MB host copy (one with no allocation)
+ #493, run 1 195 s at a low address with no copy below it, op 6
+ #493, run 2 445 s none: plain hang, a list stopped at command 127 of 129 (op 42), 32 lists

So across 2 runs with this PR against 6 without, the past-the-copy faults are gone and time in the world goes up (195 and 445 s against 22 to 149 s). Each run is still a single sample, but on RDNA4 this looks like it addresses the page faults reported in #557. What ends the run afterwards is a different problem: the hang family in #71, and the low-address fault in run 1.

AI-assisted (Claude Code). Logs are VIctory's own output, with no game data.

**@⁠h0useadv** on GitHub · 2026-11-24 10:49 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7129282025) Second run with this PR, same card, build and scripted input as above: | build | world → device removed | page fault | |---|---|---| | `dd54de2` (2 runs) | 149 s, 144 s | both just past the end of a 4 MB host copy | | `dd54de2` + diagnostics (4 runs) | 22 s, 88 s, 26 s, 22 s | all past the end of a 4 MB host copy (one with no allocation) | | **+ #493, run 1** | **195 s** | at a low address with no copy below it, op 6 | | **+ #493, run 2** | **445 s** | **none**: plain hang, `a list stopped at command 127 of 129 (op 42)`, 32 lists | So across 2 runs with this PR against 6 without, the past-the-copy faults are gone and time in the world goes up (195 and 445 s against 22 to 149 s). Each run is still a single sample, but on RDNA4 this looks like it addresses the page faults reported in #557. What ends the run afterwards is a different problem: the hang family in #71, and the low-address fault in run 1. AI-assisted (Claude Code). Logs are VIctory's own output, with no game data.
Author
Owner

@⁠LAKSHYA-cmd-tech on GitHub · 2026-11-24 11:07 UTC · original

Verified and merged downstream in https://github.com/LAKSHYA-cmd-tech/VIctory/pull/9 alongside retirement queues (#431) and multi-arg ExecuteIndirect (#757).

  • Adapted dynamic slot allocation to use \ ake_dynamic\ with lease-based slot reclamation.
  • Verified on Windows 11 D3D12: all 85 \ ictory-gpu\ tests and full workspace test suite (354 tests) pass cleanly.
**@⁠LAKSHYA-cmd-tech** on GitHub · 2026-11-24 11:07 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7129676704) Verified and merged downstream in https://github.com/LAKSHYA-cmd-tech/VIctory/pull/9 alongside retirement queues (#431) and multi-arg ExecuteIndirect (#757). - Adapted dynamic slot allocation to use \ ake_dynamic\ with lease-based slot reclamation. - Verified on Windows 11 D3D12: all 85 \ ictory-gpu\ tests and full workspace test suite (354 tests) pass cleanly.
Author
Owner

@⁠KingKaom on GitHub · 2026-11-24 11:09 UTC · original

RDNA4 data point for the combination: this PR at c48b240 merged onto the #431 + #568 + #67 stack (base main 8e79c80, merge d950974), diag build, VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1, scripted Enter input. One run on a box whose every pre-#493 stack run faulted.

build seconds in the world page fault
#431+#568+#67 stack (our earlier run, same box) ~150 yes: a read 0x6b000 into a window whose host copy mapping is 8 KB — the low-address, past-the-copy family — breadcrumbs done == count
stack + this PR ~390 zero page-fault lines in the whole run (and zero inside freed); the run ended as a plain hang after a submission of 32 lists, every list's breadcrumbs done == count, DXGI_ERROR_DEVICE_HUNG (0x887A0005)

So on this box the freed-lifetime family (removed by #431, as reported on #59) and the past-the-window faults are both gone once root SRVs are bounded — #493 subsumes the fault-removal role #431 played here. What ends the run is the same timeout family the reports above describe: in-world frame times logged 0.6–2.3 fps, last frames ~2.9 s, preceded by submissions over 2 s.

The render itself now looks gated on translation, not memory: 536 unique shader does not translate hashes logged this run (434 compute / 58 pixel / 36 mesh / 8 vertex), with 500–1000+ draws per frame dropped for having no host pipeline, and the copy counters accounting ~10 GB/frame of title-copy refresh.

Single run, so the seconds are suggestive and the zero-faults line is the reliable part (the fault line was logged reliably in every earlier run on this setup).

AI-assisted (Hermes Agent).

**@⁠KingKaom** on GitHub · 2026-11-24 11:09 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7129734286) RDNA4 data point for the **combination**: this PR at `c48b240` merged onto the `#431 + #568 + #67` stack (base `main 8e79c80`, merge `d950974`), diag build, `VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1`, scripted Enter input. One run on a box whose every pre-#493 stack run faulted. | build | seconds in the world | page fault | |---|---|---| | `#431+#568+#67` stack (our earlier run, same box) | ~150 | yes: a read `0x6b000` into a window whose host copy mapping is 8 KB — the low-address, past-the-copy family — breadcrumbs `done == count` | | stack + this PR | ~390 | **zero page-fault lines in the whole run** (and zero `inside freed`); the run ended as a plain hang after a submission of 32 lists, every list's breadcrumbs `done == count`, `DXGI_ERROR_DEVICE_HUNG` (0x887A0005) | So on this box the freed-lifetime family (removed by #431, as reported on #59) **and** the past-the-window faults are both gone once root SRVs are bounded — #493 subsumes the fault-removal role #431 played here. What ends the run is the same timeout family the reports above describe: in-world frame times logged 0.6–2.3 fps, last frames ~2.9 s, preceded by submissions over 2 s. The render itself now looks gated on translation, not memory: 536 unique `shader does not translate` hashes logged this run (434 compute / 58 pixel / 36 mesh / 8 vertex), with 500–1000+ draws per frame dropped for having no host pipeline, and the copy counters accounting ~10 GB/frame of title-copy refresh. Single run, so the seconds are suggestive and the zero-faults line is the reliable part (the fault line was logged reliably in every earlier run on this setup). AI-assisted (Hermes Agent).
Author
Owner

@⁠ChruutvoLuzi on GitHub · 2026-11-24 12:40 UTC · original · edited 2026-11-24 13:08 UTC

RTX 4090 (driver 621.01, Windows 11), diag build, VICTORY_D3D12_DRED=1, this PR at c48b240. On this card this PR on its own removes the world hang (#71). #483 isn't needed for it, nor is anything else I had stacked. One run per row; I stopped the runs that didn't end after 20 minutes from launch.

Build World Mesh pipelines Draws per frame
main ffe310e ~20 s, then 0x887A0006 after a 5.4 s list 484 ~2,000
main + this PR 19 min, no device removal 718 ~2,000

Those two used VICTORY_SHADER_LOOP_LIMIT=1024 and no watchdog hook. The same holds on a larger stack (main + #646, #454, #439 with #233 under it, and #160; loop limit 256, VICTORY_NO_WATCHDOG=1):

Build World Mesh pipelines Draws per frame
stack ~20 s, then 0x887A0006 after a 4.9 s list 511 ~1,900
stack + this PR + #483 19 min, no device removal 715 ~1,870
stack + this PR 19 min, no device removal 717 ~1,870
stack + #578, for comparison 19.5 min, no device removal 0 ~300

Without this PR, three of four runs on the fresh base stopped at the same command: a direct DispatchMesh of 159 groups on 4adfa13bea1c556a (MSR_VS_CascadeShadows_drawskinned), mesh only, which reads its vertex data through root parameter 3. With this PR that stop and the later ones are gone, and the mesh draws stay in, which #578 can't do on 32-lane hosts because it refuses every mesh program there.

Edit: the default loop limit isn't enough on its own. With it instead of 1024, main + this PR hung 16 s into the world at mesh 04b9be3756e8f41c, pixel 1af4a50c7fb40c97, a pixel program with nested loops (reported on #71). So on this card it takes this PR plus a loop limit such as 1024.

AI-assisted (Claude Code).

**@⁠ChruutvoLuzi** on GitHub · 2026-11-24 12:40 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7131769558) · edited 2026-11-24 13:08 UTC RTX 4090 (driver 621.01, Windows 11), diag build, `VICTORY_D3D12_DRED=1`, this PR at `c48b240`. On this card this PR on its own removes the world hang (#71). #483 isn't needed for it, nor is anything else I had stacked. One run per row; I stopped the runs that didn't end after 20 minutes from launch. | Build | World | Mesh pipelines | Draws per frame | |---|---|---|---| | `main` `ffe310e` | ~20 s, then `0x887A0006` after a 5.4 s list | 484 | ~2,000 | | `main` + this PR | 19 min, no device removal | 718 | ~2,000 | Those two used `VICTORY_SHADER_LOOP_LIMIT=1024` and no watchdog hook. The same holds on a larger stack (`main` + #646, #454, #439 with #233 under it, and #160; loop limit 256, `VICTORY_NO_WATCHDOG=1`): | Build | World | Mesh pipelines | Draws per frame | |---|---|---|---| | stack | ~20 s, then `0x887A0006` after a 4.9 s list | 511 | ~1,900 | | stack + this PR + #483 | 19 min, no device removal | 715 | ~1,870 | | stack + this PR | 19 min, no device removal | 717 | ~1,870 | | stack + #578, for comparison | 19.5 min, no device removal | 0 | ~300 | Without this PR, three of four runs on the fresh base stopped at the same command: a direct `DispatchMesh` of 159 groups on `4adfa13bea1c556a` (`MSR_VS_CascadeShadows_drawskinned`), mesh only, which reads its vertex data through root parameter 3. With this PR that stop and the later ones are gone, and the mesh draws stay in, which #578 can't do on 32-lane hosts because it refuses every mesh program there. Edit: the default loop limit isn't enough on its own. With it instead of 1024, `main` + this PR hung 16 s into the world at `mesh 04b9be3756e8f41c, pixel 1af4a50c7fb40c97`, a pixel program with nested loops (reported on #71). So on this card it takes this PR plus a loop limit such as 1024. AI-assisted (Claude Code).
Author
Owner

@⁠Headache3318 on GitHub · 2026-11-24 14:26 UTC · original

Review-surface clarification plus two soft spots nobody has named on this thread. The PR body's framing ("the diff against main shows #336's two commits until that one is merged") is stale: #336 merged 08:00Z as edf64e2, and git merge-base --is-ancestor against a depth-500 refetch of tip ffe310eb confirms 3c81420 and e8d3b64 are byte-identical in main — the live review surface is commit 3 c48b240 (+172/-2) alone. Two open questions for that commit, neither merge-blocking: root_srv_slots is a HashMap<(usize,u64), u32> whose own comment says "One slot per address per list", so the bound one-view table is made once per address per list while the shadow copy can refresh again later in the same list — a bound table can lag the freshest copy; and reads past the copy end are bounded to zeros, but the refresh path is capped at 1 MiB per bind, so reads past the cap see stale copy data — bounded but not fresh. Watch item rather than defect: one dynamic slot per distinct root-SRV address per list is appetite on the very pool #336 grew, and this thread's own NVIDIA runs already report dropped=65536 dynamic-slot exhaustion with #336+#493 both on, next to #653's "dynamic descriptor slots of lists that already ran are taken back" warning. AI-assisted independent second-read from pull/493.patch at head c48b240 on Arch Linux; nothing built or run from this box; commands: git fetch --depth=500 upstream main + git merge-base --is-ancestor + greps of the patch.

**@⁠Headache3318** on GitHub · 2026-11-24 14:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7134368267) **Review-surface clarification plus two soft spots nobody has named on this thread.** The PR body's framing ("the diff against main shows #336's two commits until that one is merged") is stale: #336 merged 08:00Z as `edf64e2`, and `git merge-base --is-ancestor` against a depth-500 refetch of tip `ffe310eb` confirms `3c81420` and `e8d3b64` are byte-identical in `main` — the live review surface is commit 3 `c48b240` (+172/-2) alone. Two open questions for that commit, neither merge-blocking: `root_srv_slots` is a `HashMap<(usize,u64), u32>` whose own comment says "One slot per address per list", so the bound one-view table is made once per address per list while the shadow copy can refresh again later in the same list — a bound table can lag the freshest copy; and reads past the copy end are bounded to zeros, but the refresh path is capped at 1 MiB per bind, so reads past the cap see stale copy data — bounded but not fresh. Watch item rather than defect: one dynamic slot per distinct root-SRV address per list is appetite on the very pool #336 grew, and this thread's own NVIDIA runs already report `dropped=65536` dynamic-slot exhaustion with #336+#493 both on, next to #653's "dynamic descriptor slots of lists that already ran are taken back" warning. AI-assisted independent second-read from `pull/493.patch` at head `c48b240` on Arch Linux; nothing built or run from this box; commands: `git fetch --depth=500 upstream main` + `git merge-base --is-ancestor` + greps of the patch.
Author
Owner

@⁠KevinPratap on GitHub · 2026-11-24 15:08 UTC · original

Extending this to root UAVs (#294) removed the remaining NVIDIA world hangs on an RTX 4050 Laptop (32-lane waves; Windows 11, title 1.0.2.1, diagnostics build of an integration branch with #294, #493, #578, VICTORY_D3D12_DRED=1).

The world's job dispatches (e.g. 4ddd6f9702fab2a7, 28918b7150a7aad5: root descriptors only, Cbv s0 + Uav s1 + Uav s2) build raw descriptors (num_records -1) on their root UAV addresses and follow offsets read from data. One stopped run had the root UAV's host copy end 0xaff00 past the address. With a bare root UAV, reads past that reach other host memory, and the GPU stalled with no page fault until the device was removed as hung, 1.5-2 minutes into the world in every run.

Same shape as this PR, for D3D12_ROOT_PARAMETER_TYPE_UAV:

  • root signature: a one-range table (D3D12_DESCRIPTOR_RANGE_TYPE_UAV, same register and space) in place of the root UAV;
  • bind: a dynamic slot per (heap, address, kind) holding CreateUnorderedAccessView of the host copy from the address to its end (R32_TYPELESS, D3D12_BUFFER_UAV_FLAG_RAW, FirstElement = offset / 4), refreshed and given to copy-back as root_view does for root UAVs (refresh, gpu_writes, UNORDERED_ACCESS state);
  • a null raw UAV when the title set none, or when the address is not on 16 bytes (seen once in the world);
  • tabled whenever bounded root views are on, not only for pipelines that use a view heap, since these dispatches read no other view. A dispatch with no view heap bound is dropped and logged; that never happened in the world.

Result: with this, a 5-minute world run had no removal (slowest submission 1.6 s), where every run before lost the device. Separately, root UAVs were refreshed and copied back for 2 MiB only (#294's ROOT_UAV_MAX), while the jobs' buffer is 64 MiB and they read ~3 MB in. Raising it (posted in #71) was needed too.

AI-assisted.

**@⁠KevinPratap** on GitHub · 2026-11-24 15:08 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7135517499) Extending this to root UAVs (#294) removed the remaining NVIDIA world hangs on an RTX 4050 Laptop (32-lane waves; Windows 11, title 1.0.2.1, diagnostics build of an integration branch with #294, #493, #578, `VICTORY_D3D12_DRED=1`). The world's job dispatches (e.g. `4ddd6f9702fab2a7`, `28918b7150a7aad5`: root descriptors only, `Cbv s0` + `Uav s1` + `Uav s2`) build raw descriptors (num_records `-1`) on their root UAV addresses and follow offsets read from data. One stopped run had the root UAV's host copy end `0xaff00` past the address. With a bare root UAV, reads past that reach other host memory, and the GPU stalled with no page fault until the device was removed as hung, 1.5-2 minutes into the world in every run. Same shape as this PR, for `D3D12_ROOT_PARAMETER_TYPE_UAV`: - root signature: a one-range table (`D3D12_DESCRIPTOR_RANGE_TYPE_UAV`, same register and space) in place of the root UAV; - bind: a dynamic slot per (heap, address, kind) holding `CreateUnorderedAccessView` of the host copy from the address to its end (`R32_TYPELESS`, `D3D12_BUFFER_UAV_FLAG_RAW`, `FirstElement = offset / 4`), refreshed and given to copy-back as `root_view` does for root UAVs (`refresh`, `gpu_writes`, `UNORDERED_ACCESS` state); - a null raw UAV when the title set none, or when the address is not on 16 bytes (seen once in the world); - tabled whenever bounded root views are on, not only for pipelines that use a view heap, since these dispatches read no other view. A dispatch with no view heap bound is dropped and logged; that never happened in the world. Result: with this, a 5-minute world run had no removal (slowest submission 1.6 s), where every run before lost the device. Separately, root UAVs were refreshed and copied back for 2 MiB only (#294's `ROOT_UAV_MAX`), while the jobs' buffer is 64 MiB and they read ~3 MB in. Raising it (posted in #71) was needed too. AI-assisted.
Author
Owner

@⁠Yaekai on GitHub · 2026-11-24 16:18 UTC · original

Independent verification on Windows 11 + NVIDIA RTX 3070 (Ampere, 8 GB, Rust 1.98.1) at head c48b240:

  • cargo test -p victory-gpu --lib: 43 passed, 0 failed.
  • cargo clippy -p victory-gpu -- -D warnings: 0 warnings.
  • Live GTA VI (1.0.2.1, --console series-s, release build on ffe310e + #493 + #452 + #587 + #206): stayed up in the 3D world for 19+ minutes (~2,300 draws/frame) with 0 GPU page faults / 0 device removals (closed manually). Ready to merge!
**@⁠Yaekai** on GitHub · 2026-11-24 16:18 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7137462846) Independent verification on Windows 11 + NVIDIA RTX 3070 (Ampere, 8 GB, Rust 1.98.1) at head `c48b240`: - `cargo test -p victory-gpu --lib`: 43 passed, 0 failed. - `cargo clippy -p victory-gpu -- -D warnings`: 0 warnings. - Live GTA VI (`1.0.2.1`, `--console series-s`, release build on `ffe310e` + `#493` + `#452` + `#587` + `#206`): stayed up in the 3D world for **19+ minutes** (~2,300 draws/frame) with **0 GPU page faults / 0 device removals** (closed manually). Ready to merge!
Author
Owner

@⁠Ctrl-Alt-Haze on GitHub · 2026-11-24 16:51 UTC · original

Independent verification on Windows 11, RTX 5070 Ti (driver 32.0.16.2135) + WARP (VICTORY_D3D12_DEBUG=1), dxil.dll 1.8.2502.11, Rust 1.98.1:

  • c48b240 trial-merges cleanly onto upstream/main (ffe310eb).
  • On unmerged c48b240, cargo clippy --workspace --all-targets -- -D warnings fails on pre-ffe310eb lints (xmem.rs:747, host.rs:267 already fixed in main). After a trial merge with ffe310eb, cargo clippy --workspace --all-targets --all-features --locked -- -D warnings passes.
  • On c48b240: cargo xtask policy (151 files ok), cargo test --workspace --locked (263 passed, 0 failed, 4 ignored), victory-shader --features host (69 passed, 0 failed on RTX 5070 Ti & WARP), victory-gpu --features diagnostics (45 passed, 0 failed, 1 ignored on RTX 5070 Ti & WARP, 0 D3D12 debug errors/warnings).
  • All 4 added unsafe blocks have // SAFETY: comments. Needs a rebase onto upstream/main so CI Clippy passes (and a unit/GPU test verifying root-SRV bounding/caching behavior would be a nice addition; root_srv_slots caches one slot per (list, addr) and root UAVs remain out of scope).

AI-assisted verification on local RTX 5070 Ti + WARP; no game data.

**@⁠Ctrl-Alt-Haze** on GitHub · 2026-11-24 16:51 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7138305585) Independent verification on **Windows 11**, **RTX 5070 Ti** (driver `32.0.16.2135`) + **WARP** (`VICTORY_D3D12_DEBUG=1`), **dxil.dll `1.8.2502.11`**, **Rust `1.98.1`**: - `c48b240` trial-merges cleanly onto `upstream/main` (`ffe310eb`). - On unmerged `c48b240`, `cargo clippy --workspace --all-targets -- -D warnings` fails on pre-`ffe310eb` lints (`xmem.rs:747`, `host.rs:267` already fixed in `main`). After a trial merge with `ffe310eb`, `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` **passes**. - On `c48b240`: `cargo xtask policy` (`151 files ok`), `cargo test --workspace --locked` (**263 passed, 0 failed, 4 ignored**), `victory-shader --features host` (**69 passed, 0 failed** on RTX 5070 Ti & WARP), `victory-gpu --features diagnostics` (**45 passed, 0 failed, 1 ignored** on RTX 5070 Ti & WARP, 0 D3D12 debug errors/warnings). - All 4 added `unsafe` blocks have `// SAFETY:` comments. Needs a rebase onto `upstream/main` so CI Clippy passes (and a unit/GPU test verifying root-SRV bounding/caching behavior would be a nice addition; `root_srv_slots` caches one slot per `(list, addr)` and root UAVs remain out of scope). AI-assisted verification on local RTX 5070 Ti + WARP; no game data.
Author
Owner

@⁠Headache3318 on GitHub · 2026-11-24 16:53 UTC · original

Cross-target second check (AI-assisted, Arch Linux kernel 7.3.5, mingw, rustc 1.98.1): cherry-picking c48b240a onto ffe310e merges clean (local a383d61a, +172/-2, 3 files) and builds clean on x86_64-pc-windows-gnu — cargo build -p victory --profile diag --features diagnostics --locked --jobs 3 exit 0, 0 errors, 0 warnings, 47,882,380-byte PE32+ (sha256:8644aff4cd58bf2aba4b79310cbdfbbcd8186fd6bb59345844ea2e7d02922250) — a target upstream CI (windows-latest MSVC only) does not test. On Linux the merged tree still reproduces #90 identically (E0425 host_resource, resource.rs:284, exit 101); zero errors and zero warnings land in the files this delta touches (the 9+2 warnings are all main-side). Not run under Wine here: D3D12CreateDevice returns 0x80070057 under every Proton build on this box (see my #49 report), so this check is compile-only.

**@⁠Headache3318** on GitHub · 2026-11-24 16:53 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7138358226) Cross-target second check (AI-assisted, Arch Linux kernel 7.3.5, mingw, rustc 1.98.1): cherry-picking `c48b240a` onto `ffe310e` merges **clean** (local `a383d61a`, +172/-2, 3 files) and builds **clean** on `x86_64-pc-windows-gnu` — `cargo build -p victory --profile diag --features diagnostics --locked --jobs 3` exit 0, 0 errors, 0 warnings, 47,882,380-byte PE32+ (`sha256:8644aff4cd58bf2aba4b79310cbdfbbcd8186fd6bb59345844ea2e7d02922250`) — a target upstream CI (windows-latest MSVC only) does not test. On Linux the merged tree still reproduces #90 identically (`E0425 host_resource`, `resource.rs:284`, exit 101); zero errors and zero warnings land in the files this delta touches (the 9+2 warnings are all main-side). Not run under Wine here: `D3D12CreateDevice` returns 0x80070057 under every Proton build on this box (see my #49 report), so this check is compile-only.
Author
Owner

@⁠sash2kk on GitHub · 2026-11-24 17:43 UTC · original

RTX 4090 (driver 32.0.16.1088, Windows 11 Pro 23H2): an independent confirmation of @⁠ChruutvoLuzi's result. With this PR, the wave64 mesh programs run on 32-lane waves without hanging.

Setup: main ffe310e + this PR (c48b240, merged cleanly), no #578, diagnostics build, VICTORY_D3D12_DRED=1 VICTORY_SHADER_LOOP_LIMIT=1024, same save and VICTORY_KEYS each run.

run result
this PR in the world with mesh running: 656 host mesh pipelines, 1,706 draws per frame on average (max 3,162). Device removed 4.2 min in, at dispatch 12x1x1 [compute eeed82b877b44b5f], the wave64 compute hang discussed on #578, which is independent of this PR.
this PR + VICTORY_SKIP_PIPELINES=eeed82b877b44b5f no device removal: 17.5 min in the world, until my 20-min timeout. 2,047 draws per frame on average (max 3,618), 1.15 fps.

For comparison, the same save with #578 instead (wave64 mesh refused, plus the compute refusal) stays up too, but at about 400 draws per frame.

So on this card, this PR plus a fix for eeed82 keeps the world geometry and stays up. The presented frame is still black (VICTORY_CAPTURE at frame 4096), as on the other cards; I have not looked at the render targets yet.

AI-assisted (Claude Code).

**@⁠sash2kk** on GitHub · 2026-11-24 17:43 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7139623538) RTX 4090 (driver 32.0.16.1088, Windows 11 Pro 23H2): an independent confirmation of @⁠ChruutvoLuzi's result. With this PR, the wave64 mesh programs run on 32-lane waves without hanging. Setup: `main` `ffe310e` + this PR (`c48b240`, merged cleanly), no #578, diagnostics build, `VICTORY_D3D12_DRED=1 VICTORY_SHADER_LOOP_LIMIT=1024`, same save and `VICTORY_KEYS` each run. | run | result | |---|---| | this PR | in the world with mesh running: **656 host mesh pipelines, 1,706 draws per frame on average (max 3,162)**. Device removed 4.2 min in, at `dispatch 12x1x1 [compute eeed82b877b44b5f]`, the wave64 compute hang discussed on #578, which is independent of this PR. | | this PR + `VICTORY_SKIP_PIPELINES=eeed82b877b44b5f` | **no device removal: 17.5 min in the world**, until my 20-min timeout. 2,047 draws per frame on average (max 3,618), 1.15 fps. | For comparison, the same save with #578 instead (wave64 mesh refused, plus the compute refusal) stays up too, but at about 400 draws per frame. So on this card, this PR plus a fix for `eeed82` keeps the world geometry and stays up. The presented frame is still black (`VICTORY_CAPTURE` at frame 4096), as on the other cards; I have not looked at the render targets yet. AI-assisted (Claude Code).
Author
Owner

@⁠ryosen0 on GitHub · 2026-11-24 18:17 UTC · original · edited 2026-11-24 18:31 UTC

RTX 3060 Ti (Ampere) confirmation at c48b240. Windows 11 Pro 22631, RTX 3060 Ti 8 GB, driver 32.0.16.1742, title 1.0.2.1 (b99f876b), diag build, DRED on. Stack: main ffe310e + this PR + #206 05981dd + #454 d2c93fa, VICTORY_SHADER_LOOP_LIMIT=1024, VICTORY_NO_WATCHDOG=1. 30.7 minutes with the world reached, frame 8192 drawn = 44103/44103, 0 dropped draws; none of the four mesh programs that stopped our runs on 8e79c80 (4adfa13bea1c556a first among them) recurred. The run ended in 0x887A0006 on a compute submission naming eeed82b877b44b5f / 4c0ac499ad613809 / aaf7da7a94dc72a9 - the frontier reported on #578, outside this PR's scope. Full A/B table posted on #71. One run.

AI-assisted; measurements are from a real RTX 3060 Ti run.

**@⁠ryosen0** on GitHub · 2026-11-24 18:17 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7140436122) · edited 2026-11-24 18:31 UTC **RTX 3060 Ti (Ampere) confirmation at `c48b240`.** Windows 11 Pro 22631, RTX 3060 Ti 8 GB, driver 32.0.16.1742, title 1.0.2.1 (`b99f876b`), diag build, DRED on. Stack: `main` `ffe310e` + this PR + #206 `05981dd` + #454 `d2c93fa`, `VICTORY_SHADER_LOOP_LIMIT=1024`, `VICTORY_NO_WATCHDOG=1`. 30.7 minutes with the world reached, frame 8192 drawn = 44103/44103, 0 dropped draws; none of the four mesh programs that stopped our runs on `8e79c80` (`4adfa13bea1c556a` first among them) recurred. The run ended in `0x887A0006` on a compute submission naming `eeed82b877b44b5f` / `4c0ac499ad613809` / `aaf7da7a94dc72a9` - the frontier reported on #578, outside this PR's scope. Full A/B table posted on #71. One run. AI-assisted; measurements are from a real RTX 3060 Ti run.
Author
Owner

@⁠Bladureau on GitHub · 2026-11-24 20:27 UTC · original

Tested c48b240 in the title on an RTX 4060 Laptop (8 GB, 32-lane waves). It keeps the mesh draws, but on this card it does not stop the world hang.

Setup: Windows 11 Pro 26300, NVIDIA GeForce RTX 4060 Laptop GPU 8 GB (driver 617.14), i7-13650HX, 32 GB, title 1.0.2.1 (exe BLAKE3 b99f876b74d4a77f…). This PR is merged onto main ffe310e with #334 (c99e429) and #1548 (4002dd7), all cleanly, without #578. I tried to add #483 as well, but it conflicts with main in descriptor/host.rs: its guard slot assumes the heap layout from before #336 and #1548. So it is not in this run. I used VICTORY_SHADER_LOOP_LIMIT=1024, as in @⁠ChruutvoLuzi's RTX 4090 run, and VICTORY_D3D12_DRED=1, in a diag build. I played into the first mission's intro by hand.

main + #578 + #334 + #1548 main + #334 + #1548 + this PR
Device removal none in about 200 s in the world (closed by me) 0x887A0006 after about 216 s in the world
Slow submissions 1 (564 ms) 9, up to 6.0 s
Draws/frame (last frame report) 442 1,963
Dropped without a host pipeline, per frame 3,777 1,378
Frame time 968 ms (1.0 fps) 1,634 ms (0.6 fps): 1,087 ms preparing, 341 ms on the GPU
Picture black still black

DRED stopped at dispatch 16x1x1 [compute 9146291b38ea9ce1] (command 4 of 12 in list 5 of 29). That program also runs throughout my #578 runs, about 10 minutes in the world, without a hang. So it is probably where the GPU was when the timeout hit, not the cause. Without #578, the wave64 mesh and compute programs run, which looks like the hang again, or the unbounded heap index that #483 addresses.

I am happy to rerun this with #483 once it is rebased onto the current heap layout.

**@⁠Bladureau** on GitHub · 2026-11-24 20:27 UTC · [original](https://github.com/Marvisak/VIctory/pull/493#issuecomment-7143577224) Tested `c48b240` in the title on an **RTX 4060 Laptop (8 GB, 32-lane waves)**. It keeps the mesh draws, but **on this card it does not stop the world hang**. **Setup:** Windows 11 Pro 26300, NVIDIA GeForce RTX 4060 Laptop GPU 8 GB (driver 617.14), i7-13650HX, 32 GB, title 1.0.2.1 (exe BLAKE3 `b99f876b74d4a77f…`). This PR is merged onto `main` `ffe310e` with #334 (`c99e429`) and #1548 (`4002dd7`), all cleanly, without #578. I tried to add #483 as well, but it conflicts with `main` in `descriptor/host.rs`: its guard slot assumes the heap layout from before #336 and #1548. So it is not in this run. I used `VICTORY_SHADER_LOOP_LIMIT=1024`, as in @⁠ChruutvoLuzi's RTX 4090 run, and `VICTORY_D3D12_DRED=1`, in a diag build. I played into the first mission's intro by hand. | | `main` + #578 + #334 + #1548 | `main` + #334 + #1548 + this PR | |---|---|---| | Device removal | none in about 200 s in the world (closed by me) | **`0x887A0006` after about 216 s in the world** | | Slow submissions | 1 (564 ms) | 9, up to 6.0 s | | Draws/frame (last frame report) | 442 | **1,963** | | Dropped without a host pipeline, per frame | 3,777 | 1,378 | | Frame time | 968 ms (1.0 fps) | 1,634 ms (0.6 fps): 1,087 ms preparing, 341 ms on the GPU | | Picture | black | still black | DRED stopped at `dispatch 16x1x1 [compute 9146291b38ea9ce1]` (command 4 of 12 in list 5 of 29). That program also runs throughout my #578 runs, about 10 minutes in the world, without a hang. So it is probably where the GPU was when the timeout hit, not the cause. Without #578, the wave64 mesh and compute programs run, which looks like the hang again, or the unbounded heap index that #483 addresses. I am happy to rerun this with #483 once it is rebased onto the current heap layout.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/Marvisak--VIctory!493
No description provided.