NVIDIA capped view heap: 2^16 dynamic slots starve world tables; 2^18 removes the indirect/mesh drops #747

Open
opened 2026-11-26 04:13:55 +00:00 by github-bot · 27 comments
Owner

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

On NVIDIA the shader-visible view heap is capped at 1,000,000. An RTX 4070 Ti on binding tier 3 refuses 1,000,001, so a bigger heap is not an option. HostHeap::new then falls back to MIN_DYNAMIC = 1 << 16 dynamic slots (crates/victory-gpu/src/descriptor/host.rs). With GPU-driven world rendering that pool runs dry inside every submission. Most of the world's indirect draws and mesh dispatches are then dropped as "a descriptor table without dynamic slots", which leaves the G-buffer nearly empty. The comment on DYNAMIC already notes that 2^16 ran out on an RX 9070 XT (#59). On a capped heap that is still the amount it gets.

Measured (RTX 4070 Ti, Windows 11, title build 1.0.2.1, local integration branch = main + many open PRs)

  • The title's view heap has 1,245,184 slots. It writes about 1.1M of them, and its tables reach the top of the heap.
  • Tables that must be made fresh (constant buffers, or tables past the mirrored range) need about 300-550k slots per 5 s, against 65,536 dynamic slots. The existing per-list dedupe of fresh tables hits only 10-15%.
  • Per frame in the world, with the 2^16 split: indirect kind 10 (mesh) about 410-670 dropped, kind 2 (dispatch) about 480-540, kind 0 rectangles about 190-200, kind 1 about 60, plus about 280 direct draws/dispatches. All for "no dynamic slots".
  • With 2^18 dynamic slots on the capped heap (672,319 title slots mirrored): zero "no dynamic slots" drops, and no table refused as past the heap. Indirect drops fell from 1,484-1,768 to 322 per frame on average; the 322 left are shaders that don't translate. Draws run per frame went from about 1,460 to 2,690. G-buffer coverage at a 2,000-draw frame of the first cutscene went from about 0.1% to 60-65% (terrain, cliffs, characters).

Proposed change

MIN_DYNAMIC = 1 << 18 (or the capped path uses DYNAMIC). The cost is that bindless reads of title indices above about 672k land on the null/guard slot instead of above about 869k. In this title no draw was refused as past the heap after the change.

A second, independent saving: a fresh table only needs slots from the first entry its shaders actually use, not from entry 0. Large tables (more than 64 entries, about 140 slots each) where shaders read a few entries made up about 90% of the demand.

I have this on a local branch with tests (a_reserve_keeps_dynamic_slots_for_required_tables, fresh_tables_start_at_their_first_used_entry). I can't open a PR while PR creation is limited to collaborators, but I'm happy to provide the diff.

Related: #16 (1M heap cap on NVIDIA), #336 (2^18 dynamic slots where the heap fits), #735 (a 1.31M heap on an RTX 4060 Laptop).

**@⁠Vaximous** on GitHub · 2026-11-24 09:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/747) On NVIDIA the shader-visible view heap is capped at 1,000,000. An RTX 4070 Ti on binding tier 3 refuses 1,000,001, so a bigger heap is not an option. `HostHeap::new` then falls back to `MIN_DYNAMIC = 1 << 16` dynamic slots (`crates/victory-gpu/src/descriptor/host.rs`). With GPU-driven world rendering that pool runs dry inside every submission. Most of the world's indirect draws and mesh dispatches are then dropped as "a descriptor table without dynamic slots", which leaves the G-buffer nearly empty. The comment on `DYNAMIC` already notes that 2^16 ran out on an RX 9070 XT (#59). On a capped heap that is still the amount it gets. ## Measured (RTX 4070 Ti, Windows 11, title build 1.0.2.1, local integration branch = main + many open PRs) - The title's view heap has 1,245,184 slots. It writes about 1.1M of them, and its tables reach the top of the heap. - Tables that must be made fresh (constant buffers, or tables past the mirrored range) need **about 300-550k slots per 5 s**, against 65,536 dynamic slots. The existing per-list dedupe of fresh tables hits only 10-15%. - Per frame in the world, with the 2^16 split: indirect kind 10 (mesh) about 410-670 dropped, kind 2 (dispatch) about 480-540, kind 0 rectangles about 190-200, kind 1 about 60, plus about 280 direct draws/dispatches. All for "no dynamic slots". - **With 2^18 dynamic slots on the capped heap** (672,319 title slots mirrored): zero "no dynamic slots" drops, and no table refused as past the heap. Indirect drops fell from 1,484-1,768 to 322 per frame on average; the 322 left are shaders that don't translate. Draws run per frame went from about 1,460 to 2,690. G-buffer coverage at a 2,000-draw frame of the first cutscene went from about 0.1% to 60-65% (terrain, cliffs, characters). ## Proposed change `MIN_DYNAMIC = 1 << 18` (or the capped path uses `DYNAMIC`). The cost is that bindless reads of title indices above about 672k land on the null/guard slot instead of above about 869k. In this title no draw was refused as past the heap after the change. A second, independent saving: a fresh table only needs slots from the first entry its shaders actually use, not from entry 0. Large tables (more than 64 entries, about 140 slots each) where shaders read a few entries made up about 90% of the demand. I have this on a local branch with tests (`a_reserve_keeps_dynamic_slots_for_required_tables`, `fresh_tables_start_at_their_first_used_entry`). I can't open a PR while PR creation is limited to collaborators, but I'm happy to provide the diff. Related: #16 (1M heap cap on NVIDIA), #336 (2^18 dynamic slots where the heap fits), #735 (a 1.31M heap on an RTX 4060 Laptop).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:13:55 +00:00
Author
Owner

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

Another data point from an RTX 5060 Ti (driver 32.0.16.2135, Windows 11, title 1.0.2.1), on main at 8e79c80 with no other patches, diag build with DRED. One run each, scenes not matched, so treat the averages as rough. This was tested and written with an AI assistant.

main (1 << 16) only MIN_DYNAMIC = 1 << 18
"no dynamic slots" log reached dropped=32768 never logged
draws/frame, world average 2358 2665
indirect dropped/frame, world average 2004 1624
ms/frame, world average 1713 1513
compute pipelines refused (0x80070057) 116 114

Averages are over the log's fps lines in the world (14 and 8 samples).

The change removes the slot drops here too. Most indirect drops remain, and I have not separated out their causes. I did not compare image quality.

It does not fix the device removal: both runs ended with 0x887A0006 in the world. On main, nvlddmkm logged an SM Warp Exception (MMU Fault), and DRED pointed at mesh ba9865c71b8d1947. A third run on main, skipping that shader, was also removed, with DRED pointing at an indirect mesh draw (09c742c58e9acb62), so it does not look like one shader. The 1 << 18 run and the third run logged nvlddmkm event 153 but no MMU fault.

I can share logs if useful.

**@⁠FADZIII** on GitHub · 2026-11-24 09:44 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7127829805) Another data point from an RTX 5060 Ti (driver 32.0.16.2135, Windows 11, title 1.0.2.1), on main at 8e79c80 with no other patches, diag build with DRED. One run each, scenes not matched, so treat the averages as rough. This was tested and written with an AI assistant. | | main (`1 << 16`) | only `MIN_DYNAMIC = 1 << 18` | |---|---|---| | "no dynamic slots" log | reached dropped=32768 | never logged | | draws/frame, world average | 2358 | 2665 | | indirect dropped/frame, world average | 2004 | 1624 | | ms/frame, world average | 1713 | 1513 | | compute pipelines refused (0x80070057) | 116 | 114 | Averages are over the log's fps lines in the world (14 and 8 samples). The change removes the slot drops here too. Most indirect drops remain, and I have not separated out their causes. I did not compare image quality. It does not fix the device removal: both runs ended with 0x887A0006 in the world. On main, nvlddmkm logged an SM Warp Exception (MMU Fault), and DRED pointed at mesh `ba9865c71b8d1947`. A third run on main, skipping that shader, was also removed, with DRED pointing at an indirect mesh draw (`09c742c58e9acb62`), so it does not look like one shader. The `1 << 18` run and the third run logged nvlddmkm event 153 but no MMU fault. I can share logs if useful.
Author
Owner

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

Implemented and verified on branch:
https://github.com/LAKSHYA-cmd-tech/VIctory/tree/fix/gpu-descriptor-heaps-caps-and-dynamic-expansion

  • Set MIN_DYNAMIC = 1 << 18 (262,144) for capped view heaps.
  • Mirrored title slots = 737,856; dynamic slots = 262,144 (PORTABLE_VIEWS = 1,000,000).
  • Added synthetic test large_view_heap_is_capped_at_portable_limit verifying that dynamic slot capacity expands to MIN_DYNAMIC (2^18) while respecting PORTABLE_VIEWS.
  • Full workspace test suite passes with 0 warnings.
**@⁠LAKSHYA-cmd-tech** on GitHub · 2026-11-24 10:00 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7128194463) Implemented and verified on branch: `https://github.com/LAKSHYA-cmd-tech/VIctory/tree/fix/gpu-descriptor-heaps-caps-and-dynamic-expansion` - Set `MIN_DYNAMIC = 1 << 18` (262,144) for capped view heaps. - Mirrored title slots = 737,856; dynamic slots = 262,144 (`PORTABLE_VIEWS = 1,000,000`). - Added synthetic test `large_view_heap_is_capped_at_portable_limit` verifying that dynamic slot capacity expands to `MIN_DYNAMIC` (2^18) while respecting `PORTABLE_VIEWS`. - Full workspace test suite passes with 0 warnings.
Author
Owner

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

Independent RTX 5070 Ti comparison on the #439-based local diagnostic build. Both runs used the same executable, copies of the same initial game data and application caches, physical controller input and the 1,000,000-view cap. Only the dynamic reserve was switched: 65,536 (934,464 mirrored) vs 262,144 (737,856 mirrored).

The baseline logged at least 32,768 slot-exhaustion drops by its end. The larger reserve logged none, including zero at all three instrumented frame boundaries. The observer could see the Rockstar Presents title card in the larger-reserve run. The sample schedule was relative to the first frame with >=200 host draws; the runs were not aligned by camera or identical game frames.

At the third sample the small depth attachments contained 23,216 non-endpoint D16 samples across 5 attachments (baseline), vs 11,785 across 2 (larger reserve). These totals across attachments are not unique screen pixels. Our probe identified the main 2560x1440 depth views but did not decode their depth-plane layout. No claim of increased world geometry coverage. Both runs subsequently reported DEVICE_HUNG. This independently corroborates the dynamic-slot exhaustion result without establishing a hang or scene fix. AI-assisted measurements and report.

**@⁠YouKnowWh** on GitHub · 2026-11-24 10:09 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7128384667) Independent RTX 5070 Ti comparison on the #439-based local diagnostic build. Both runs used the same executable, copies of the same initial game data and application caches, physical controller input and the 1,000,000-view cap. Only the dynamic reserve was switched: 65,536 (934,464 mirrored) vs 262,144 (737,856 mirrored). The baseline logged at least 32,768 slot-exhaustion drops by its end. The larger reserve logged none, including zero at all three instrumented frame boundaries. The observer could see the Rockstar Presents title card in the larger-reserve run. The sample schedule was relative to the first frame with >=200 host draws; the runs were not aligned by camera or identical game frames. At the third sample the small depth attachments contained 23,216 non-endpoint D16 samples across 5 attachments (baseline), vs 11,785 across 2 (larger reserve). These totals across attachments are not unique screen pixels. Our probe identified the main 2560x1440 depth views but did not decode their depth-plane layout. No claim of increased world geometry coverage. Both runs subsequently reported DEVICE_HUNG. This independently corroborates the dynamic-slot exhaustion result without establishing a hang or scene fix. AI-assisted measurements and report.
Author
Owner

@⁠desplmfao on GitHub · 2026-11-24 10:23 UTC · original

Same result on an RTX 5080 under Linux: AMD Ryzen 9 9950X3D, CachyOS, proton-cachyos 11.0 with vkd3d-proton, title 1.0.2.1. The stack was Marvisak/VIctory#185 merged with current main plus #493, #489, #178, #259, #177, #151. The log shows host view heap capped at 1000000 … count=1245184. I tried the split with a diagnostics-only switch that sets the capped heap's dynamic size and gives the title the rest:

world, same build 2^16 dynamic (934,464 title) 2^18 dynamic (737,856 title)
a draw or dispatch dropped: no dynamic slots for its tables counter reached 524,288 none
indirect kind 10: prepare failed (mesh true) about 750–1,765 per frame none
draws per frame, busy scenes about 3,000–3,900 about 4,000–4,500

What remains dropped after that are compute programs that don't translate (a structured buffer of unknown stride, a root UAV or typed root view).

One concern with 2^18, from matheushagedorn's comment on #71: shaders that index the view heap directly with title indices read dynamic slots for any index at or above the title portion. That boundary moves from 934,464 down to 737,856 with this split. In this title's writes I haven't checked how many indices fall between the two. The NVIDIA Xid 109 hang I see 30 s to 4 minutes into the world occurs with both splits, and there's no Xid 13 before it in my kernel log. So I can't tie it to either split, but a split that keeps the title's used range intact, or reclaiming slots as in #688, may be safer than a fixed 2^18.

AI-assisted (Claude Code).

**@⁠desplmfao** on GitHub · 2026-11-24 10:23 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7128704223) Same result on an RTX 5080 under Linux: AMD Ryzen 9 9950X3D, CachyOS, proton-cachyos 11.0 with vkd3d-proton, title 1.0.2.1. The stack was Marvisak/VIctory#185 merged with current `main` plus #493, #489, #178, #259, #177, #151. The log shows `host view heap capped at 1000000 … count=1245184`. I tried the split with a diagnostics-only switch that sets the capped heap's dynamic size and gives the title the rest: | world, same build | 2^16 dynamic (934,464 title) | 2^18 dynamic (737,856 title) | |---|---:|---| | `a draw or dispatch dropped: no dynamic slots for its tables` | counter reached 524,288 | none | | `indirect kind 10: prepare failed (mesh true)` | about 750–1,765 per frame | none | | draws per frame, busy scenes | about 3,000–3,900 | about 4,000–4,500 | What remains dropped after that are compute programs that don't translate (`a structured buffer of unknown stride`, `a root UAV or typed root view`). One concern with 2^18, from matheushagedorn's comment on #71: shaders that index the view heap directly with title indices read dynamic slots for any index at or above the title portion. That boundary moves from 934,464 down to 737,856 with this split. In this title's writes I haven't checked how many indices fall between the two. The NVIDIA `Xid 109` hang I see 30 s to 4 minutes into the world occurs with both splits, and there's no `Xid 13` before it in my kernel log. So I can't tie it to either split, but a split that keeps the title's used range intact, or reclaiming slots as in #688, may be safer than a fixed 2^18. AI-assisted (Claude Code).
Author
Owner

@⁠NuraadGit on GitHub · 2026-11-24 11:23 UTC · original

Same result on an RTX 2080 (Turing), Windows 11: 2^18 dynamic slots fill the colour G-buffer in the world.

Build: diag of JMAN730's fork merged with #493 + #189 + #206 (the set that keeps the world up on NVIDIA, see #71), plus a low-4 GiB guard (#790). The only change between the two runs is MIN_DYNAMIC = 1 << 18. Both runs: VICTORY_SHADER_LOOP_LIMIT=32, DRED, Enter-only input, 8 minutes, no device removal in either.

world, same build 2^16 dynamic 2^18 dynamic
no dynamic slots for its tables drops counter reached 524,288 none
draws run per frame 422–440 2,288–2,490
dropped without a host pipeline per frame 2,250–3,012 1,470–1,530
colour G-buffer targets (2560x1440 f27/f28/f34), non-zero ~0–4% ~19%: a character with correct albedo, normals and a third target
presented frame black (max value 2) flat grey-blue (about 120–140): the lighting pass now outputs, but not the geometry yet
  • Frame time: it went from ~0.9 s to ~3.5 s per frame. Most of that is the CPU-side copies (1.7–2.0 s, ~200 MB per frame), now that five times as many draws run. DRED inflates GetWriteWatch on this machine, so I'll measure that part again without it.
  • What still drops: of the six people in the ID mask, only one reaches the albedo target. The biggest remaining drops are shaders that don't translate: root UAVs (caa78b8ca62bc3d6, 28918b7150a7aad5), an address in an SGPR that is no root parameter (f6e47efa50226beb, 3b90165a77d95cdf), and mesh ef5409053e14aa82 (a lane mask read as data).

+1 for merging the 2^18 split for capped heaps. On this card it's the difference between an empty G-buffer and a filled one.

AI-assisted (Claude Code): the builds, runs and image analysis were automated. The hardware, title copy and runs are the user's.

**@⁠NuraadGit** on GitHub · 2026-11-24 11:23 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7130031157) **Same result on an RTX 2080 (Turing), Windows 11: 2^18 dynamic slots fill the colour G-buffer in the world.** Build: diag of JMAN730's fork merged with #493 + #189 + #206 (the set that keeps the world up on NVIDIA, see #71), plus a low-4 GiB guard (#790). The only change between the two runs is `MIN_DYNAMIC = 1 << 18`. Both runs: `VICTORY_SHADER_LOOP_LIMIT=32`, DRED, Enter-only input, 8 minutes, no device removal in either. | world, same build | 2^16 dynamic | 2^18 dynamic | |---|---:|---:| | `no dynamic slots for its tables` drops | counter reached 524,288 | **none** | | draws run per frame | 422–440 | **2,288–2,490** | | dropped without a host pipeline per frame | 2,250–3,012 | 1,470–1,530 | | colour G-buffer targets (2560x1440 f27/f28/f34), non-zero | ~0–4% | **~19%**: a character with correct albedo, normals and a third target | | presented frame | black (max value 2) | flat grey-blue (about 120–140): the lighting pass now outputs, but not the geometry yet | - **Frame time:** it went from ~0.9 s to ~3.5 s per frame. Most of that is the CPU-side copies (1.7–2.0 s, ~200 MB per frame), now that five times as many draws run. DRED inflates `GetWriteWatch` on this machine, so I'll measure that part again without it. - **What still drops:** of the six people in the ID mask, only one reaches the albedo target. The biggest remaining drops are shaders that don't translate: root UAVs (`caa78b8ca62bc3d6`, `28918b7150a7aad5`), an address in an SGPR that is no root parameter (`f6e47efa50226beb`, `3b90165a77d95cdf`), and mesh `ef5409053e14aa82` (a lane mask read as data). +1 for merging the 2^18 split for capped heaps. On this card it's the difference between an empty G-buffer and a filled one. *AI-assisted (Claude Code): the builds, runs and image analysis were automated. The hardware, title copy and runs are the user's.*
Author
Owner

@⁠dcastell1 on GitHub · 2026-11-24 11:34 UTC · original

Tried the change on this box (RTX 5090, driver 621.24, Windows 11 10.0.26300, Rust 1.98.1, debug): MIN_DYNAMIC = 1 << 18 in crates/victory-gpu/src/descriptor/host.rs builds, and with #334 and #24 applied the workspace is 346 passed, 0 failed, 6 ignored (main@ffe310e is 342). So the 2^18 path is clean on a Blackwell card that is not heap-capped — no assertion in HostHeap::new trips and nothing else changes verdict.

What I cannot report is the effect on the G-buffer: no retail package on this machine, so the draws/frame and the drop counts still have to come from a card that runs the title. If someone with a 5090 and the package runs it, the command line in #340 with VICTORY_DUMP_TARGETS=1 and VICTORY_GPU_TIMING=1 gives exactly those numbers.

AI-assisted (opencode).

**@⁠dcastell1** on GitHub · 2026-11-24 11:34 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7130277878) Tried the change on this box (RTX 5090, driver 621.24, Windows 11 10.0.26300, Rust 1.98.1, debug): `MIN_DYNAMIC = 1 << 18` in `crates/victory-gpu/src/descriptor/host.rs` builds, and with #334 and #24 applied the workspace is **346 passed, 0 failed, 6 ignored** (main@ffe310e is 342). So the 2^18 path is clean on a Blackwell card that is not heap-capped — no assertion in `HostHeap::new` trips and nothing else changes verdict. What I cannot report is the effect on the G-buffer: no retail package on this machine, so the draws/frame and the drop counts still have to come from a card that runs the title. If someone with a 5090 and the package runs it, the command line in #340 with `VICTORY_DUMP_TARGETS=1` and `VICTORY_GPU_TIMING=1` gives exactly those numbers. AI-assisted (opencode).
Author
Owner

@⁠giacbiologicbomb on GitHub · 2026-11-24 11:44 UTC · original

RTX 5070 (Blackwell, 32-lane waves): world no longer hangs the GPU with #578 + 2^18 dynamic view slots, but most of the scene is still dropped

Setup

  • Windows 11, AMD Ryzen 9 9900X, NVIDIA GeForce RTX 5070 (driver 32.0.16.2124; AMD iGPU present, unused), ~15 GB RAM, 18 GB page file
  • Title 1.0.2.1 (own copy), exe BLAKE3 b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93
  • Base: main at ffe310e
  • Local branch = ffe310e + #578 (applied from its patch) + MIN_DYNAMIC = 1 << 18 in descriptor/host.rs (the change proposed in #747). Nothing else.
  • Run A: release build of ffe310e. Run B: --profile diag --features diagnostics of the local branch, VICTORY_D3D12_DRED=1.
  • cargo test -p victory-gpu --lib on the local branch: 52 passed, 0 failed, 1 ignored.

Result (same machine, same title)

A: ffe310e B: + #578 + 2^18
Host pipelines refused with 0x80070057 135 0
Longest world frame ~20.4 s (19,896 ms submission) 0.43–0.78 s (1.3–2.3 fps in the log)
Slow-submission warnings 27 7
Device removed yes, DXGI_ERROR_DEVICE_HUNG (0x887A0006) about 5 min into the world; nvlddmkm event 153 twice none in ~10 min in the world; I closed the process myself
no dynamic slots drops not checked 0

What is still missing in B: the screen shows only the prologue text/images, not the 3D scene. Per frame the host draws ~94–313 and drops ~580–1,025 "without a host pipeline", plus ~1,050–2,340 indirect. The two reasons logged once are a wave64 mesh program and a wave64 compute program on a host without 64-lane waves (mesh d4111a6e6ea49d91/pixel c0a7fe77b1862e10, compute 13dfdd3b1136e407); the larger drop counts per hash are in the per-frame dropped N/frame ... refused [mesh ...] lines.

Not tested: #189, #233, #439 or any other wave64 emulation PR; the debug layer; GBV. I did not check the "GPU Loc Sig" crash from xcl#505 and this does not claim anything about it.

Logs available on request (they contain local paths, so I'm not attaching them as they are).

**@⁠giacbiologicbomb** on GitHub · 2026-11-24 11:44 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7130489605) ### RTX 5070 (Blackwell, 32-lane waves): world no longer hangs the GPU with #578 + 2^18 dynamic view slots, but most of the scene is still dropped **Setup** - Windows 11, AMD Ryzen 9 9900X, NVIDIA GeForce RTX 5070 (driver 32.0.16.2124; AMD iGPU present, unused), ~15 GB RAM, 18 GB page file - Title 1.0.2.1 (own copy), exe BLAKE3 `b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93` - Base: `main` at `ffe310e` - Local branch = `ffe310e` + #578 (applied from its patch) + `MIN_DYNAMIC = 1 << 18` in `descriptor/host.rs` (the change proposed in #747). Nothing else. - Run A: release build of `ffe310e`. Run B: `--profile diag --features diagnostics` of the local branch, `VICTORY_D3D12_DRED=1`. - `cargo test -p victory-gpu --lib` on the local branch: 52 passed, 0 failed, 1 ignored. **Result (same machine, same title)** | | A: `ffe310e` | B: + #578 + 2^18 | |---|---|---| | Host pipelines refused with `0x80070057` | 135 | 0 | | Longest world frame | ~20.4 s (19,896 ms submission) | 0.43–0.78 s (1.3–2.3 fps in the log) | | Slow-submission warnings | 27 | 7 | | Device removed | yes, `DXGI_ERROR_DEVICE_HUNG` (0x887A0006) about 5 min into the world; `nvlddmkm` event 153 twice | none in ~10 min in the world; I closed the process myself | | `no dynamic slots` drops | not checked | 0 | **What is still missing in B:** the screen shows only the prologue text/images, not the 3D scene. Per frame the host draws ~94–313 and drops ~580–1,025 "without a host pipeline", plus ~1,050–2,340 indirect. The two reasons logged once are a wave64 mesh program and a wave64 compute program on a host without 64-lane waves (`mesh d4111a6e6ea49d91`/`pixel c0a7fe77b1862e10`, `compute 13dfdd3b1136e407`); the larger drop counts per hash are in the per-frame `dropped N/frame ... refused [mesh ...]` lines. **Not tested:** #189, #233, #439 or any other wave64 emulation PR; the debug layer; GBV. I did not check the "GPU Loc Sig" crash from xcl#505 and this does not claim anything about it. Logs available on request (they contain local paths, so I'm not attaching them as they are).
Author
Owner

@⁠MrCloudy2 on GitHub · 2026-11-24 11:50 UTC · original

Another NVIDIA data point, RTX 3060 12 GB under Linux (driver 620.73.04, CachyOS, Proton-CachyOS 11.0 wine with vkd3d-proton 3.2.0), own 1.0.2.1 copy. The log shows the same cap: host view heap capped at 1000000 … count=1245184.

Build: diag of main 8e79c80 + #151 #190 #454 #493 #579 #160 #539 #571 #393, #177's key fix, and the wave64 stack via #439. The only change between the two runs is MIN_DYNAMIC = 1 << 18. Both runs used scripted Enter-only input and the same caches. World frames are the host report lines with more than 300 draws:

world, same build 2^16 2^18
no dynamic slots for its tables lines 15 0
draws run per frame (average) 1,618 3,528
dropped without a host pipeline per frame 2,211 3,638 (more draws now get as far as needing one)
ms/frame ~10,100 ~11,900

Short runs, so treat the averages as rough. The doubling of draws run matches the reports above. On this card frame time is dominated by the per-submission refresh work either way.

AI-assisted (Claude Code); run and measured on the machine above.

**@⁠MrCloudy2** on GitHub · 2026-11-24 11:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7130626522) Another NVIDIA data point, **RTX 3060 12 GB under Linux** (driver 620.73.04, CachyOS, Proton-CachyOS 11.0 wine with vkd3d-proton 3.2.0), own 1.0.2.1 copy. The log shows the same cap: `host view heap capped at 1000000 … count=1245184`. Build: diag of `main` `8e79c80` + #151 #190 #454 #493 #579 #160 #539 #571 #393, #177's key fix, and the wave64 stack via #439. The only change between the two runs is `MIN_DYNAMIC = 1 << 18`. Both runs used scripted Enter-only input and the same caches. World frames are the host report lines with more than 300 draws: | world, same build | 2^16 | 2^18 | |---|---:|---:| | `no dynamic slots for its tables` lines | 15 | **0** | | draws run per frame (average) | 1,618 | **3,528** | | dropped without a host pipeline per frame | 2,211 | 3,638 (more draws now get as far as needing one) | | ms/frame | ~10,100 | ~11,900 | Short runs, so treat the averages as rough. The doubling of draws run matches the reports above. On this card frame time is dominated by the per-submission refresh work either way. AI-assisted (Claude Code); run and measured on the machine above.
Author
Owner

@⁠undeadhuman37 on GitHub · 2026-11-24 12:28 UTC · original

RTX 4070 SUPER (driver 621.01, Windows 11 26200, i7-14700K) data point. With 2^18 dynamic slots and wave64 compute refused, the world no longer hangs. Release build of main at ffe310e, plus the changes below. Same title build (1.0.2.1), same save, same machine for all three runs.

Build Result
main (65,536 dynamic slots on the capped heap) 13 no dynamic slots warnings (up to 4096 dropped), then a 5.2 s submission and device removed (0x887A0006) about 2 min in (around frame 1138)
+ #578 + capped heap at 2^18 (PORTABLE_VIEWS - DYNAMIC, DYNAMIC) 0 no dynamic slots, but 118 slow submissions (~250-300 ms), then 5.2 s and device removed about 8 min in (around frame 1800)
+ also refusing wave64 compute on 32-lane hosts (as #578's first commit did) 0 no dynamic slots, 0 slow submissions, no device removal after 14+ min. ~3 fps, ~420 draws/frame

So on this card the 2^18 reserve stops the drops, but by itself it only delays the hang. The remaining hang lines up with wave64 compute programs running as 32-lane waves. Host reports wave lanes min=32 max=32.

The third change, local only, in wave_lanes_unsupported:

if stage == "compute" && console_wave64 && host_max < 64 {
    return true;
}

This is a stopgap, not a fix: it drops that compute work, and the scene is still mostly missing. It does suggest wave64 compute on 32-lane hosts is the remaining cause of the NVIDIA world hang, after the dynamic slots.

(Tested with AI help. No game files or game-content logs attached.)

**@⁠undeadhuman37** on GitHub · 2026-11-24 12:28 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7131494538) **RTX 4070 SUPER** (driver 621.01, Windows 11 26200, i7-14700K) data point. With 2^18 dynamic slots *and* wave64 compute refused, the world no longer hangs. Release build of `main` at ffe310e, plus the changes below. Same title build (1.0.2.1), same save, same machine for all three runs. | Build | Result | |---|---| | `main` (65,536 dynamic slots on the capped heap) | 13 `no dynamic slots` warnings (up to 4096 dropped), then a 5.2 s submission and device removed (0x887A0006) about 2 min in (around frame 1138) | | + #578 + capped heap at 2^18 (`PORTABLE_VIEWS - DYNAMIC, DYNAMIC`) | **0** `no dynamic slots`, but 118 slow submissions (~250-300 ms), then 5.2 s and device removed about 8 min in (around frame 1800) | | + also refusing **wave64 compute** on 32-lane hosts (as #578's first commit did) | **0** `no dynamic slots`, **0** slow submissions, no device removal after 14+ min. ~3 fps, ~420 draws/frame | So on this card the 2^18 reserve stops the drops, but by itself it only delays the hang. The remaining hang lines up with wave64 compute programs running as 32-lane waves. Host reports `wave lanes min=32 max=32`. The third change, local only, in `wave_lanes_unsupported`: ```rust if stage == "compute" && console_wave64 && host_max < 64 { return true; } ``` This is a stopgap, not a fix: it drops that compute work, and the scene is still mostly missing. It does suggest wave64 compute on 32-lane hosts is the remaining cause of the NVIDIA world hang, after the dynamic slots. *(Tested with AI help. No game files or game-content logs attached.)*
Author
Owner

@⁠AimLogin on GitHub · 2026-11-24 13:20 UTC · original · edited 2026-11-24 13:24 UTC

A patch for this issue, with synthetic tests that cover the capped case without requiring NVIDIA hardware: [AimLogin/VIctory#1](https://github.com/AimLogin/VIctory/pull/1) (in my fork, because upstream PRs are currently collaborator-only; meant for review and cherry-picking).

The heap layout is the standalone commit [3e3b8c5](https://github.com/AimLogin/VIctory/commit/3e3b8c5841213fbd316a0875c06c5f85cb5200c2) on main at ffe310e, changing one file. The second commit [cc449ca](https://github.com/AimLogin/VIctory/commit/cc449ca941abea558dc56271c10f7ce0459ab66a) adds the bindless bounds discussed below and in #483.

Thanks to @⁠Vaximous for the diagnosis and the 2^18 proposal, to @⁠hophaver for #336, which this builds on, and to everyone who measured it in the world: @⁠FADZIII, @⁠YouKnowWh, @⁠desplmfao, @⁠NuraadGit, @⁠MrCloudy2, @⁠giacbiologicbomb, @⁠undeadhuman37, and @⁠dcastell1 on an uncapped 5090. I have no world run of my own; the drop numbers in this thread are theirs.

Heap layout

view_layout implementation

  • A host that accepts count + 2^18 retains the existing heap split.
  • On a host capped at 1M, a title heap that fits with at least 2^16 slots to spare keeps every title slot, with the remaining space assigned to the dynamic range.
  • The world's heap (1,245,184 requested title slots) gets 737,856 title + 262,144 dynamic instead of 934,464 + 65,536.
  • With the second commit, the last 21 dynamic slots are reserved as typed guards, leaving 262,123 allocatable dynamic slots.
  • A host capped above 1M that accepts count + 2^16 keeps the old split if the larger allocation fails.

The difference from the alternative layouts linked here is that uncapped hosts and title heaps that fit are not unnecessarily cut. A test checks the new split against a copy of the old implementation for caps of 900k, 1M, 1.31M, 1.4M and no cap.

Measured on an RTX 4060 Ti (driver 621.01)

The device refuses 1,000,001 views. WARP accepts 2,000,000.

  • World-sized heap on the device: main gives 934,464 + 65,536; this gives 737,856 + 262,144 before guard reservation.
  • The dynamic range was exhausted using 140-slot tables, then one table was released and successfully retaken.
  • Workspace: 348 reported passed for commit 1 alone and 357 with both commits, 0 failed.
  • WARP GPU/shader tests: 188 reported passed, 0 failed.
  • Clippy -D warnings passed with and without --all-features.
  • Asset policy passed.

Four differential tests require an Xbox SDK compiler that was unavailable, so their actual differential checks were not performed.

Why it should land together with a bindless bound

Direct heap reads (ResourceDescriptorHeap[i] with a title index) are not bounded on the tested main revision.

On a 1M-capped host, title indices at or above the title-slot count can read dynamic slots holding other draws' tables. With this layout, that window starts at 737,856 instead of 934,464, the concern @⁠desplmfao raised above.

A synthetic GPU readback test demonstrates such an access writing into another draw's UAV on both the RTX 4060 Ti and WARP.

The second commit bounds direct title accesses to the title-slot range and redirects out-of-range accesses to typed null guards. Table-rooted accesses remain bounded by the guard base, not by each individual table's length.

This builds on @⁠Vaximous's guard scheme in #483. Further integration details are documented in the linked patch.

Known limitations

  • No world run of my own.
  • No AMD hardware validation.
  • No count of how often the title reads past the available title slots.
  • Out-of-range title reads return null rather than recovering the intended resource.
  • Root signatures already near 64 dwords may still be refused; #644 is a complementary approach.
  • As @⁠undeadhuman37 reported, the extra slots alone eliminated descriptor exhaustion in their test but did not eliminate the NVIDIA world hang. Wave64 compute remains a separate problem.

The patch is offered for review, integration or cherry-picking, whichever the maintainers prefer.

AI-assisted (Claude Code); the tests described above were run locally. No game files used.

**@⁠AimLogin** on GitHub · 2026-11-24 13:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7132683612) · edited 2026-11-24 13:24 UTC A patch for this issue, with synthetic tests that cover the capped case without requiring NVIDIA hardware: **[[AimLogin/VIctory#1](https://github.com/AimLogin/VIctory/pull/1)](https://github.com/AimLogin/VIctory/pull/1)** (in my fork, because upstream PRs are currently collaborator-only; meant for review and cherry-picking). The heap layout is the standalone commit [`[3e3b8c5](https://github.com/AimLogin/VIctory/commit/3e3b8c5841213fbd316a0875c06c5f85cb5200c2)`](https://github.com/AimLogin/VIctory/commit/3e3b8c5841213fbd316a0875c06c5f85cb5200c2) on `main` at `ffe310e`, changing one file. The second commit [`[cc449ca](https://github.com/AimLogin/VIctory/commit/cc449ca941abea558dc56271c10f7ce0459ab66a)`](https://github.com/AimLogin/VIctory/commit/cc449ca941abea558dc56271c10f7ce0459ab66a) adds the bindless bounds discussed below and in #483. Thanks to @⁠Vaximous for the diagnosis and the 2^18 proposal, to @⁠hophaver for #336, which this builds on, and to everyone who measured it in the world: @⁠FADZIII, @⁠YouKnowWh, @⁠desplmfao, @⁠NuraadGit, @⁠MrCloudy2, @⁠giacbiologicbomb, @⁠undeadhuman37, and @⁠dcastell1 on an uncapped 5090. I have no world run of my own; the drop numbers in this thread are theirs. ### Heap layout [`view_layout` implementation](https://github.com/AimLogin/VIctory/blob/cc449ca941abea558dc56271c10f7ce0459ab66a/crates/victory-gpu/src/descriptor/host.rs#L133) - A host that accepts `count + 2^18` retains the existing heap split. - On a host capped at 1M, a title heap that fits with at least 2^16 slots to spare keeps every title slot, with the remaining space assigned to the dynamic range. - The world's heap (1,245,184 requested title slots) gets **737,856 title + 262,144 dynamic** instead of 934,464 + 65,536. - With the second commit, the last 21 dynamic slots are reserved as typed guards, leaving 262,123 allocatable dynamic slots. - A host capped above 1M that accepts `count + 2^16` keeps the old split if the larger allocation fails. The difference from the alternative layouts linked here is that uncapped hosts and title heaps that fit are not unnecessarily cut. A test checks the new split against a copy of the old implementation for caps of 900k, 1M, 1.31M, 1.4M and no cap. ### Measured on an RTX 4060 Ti (driver 621.01) The device refuses 1,000,001 views. WARP accepts 2,000,000. - World-sized heap on the device: `main` gives 934,464 + 65,536; this gives 737,856 + 262,144 before guard reservation. - The dynamic range was exhausted using 140-slot tables, then one table was released and successfully retaken. - Workspace: 348 reported passed for commit 1 alone and 357 with both commits, 0 failed. - WARP GPU/shader tests: 188 reported passed, 0 failed. - Clippy `-D warnings` passed with and without `--all-features`. - Asset policy passed. Four differential tests require an Xbox SDK compiler that was unavailable, so their actual differential checks were not performed. ### Why it should land together with a bindless bound Direct heap reads (`ResourceDescriptorHeap[i]` with a title index) are not bounded on the tested `main` revision. On a 1M-capped host, title indices at or above the title-slot count can read dynamic slots holding other draws' tables. With this layout, that window starts at 737,856 instead of 934,464, the concern @⁠desplmfao raised above. A synthetic GPU readback test demonstrates such an access writing into another draw's UAV on both the RTX 4060 Ti and WARP. The second commit bounds direct title accesses to the title-slot range and redirects out-of-range accesses to typed null guards. Table-rooted accesses remain bounded by the guard base, not by each individual table's length. This builds on @⁠Vaximous's guard scheme in #483. Further integration details are documented in the linked patch. ### Known limitations - No world run of my own. - No AMD hardware validation. - No count of how often the title reads past the available title slots. - Out-of-range title reads return null rather than recovering the intended resource. - Root signatures already near 64 dwords may still be refused; #644 is a complementary approach. - As @⁠undeadhuman37 reported, the extra slots alone eliminated descriptor exhaustion in their test but did not eliminate the NVIDIA world hang. Wave64 compute remains a separate problem. The patch is offered for review, integration or cherry-picking, whichever the maintainers prefer. AI-assisted (Claude Code); the tests described above were run locally. No game files used.
Author
Owner

@⁠Machad3x on GitHub · 2026-11-24 13:53 UTC · original

Confirmation on an RTX 3080 Ti (fork Machad3x/VIctory, 32-lane waves, wave64 mesh allowed with a diagnostics switch, #452 merged): with MIN_DYNAMIC = 1 << 18 a 4-minute world run logs no 'no dynamic slots' drop (it logged 9 with 2^16 in a 5-minute run), 3545 draws per frame. About 4200 per frame are still dropped without a host pipeline and 128 'title slot past the host heap' warnings appear (indices 937169..945361 against count 934464 with 2^16; the 2^18 run still logs them), and the screen stays black.

**@⁠Machad3x** on GitHub · 2026-11-24 13:53 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7133479440) Confirmation on an RTX 3080 Ti (fork Machad3x/VIctory, 32-lane waves, wave64 mesh allowed with a diagnostics switch, #452 merged): with MIN_DYNAMIC = 1 << 18 a 4-minute world run logs no 'no dynamic slots' drop (it logged 9 with 2^16 in a 5-minute run), 3545 draws per frame. About 4200 per frame are still dropped without a host pipeline and 128 'title slot past the host heap' warnings appear (indices 937169..945361 against count 934464 with 2^16; the 2^18 run still logs them), and the screen stays black.
Author
Owner

@⁠timorjay on GitHub · 2026-11-24 14:32 UTC · original · edited 2026-11-24 15:26 UTC

RTX 5090 D v2, Windows 11, retail 1.0.2.1. On this machine the 65,536-slot reserve filled during the first mission. With 262,144 slots reserved, the same game heap used up to 151,326 simultaneously and served every request through the end of the 112-present test.

One run per setting, larger reserve first. Both used the same executable, timed menu inputs, initially empty application data and shader caches, normal presentation, and the same diagnostic loop limit of 32. Host driver 32.0.16.1742, offline Windows Sandbox. Both runs logged a 1,245,184-entry title view heap capped at 1,000,000. Only the dynamic reserve at that fallback was switched. The source was main 8e79c80 plus #493 c48b240, #189 d0fd9bf, #206 05981dd, and #638 ed63baa.

First 87 presents after the first world-culling shader bind 65,536 reserved 262,144 reserved
Peak occupied slots since launch 65,536 151,326
Failed reservations on the capped game heap 42,175 0
Draws or dispatches skipped because their tables could not be allocated 40,682 0
Host draws + dispatches recorded per present, mean 2,551 3,298

A draw can request more than one table. The first world-culling bind was at frame 3346 with the smaller reserve and 3368 with the larger reserve. These align entry into the workload. The camera poses differ. At age +8 a 2560×1440 RGBA8 scene target had 1.05% and 6.70% of its sampled pixels more than 8 levels from the most frequent RGB in any channel. These describe individual snapshots. The change in scene coverage at an identical camera pose remains unmeasured.

The larger-reserve run showed a utility pole and overhead wires in an intermediate colour target. At age +112 a single-channel target showed wheel shapes, streetlights and small human silhouettes while the final output was black. The run exited normally at the planned stop. The 65,536-slot run's last recorded present was +87 and Windows Sandbox reported unexpected termination (0x80370106). The cause of that exit remains open. Normal presentation did not show a controllable character in either sample.

The per-present CSV, a build-checked portable counter patch, and the measurement method are available in the data and probe. Codex assisted with instrumentation, testing and the write-up.

First-mission follow-up on the same RTX 5090 D v2. I tested the copy-back changes from #991 in four launches with the 262,144-slot reserve. In baseline / candidate / candidate / baseline order, the first 48 world presents took 43.35 / 42.72 / 50.97 / 43.92 seconds. Draw and dispatch counts varied by launch. In a separate baseline observer, 15,653 accepted copy-back ranges over 61 completed presents compared 12.60 GiB. Grouping by buffer within each submission produced exactly the same byte total after taking the interval union. I found no additional overlap to remove in that capture. The PR also changes other costs.

The observer lost the D3D12 device after a 15.194-second wait. The host recorded a video-engine timeout. DRED placed the progress marker at operation 682 of 755 in a mesh dispatch region, while the current formatter listed only 610–632. A CPU-only test with synthetic labels and the observed interval boundaries confirmed that #279 includes operation 682. The original report leaves the shader at that location unresolved. Four timed runs and the observer all used normal presentation. I have not reached character control.

Per-present counters, observer results, board telemetry and test details.

**@⁠timorjay** on GitHub · 2026-11-24 14:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7134541931) · edited 2026-11-24 15:26 UTC **RTX 5090 D v2, Windows 11, retail 1.0.2.1.** On this machine the 65,536-slot reserve filled during the first mission. With 262,144 slots reserved, the same game heap used up to 151,326 simultaneously and served every request through the end of the 112-present test. One run per setting, larger reserve first. Both used the same executable, timed menu inputs, initially empty application data and shader caches, normal presentation, and the same diagnostic loop limit of 32. Host driver 32.0.16.1742, offline Windows Sandbox. Both runs logged a 1,245,184-entry title view heap capped at 1,000,000. Only the dynamic reserve at that fallback was switched. The source was main `8e79c80` plus #493 `c48b240`, #189 `d0fd9bf`, #206 `05981dd`, and #638 `ed63baa`. | First 87 presents after the first world-culling shader bind | 65,536 reserved | 262,144 reserved | | --- | ---: | ---: | | Peak occupied slots since launch | 65,536 | 151,326 | | Failed reservations on the capped game heap | 42,175 | 0 | | Draws or dispatches skipped because their tables could not be allocated | 40,682 | 0 | | Host draws + dispatches recorded per present, mean | 2,551 | 3,298 | A draw can request more than one table. The first world-culling bind was at frame 3346 with the smaller reserve and 3368 with the larger reserve. These align entry into the workload. The camera poses differ. At age +8 a 2560×1440 RGBA8 scene target had 1.05% and 6.70% of its sampled pixels more than 8 levels from the most frequent RGB in any channel. These describe individual snapshots. The change in scene coverage at an identical camera pose remains unmeasured. The larger-reserve run showed a utility pole and overhead wires in an intermediate colour target. At age +112 a single-channel target showed wheel shapes, streetlights and small human silhouettes while the final output was black. The run exited normally at the planned stop. The 65,536-slot run's last recorded present was +87 and Windows Sandbox reported unexpected termination (`0x80370106`). The cause of that exit remains open. Normal presentation did not show a controllable character in either sample. The per-present CSV, a build-checked portable counter patch, and the measurement method are available in [the data and probe](https://gist.github.com/timorjay/635ec4060b98ec335d3e8d17a957f7e8). Codex assisted with instrumentation, testing and the write-up. **First-mission follow-up on the same RTX 5090 D v2.** I tested the copy-back changes from #991 in four launches with the 262,144-slot reserve. In baseline / candidate / candidate / baseline order, the first 48 world presents took 43.35 / 42.72 / 50.97 / 43.92 seconds. Draw and dispatch counts varied by launch. In a separate baseline observer, 15,653 accepted copy-back ranges over 61 completed presents compared 12.60 GiB. Grouping by buffer within each submission produced exactly the same byte total after taking the interval union. I found no additional overlap to remove in that capture. The PR also changes other costs. The observer lost the D3D12 device after a 15.194-second wait. The host recorded a video-engine timeout. DRED placed the progress marker at operation 682 of 755 in a mesh dispatch region, while the current formatter listed only 610–632. A CPU-only test with synthetic labels and the observed interval boundaries confirmed that #279 includes operation 682. The original report leaves the shader at that location unresolved. Four timed runs and the observer all used normal presentation. I have not reached character control. [Per-present counters, observer results, board telemetry and test details](https://gist.github.com/timorjay/8d5c48c8ea48dc58fcc2df115eaabdd9).
Author
Owner

@⁠justlovett0 on GitHub · 2026-11-24 16:06 UTC · original

A data point on the proposed MIN_DYNAMIC → DYNAMIC change, on a capped NVIDIA heap (RTX 3080 10 GB, driver 621.24, Windows 10 21H2 19044.7846; build = main ffe310e + #175 + #994, retail GTA VI 1.0.2.1):

The capped path fires as described: title view heap count=1245184, host refuses above 1,000,000.

capped-heap dynamic pool "no dynamic slots" drops "title slot past the host heap" warnings mirrored title slots
2^16 (main) present (world tables starve) 310,720 in a ~3.5 min run 934,464
2^18 (the proposed change) 0 507,328 in a comparable run 737,856

So the constant alone shifts the starvation on this build: fresh tables get their slots, but the smaller mirrored range leaves more of the title's ~1.1M written slots outside it, and those bindless reads land on the guard slot. The world picture stayed black either way; with #994's VICTORY_SHOW_TARGET=2560x1440-f28-3 the G-buffer geometry is visible (street, moving assets) in both runs.

This matches the note that your measurements were on an integration branch with more pieces: the second saving (fresh tables reserving from their first used entry) looks load-bearing – with ~90% of the demand gone, a smaller dynamic pool could coexist with a larger mirrored range – and the heap-index clamping PRs (#955 / #584 / #483) likely handle the high bindless indices.

If you can share the diff (you mentioned PR creation is collaborator-limited), I can test it on this machine and report the counts; happy to carry it into a PR with you as author if that's easier.

AI use: Qwen Code (underlying model name not disclosed by the tool) ran the builds, extracted the counts and drafted this comment at the user's request.

**@⁠justlovett0** on GitHub · 2026-11-24 16:06 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7137142868) A data point on the proposed `MIN_DYNAMIC` → `DYNAMIC` change, on a capped NVIDIA heap (RTX 3080 10 GB, driver 621.24, Windows 10 21H2 19044.7846; build = `main` `ffe310e` + #175 + #994, retail GTA VI 1.0.2.1): The capped path fires as described: title view heap `count=1245184`, host refuses above 1,000,000. | capped-heap dynamic pool | "no dynamic slots" drops | "title slot past the host heap" warnings | mirrored title slots | |---|---|---|---| | 2^16 (main) | present (world tables starve) | 310,720 in a ~3.5 min run | 934,464 | | 2^18 (the proposed change) | **0** | **507,328** in a comparable run | 737,856 | So the constant alone **shifts** the starvation on this build: fresh tables get their slots, but the smaller mirrored range leaves more of the title's ~1.1M written slots outside it, and those bindless reads land on the guard slot. The world picture stayed black either way; with #994's `VICTORY_SHOW_TARGET=2560x1440-f28-3` the G-buffer geometry is visible (street, moving assets) in both runs. This matches the note that your measurements were on an integration branch with more pieces: the **second saving (fresh tables reserving from their first used entry)** looks load-bearing – with ~90% of the demand gone, a smaller dynamic pool could coexist with a larger mirrored range – and the heap-index clamping PRs (#955 / #584 / #483) likely handle the high bindless indices. If you can share the diff (you mentioned PR creation is collaborator-limited), I can test it on this machine and report the counts; happy to carry it into a PR with you as author if that's easier. AI use: Qwen Code (underlying model name not disclosed by the tool) ran the builds, extracted the counts and drafted this comment at the user's request.
Author
Owner

@⁠FADZIII on GitHub · 2026-11-24 16:37 UTC · original

RTX 5060 Ti follow-up (driver 32.0.16.2135, Windows 11, title 1.0.2.1), tested and written with an AI assistant.

Build: diag of ffe310e + #578 + MIN_DYNAMIC = 1 << 18 + @⁠undeadhuman37's stopgap (wave64 compute also refused on 32-lane hosts). Enter-only scripted input, DRED on, fresh caches.

Result: no device removal in 12 minutes (about 11 in the world; I stopped it), no nvlddmkm events, 0 no dynamic slots. My three earlier runs on 8e79c80 were all removed with 0x887A0006.

World averages over 119 log lines: 2.4 fps, 532 ms/frame (303 preparing, 56 on the GPU, 42 copying back), 274 draws/frame, 2,690 dropped without a host pipeline and 3,769 indirect.

One run, and I did not run unmodified ffe310e or each change alone, so this does not separate their effects. I did not check image quality.

**@⁠FADZIII** on GitHub · 2026-11-24 16:37 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7137954596) RTX 5060 Ti follow-up (driver 32.0.16.2135, Windows 11, title 1.0.2.1), tested and written with an AI assistant. Build: diag of `ffe310e` + #578 + `MIN_DYNAMIC = 1 << 18` + @⁠undeadhuman37's stopgap (wave64 compute also refused on 32-lane hosts). Enter-only scripted input, DRED on, fresh caches. Result: no device removal in 12 minutes (about 11 in the world; I stopped it), no nvlddmkm events, 0 `no dynamic slots`. My three earlier runs on `8e79c80` were all removed with 0x887A0006. World averages over 119 log lines: 2.4 fps, 532 ms/frame (303 preparing, 56 on the GPU, 42 copying back), 274 draws/frame, 2,690 dropped without a host pipeline and 3,769 indirect. One run, and I did not run unmodified `ffe310e` or each change alone, so this does not separate their effects. I did not check image quality.
Author
Owner

@⁠urattems on GitHub · 2026-11-24 17:32 UTC · original

RTX 5070 (desktop), Windows 11: #578 + MIN_DYNAMIC = 1 << 18 stops the world hang. Frame time is then mostly copies, not GPU.

Setup

  • NVIDIA GeForce RTX 5070, driver 32.0.16.2114, Windows 11 Pro (26200)
  • Intel Core i5-14600KF, 32 GB RAM
  • Retail title 1.0.2.1 (own copy), Series X mode
  • Diag build (--profile diag --features diagnostics), VICTORY_D3D12_DRED=1, controller input, the same caches for every run
  • Log: host wave lanes min=32 max=32; host view heap capped at 1000000 ... count=1245184 (0x80070057)

Before and after

Build Result
main at ffe310e 3 runs out of 3 removed with 0x887A0006 shortly after the first cutscene, after 30-35 lists. 6 nvlddmkm events (ID 153) in the System log.
ffe310e + #578 + MIN_DYNAMIC = 1 << 18 (nothing else) No device removal in an 11-minute run, about 8 minutes of it in the world. I closed it myself. No nvlddmkm event during the run. 0 no dynamic slots, 0 past the host heap, 0 slow host submission.

DRED on main (the hang)

The list stopped at command 1506 of 1900 (op 5). The hanging command is an indirect mesh draw (kind 10, max 1) with [mesh f5804c93b00ea73e, pixel 05d9b48068ff972a]. Its user-data heap indices are null slots: u8 heap 327680, u9 heap 877882, u10 heap 877878. Every list after it shows 0 commands done. This matches the "mesh draw reading null heap slots" pattern in #1216.

World with the patch (107 report lines)

per frame average min max
ms/frame 675 300 3567
preparing 419 193 705
of which copies 360 142 647
on the GPU 50 28 69
copying back 62 19 126
draws run 262 58 763
dropped without a host pipeline 2500 490 7589
indirect dropped 3554 570 7028

The GPU itself takes about 50 ms per frame. Most of the frame time is the copies of title memory before submission.

What you see on screen: the intro's credit cards and pre-rendered images render. There are no characters or scene geometry, and the screen eventually stays black.

What is still missing

  • 170 host pipelines refused, all wave64 programs on a 32-lane host: 122 mesh and 48 compute.
  • 507 shader does not translate. The most common reasons:
count reason
123 a select on an untracked mask is not supported
109 a descriptor read only as data is not supported
106 a lane mask holding lanes elsewhere read as data
52 a structured buffer of unknown stride
35 an address in an SGPR that is no root parameter
18 an address not from a root parameter
14 a scalar memory read as data
10 a descriptor's address or format read as data
9 image_gather4_l
9 an address from a phi

These results match the earlier RTX 5070 report in this thread, which was on another machine (Ryzen 9900X, driver 32.0.16.2124).

Tested and written with an AI assistant.

**@⁠urattems** on GitHub · 2026-11-24 17:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7139338408) **RTX 5070 (desktop), Windows 11: #578 + `MIN_DYNAMIC = 1 << 18` stops the world hang. Frame time is then mostly copies, not GPU.** ### Setup - NVIDIA GeForce RTX 5070, driver 32.0.16.2114, Windows 11 Pro (26200) - Intel Core i5-14600KF, 32 GB RAM - Retail title 1.0.2.1 (own copy), Series X mode - Diag build (`--profile diag --features diagnostics`), `VICTORY_D3D12_DRED=1`, controller input, the same caches for every run - Log: `host wave lanes min=32 max=32`; `host view heap capped at 1000000 ... count=1245184` (0x80070057) ### Before and after | Build | Result | |---|---| | `main` at `ffe310e` | 3 runs out of 3 removed with 0x887A0006 shortly after the first cutscene, after 30-35 lists. 6 nvlddmkm events (ID 153) in the System log. | | `ffe310e` + #578 + `MIN_DYNAMIC = 1 << 18` (nothing else) | **No device removal** in an 11-minute run, about 8 minutes of it in the world. I closed it myself. No nvlddmkm event during the run. 0 `no dynamic slots`, 0 `past the host heap`, 0 `slow host submission`. | ### DRED on `main` (the hang) The list stopped at command 1506 of 1900 (op 5). The hanging command is an indirect mesh draw (kind 10, max 1) with `[mesh f5804c93b00ea73e, pixel 05d9b48068ff972a]`. Its user-data heap indices are `null` slots: `u8` heap 327680, `u9` heap 877882, `u10` heap 877878. Every list after it shows 0 commands done. This matches the "mesh draw reading null heap slots" pattern in #1216. ### World with the patch (107 report lines) | per frame | average | min | max | |---|---:|---:|---:| | ms/frame | 675 | 300 | 3567 | | preparing | 419 | 193 | 705 | | of which copies | 360 | 142 | 647 | | on the GPU | 50 | 28 | 69 | | copying back | 62 | 19 | 126 | | draws run | 262 | 58 | 763 | | dropped without a host pipeline | 2500 | 490 | 7589 | | indirect dropped | 3554 | 570 | 7028 | The GPU itself takes about 50 ms per frame. Most of the frame time is the copies of title memory before submission. What you see on screen: the intro's credit cards and pre-rendered images render. There are no characters or scene geometry, and the screen eventually stays black. ### What is still missing - 170 host pipelines refused, all wave64 programs on a 32-lane host: 122 mesh and 48 compute. - 507 `shader does not translate`. The most common reasons: | count | reason | |---:|---| | 123 | a select on an untracked mask is not supported | | 109 | a descriptor read only as data is not supported | | 106 | a lane mask holding lanes elsewhere read as data | | 52 | a structured buffer of unknown stride | | 35 | an address in an SGPR that is no root parameter | | 18 | an address not from a root parameter | | 14 | a scalar memory read as data | | 10 | a descriptor's address or format read as data | | 9 | `image_gather4_l` | | 9 | an address from a phi | These results match the earlier RTX 5070 report in this thread, which was on another machine (Ryzen 9900X, driver 32.0.16.2124). Tested and written with an AI assistant.
Author
Owner

@⁠MrEjecutor on GitHub · 2026-11-24 17:58 UTC · original

RTX 5060 Ti, layer by layer on ffe310e: #578 alone still hangs half the runs here; with MIN_DYNAMIC = 1 << 18 on top, none of 4 did

Following @⁠FADZIII's run above (same card, all changes at once): the same stack, one layer at a time, plus #322, alternated runs, so each change's share shows. Branch with the layers as commits: https://github.com/MrEjecutor/VIctory/tree/nvidia-integration (d1eadf9 = #578, f4f27ee = + the MIN_DYNAMIC change, 447757d = + #322).

Setup: RTX 5060 Ti 16 GB, driver 621.24; Intel Core Ultra 5 225F; 32 GB; Windows 11 Pro 26200; diag builds (--profile diag --features diagnostics), Rust 1.100.0 (not the pinned 1.98.1); --console series-x; VICTORY_KEYS Enter every 10 s from 14 s; VICTORY_D3D12_DRED=1 on the layer runs; 240 s per run, stopped if still running. "World" = frame-rate lines under 5 fps after 20 s.

build runs device removed world fps (median per run) dropped without a host pipeline / frame (last line)
main ffe310e 2 2 (96 s, 121 s) 0.8, 1.0 –
#578 d1eadf9 4 2 (105 s, 165 s) 1.5, 1.7, 2.2, 2.5 1034, 2266
+ MIN_DYNAMIC = 1 << 18 f4f27ee 2 0 1.7, 1.7 1146, 1385
+ #322 447757d 2 0 1.8, 2.0 1070, 1103
  • The two #578-only removals (0x887A0006) both come right after a ~505 ms "slow host submission" of one list, and 12 compute pipelines are in both of those submissions: 010a50ce68d02c16, 1547305c505a7559, 1ea7e2dbf731c8dc, 25c5ee5063e1a41f, 44bb2d65d51ba5d1, 5b6eed17c131f881, 5da83868971acee9, 8080af82aaac33df, 9aa3629668b8e7ab, ae83305f523f4b1b, e35b7de6a9d2bfd4, ee26678cdf63cf32. In the run with DRED on, every breadcrumb list reads 2/2 (done).
  • cargo test --workspace --locked on ffe310e: 342 passed, 0 failed, 6 ignored (not rerun on the layers).
  • Picture (captured frames, last layer): the world segment shows the opening credits' cards over a black scene, as in the README; nothing of the 3D scene is visible.
  • Frame time stays at 400–650 ms in the world on every layer; #322 lowers copies in some samples (53 ms vs ~215 ms) but not the median frame rate here.

Not tested: MIN_DYNAMIC without #578; #322 without the other two; Series S; more than 2–4 runs per layer, so a hang rarer than that would not show; AMD.

AI use: Claude Code (Claude Opus 5.5) built the layers, ran the title, summarised the log lines and wrote this; checked by mrejecutor.

**@⁠MrEjecutor** on GitHub · 2026-11-24 17:58 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7139974022) **RTX 5060 Ti, layer by layer on `ffe310e`: #578 alone still hangs half the runs here; with `MIN_DYNAMIC = 1 << 18` on top, none of 4 did** Following @⁠FADZIII's run above (same card, all changes at once): the same stack, one layer at a time, plus #322, alternated runs, so each change's share shows. Branch with the layers as commits: https://github.com/MrEjecutor/VIctory/tree/nvidia-integration (`d1eadf9` = #578, `f4f27ee` = + the `MIN_DYNAMIC` change, `447757d` = + #322). **Setup:** RTX 5060 Ti 16 GB, driver 621.24; Intel Core Ultra 5 225F; 32 GB; Windows 11 Pro 26200; diag builds (`--profile diag --features diagnostics`), Rust 1.100.0 (not the pinned 1.98.1); `--console series-x`; `VICTORY_KEYS` Enter every 10 s from 14 s; `VICTORY_D3D12_DRED=1` on the layer runs; 240 s per run, stopped if still running. "World" = frame-rate lines under 5 fps after 20 s. | build | runs | device removed | world fps (median per run) | dropped without a host pipeline / frame (last line) | |---|---|---|---|---| | `main` `ffe310e` | 2 | 2 (96 s, 121 s) | 0.8, 1.0 | – | | #578 `d1eadf9` | 4 | 2 (105 s, 165 s) | 1.5, 1.7, 2.2, 2.5 | 1034, 2266 | | + `MIN_DYNAMIC = 1 << 18` `f4f27ee` | 2 | 0 | 1.7, 1.7 | 1146, 1385 | | + #322 `447757d` | 2 | 0 | 1.8, 2.0 | 1070, 1103 | - The two #578-only removals (`0x887A0006`) both come right after a ~505 ms "slow host submission" of one list, and 12 compute pipelines are in both of those submissions: `010a50ce68d02c16`, `1547305c505a7559`, `1ea7e2dbf731c8dc`, `25c5ee5063e1a41f`, `44bb2d65d51ba5d1`, `5b6eed17c131f881`, `5da83868971acee9`, `8080af82aaac33df`, `9aa3629668b8e7ab`, `ae83305f523f4b1b`, `e35b7de6a9d2bfd4`, `ee26678cdf63cf32`. In the run with DRED on, every breadcrumb list reads `2/2` (done). - `cargo test --workspace --locked` on `ffe310e`: 342 passed, 0 failed, 6 ignored (not rerun on the layers). - Picture (captured frames, last layer): the world segment shows the opening credits' cards over a black scene, as in the README; nothing of the 3D scene is visible. - Frame time stays at 400–650 ms in the world on every layer; #322 lowers `copies` in some samples (53 ms vs ~215 ms) but not the median frame rate here. **Not tested:** `MIN_DYNAMIC` without #578; #322 without the other two; Series S; more than 2–4 runs per layer, so a hang rarer than that would not show; AMD. **AI use:** Claude Code (Claude Opus 5.5) built the layers, ran the title, summarised the log lines and wrote this; checked by mrejecutor.
Author
Owner

@⁠CrooLyyCheck on GitHub · 2026-11-24 18:01 UTC · original

RTX 5080 on native Windows 11 with the minimal stack (ffe310e + #578 + MIN_DYNAMIC = 1 << 18, nothing else): no hang in 844 s in the world. The 3D scene is still black.

  • Hardware: NVIDIA GeForce RTX 5080 16 GB, driver 621.24 (32.0.16.2124); Ryzen 7 7800X3D, 64 GB; Windows 11 Pro 26200. The log shows host wave lanes min=32 max=32 and host view heap capped at 1000000 ... count=1245184.
  • Build: #578 at d1eadf9 (its head before the later push to fb7facd), merged locally onto main ffe310e; MIN_DYNAMIC changed to 1 << 18. Diag build, VICTORY_D3D12_DRED=1, empty shader cache, Xbox Series 1.0.2.1 (build unknown (b99f876b…)), Series X mode. cargo test --workspace --locked: 344 passed, 0 failed, 6 ignored.
Build, same machine, one run each Result
ffe310e 0x887A0006 after 117 s in the world; nvlddmkm 153 (TDR)
ffe310e + #587 0x887A0006 after 33 s in the world; TDR
ffe310e + #578 + 1 << 18 no device removal in a 900 s run, 844 s of it in the world. It was stopped by my time limit. No nvlddmkm event, no new crashes.log entry

With the stack applied, in the world:

  • 0 no dynamic slots, 0 past the host heap, 0 slow host submission.
  • #578 refused 127 mesh and 87 compute wave64 programs up front.
  • 1.1–6 fps (mean 3.3; 167–900 ms/frame), 27–490 draws/frame, about 2,600 dropped/frame without a host pipeline.
  • Peak memory of victory.exe: 13.8 GB working set, 25.6 GB private.

On screen: the credit cards and dialogue subtitles render, and the story advances to the prologue's second time-skip card. The in-game pause menu, photo mode and settings open and work with pad input. There is no scene geometry: the 3D stays black, as others report above.

**@⁠CrooLyyCheck** on GitHub · 2026-11-24 18:01 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7140056431) **RTX 5080 on native Windows 11 with the minimal stack (`ffe310e` + #578 + `MIN_DYNAMIC = 1 << 18`, nothing else): no hang in 844 s in the world. The 3D scene is still black.** - **Hardware:** NVIDIA GeForce RTX 5080 16 GB, driver 621.24 (32.0.16.2124); Ryzen 7 7800X3D, 64 GB; Windows 11 Pro 26200. The log shows `host wave lanes min=32 max=32` and `host view heap capped at 1000000 ... count=1245184`. - **Build:** #578 at `d1eadf9` (its head before the later push to `fb7facd`), merged locally onto `main` `ffe310e`; `MIN_DYNAMIC` changed to `1 << 18`. Diag build, `VICTORY_D3D12_DRED=1`, empty shader cache, Xbox Series 1.0.2.1 (`build unknown (b99f876b…)`), Series X mode. `cargo test --workspace --locked`: 344 passed, 0 failed, 6 ignored. | Build, same machine, one run each | Result | |---|---| | `ffe310e` | `0x887A0006` after 117 s in the world; `nvlddmkm` 153 (TDR) | | `ffe310e` + #587 | `0x887A0006` after 33 s in the world; TDR | | `ffe310e` + #578 + `1 << 18` | **no device removal** in a 900 s run, 844 s of it in the world. It was stopped by my time limit. No `nvlddmkm` event, no new `crashes.log` entry | With the stack applied, in the world: - 0 `no dynamic slots`, 0 `past the host heap`, 0 `slow host submission`. - #578 refused 127 mesh and 87 compute wave64 programs up front. - 1.1–6 fps (mean 3.3; 167–900 ms/frame), 27–490 draws/frame, about 2,600 dropped/frame without a host pipeline. - Peak memory of `victory.exe`: 13.8 GB working set, 25.6 GB private. On screen: the credit cards and dialogue subtitles render, and the story advances to the prologue's second time-skip card. The in-game pause menu, photo mode and settings open and work with pad input. There is no scene geometry: the 3D stays black, as others report above.
Author
Owner

@⁠neonbyte1 on GitHub · 2026-11-24 18:14 UTC · original

A data point from Linux: Wine 11.22 + vkd3d-proton (GE-Proton11-14), RTX 5090, driver 620.73.04, title build 930.048.020. The heap cap is the same there: host view heap capped at 1000000 error=Invalid parameter. count=1245184.

The change I applied is the second variant: the capped path uses DYNAMIC (PORTABLE_VIEWS - DYNAMIC title slots mirrored, i.e. 737,856, and 262,144 dynamic). The run before it used 2^16 dynamic slots.

Each run lasted 7 minutes in the first mission, with a diagnostics build. The change landed together with #439, #953 and #1129, so these are only the slot-related lines:

2^16 dynamic 2^18 dynamic
"no dynamic slots" warnings in the log 20 0
per-cause lines indirect kind 2: prepare failed (compute true) 52 0
per-cause lines indirect kind 1: prepare failed 11 0
per-cause lines indirect kind 0: prepare failed (rectangles, not slots) 55 66

The per-frame figures below are medians over frames with more than 1,000 draws; the other merges also contribute to them:

  • Indirect drops went from 2,241 to 1,416 per frame.
  • Draws run went from 3,110 to 4,062 per frame.
  • No table was refused as past the heap.
  • The remaining kind 0 drops were rectangle lists. #346 removed them.

One difference from your result: the G-buffer here still shows only props (tables, lamps, power lines) in the first mission, not terrain or cliffs. That could be the area the camera is in, or drops that remain in this stack (mesh-stage and compute translation failures). I haven't narrowed it down yet.

AI-assisted (Claude); runs on my machine, no game data shared.

**@⁠neonbyte1** on GitHub · 2026-11-24 18:14 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7140356358) A data point from Linux: Wine 11.22 + vkd3d-proton (GE-Proton11-14), RTX 5090, driver 620.73.04, title build 930.048.020. The heap cap is the same there: `host view heap capped at 1000000 error=Invalid parameter. count=1245184`. The change I applied is the second variant: the capped path uses `DYNAMIC` (`PORTABLE_VIEWS - DYNAMIC` title slots mirrored, i.e. 737,856, and 262,144 dynamic). The run before it used 2^16 dynamic slots. Each run lasted 7 minutes in the first mission, with a diagnostics build. The change landed together with #439, #953 and #1129, so these are only the slot-related lines: | | 2^16 dynamic | 2^18 dynamic | |---|---:|---:| | "no dynamic slots" warnings in the log | 20 | 0 | | per-cause lines `indirect kind 2: prepare failed (compute true)` | 52 | 0 | | per-cause lines `indirect kind 1: prepare failed` | 11 | 0 | | per-cause lines `indirect kind 0: prepare failed` (rectangles, not slots) | 55 | 66 | The per-frame figures below are medians over frames with more than 1,000 draws; the other merges also contribute to them: - Indirect drops went from 2,241 to 1,416 per frame. - Draws run went from 3,110 to 4,062 per frame. - No table was refused as past the heap. - The remaining kind 0 drops were rectangle lists. #346 removed them. One difference from your result: the G-buffer here still shows only props (tables, lamps, power lines) in the first mission, not terrain or cliffs. That could be the area the camera is in, or drops that remain in this stack (mesh-stage and compute translation failures). I haven't narrowed it down yet. _AI-assisted (Claude); runs on my machine, no game data shared._
Author
Owner

@⁠ThomasHFWright on GitHub · 2026-11-24 18:54 UTC · original

Controlled Linux/RTX5090 comparison of the capped-path variant: PORTABLE_VIEWS - DYNAMIC, DYNAMIC in the fallback tuple, reserving262144 temporary slots instead of65536. This removes the allocation warnings here, but is not a complete rendering/stability fix.

Setup: CachyOS7.3.6, NVIDIA620.73.04, Wine11.22, vkd3d-proton3.2.0 30b0eb9bc12dc9f, Rust1.98.1 MSVC cross-build. Base proton-fixes993dff8 + #852 + #454 + #206, retained bounded-fence/timestamp/descriptor diagnostics. Both runs have VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains, default loop limit, no shader skips, debug pixel shader and VICTORY_SHOW_TARGET=2560x1440-f28-3. #1024 is not in these runs.

65536 dynamic slots 262144 dynamic slots
Allocation warnings power-of-two no dynamic slots counter reached32768 zero
World image partial debug roads, buildings, wires, wheels and later character mesh partial debug props, traffic lights and wheels; no clear scene-completeness gain
End 573.2s, title breakpoint+0x5149aec, INSTANCE_LIST45000/45000 (#698) planned600s timeout, but frames stopped around278s and never resumed
Kernel Xid / GPU-fence timeout none none

The capped run's live thread samples identify the #774 lookup-spin signature: one title worker consumes about one CPU core, with instruction pointers at title+0x50eb826 and +0x50eb81f in separate read-only gdb attachments. Other threads mostly wait. So the600s lifetime is not600s of advancing world rendering. This does not establish that changing the pool caused the spin; #774 already reports it intermittently on other stacks.

128 wave64 refusal messages remain, along with untranslated mesh/compute programs. Reducing allocation failures does not restore those producers. No controlled movement or normal shaded scene established. Diagnostic timing is not a benchmark.

Candidate checks: full Windows workspace347passed/2unchanged Wine harness failures/7ignored across14executables; diagnostics GPU58/0/1; all-target/all-feature Clippy -Dwarnings and native asset policy pass. Harness failures remain nested Linux cargo in load_probe and Linux git from Wine. Four shader differential tests still early-return without compiler tools.

Runtime extension workaround and baseline details: #844

AI-assisted with Codex; offline runs, app-only mute, read-only game input. No title code, shaders, buffers or screenshots attached.

**@⁠ThomasHFWright** on GitHub · 2026-11-24 18:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7141313553) Controlled Linux/RTX5090 comparison of the capped-path variant: `PORTABLE_VIEWS - DYNAMIC, DYNAMIC` in the fallback tuple, reserving262144 temporary slots instead of65536. This removes the allocation warnings here, but is not a complete rendering/stability fix. Setup: CachyOS7.3.6, NVIDIA620.73.04, Wine11.22, vkd3d-proton3.2.0 `30b0eb9bc12dc9f`, Rust1.98.1 MSVC cross-build. Base `proton-fixes`993dff8 + #852 + #454 + #206, retained bounded-fence/timestamp/descriptor diagnostics. Both runs have `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`, default loop limit, no shader skips, debug pixel shader and `VICTORY_SHOW_TARGET=2560x1440-f28-3`. #1024 is not in these runs. | | 65536 dynamic slots | 262144 dynamic slots | |---|---|---| | Allocation warnings | power-of-two `no dynamic slots` counter reached32768 | zero | | World image | partial debug roads, buildings, wires, wheels and later character mesh | partial debug props, traffic lights and wheels; no clear scene-completeness gain | | End |573.2s, title breakpoint+0x5149aec, INSTANCE_LIST45000/45000 (#698) | planned600s timeout, but frames stopped around278s and never resumed | | Kernel Xid / GPU-fence timeout |none |none | The capped run's live thread samples identify the #774 lookup-spin signature: one title worker consumes about one CPU core, with instruction pointers at `title+0x50eb826` and `+0x50eb81f` in separate read-only gdb attachments. Other threads mostly wait. So the600s lifetime is **not**600s of advancing world rendering. This does not establish that changing the pool caused the spin; #774 already reports it intermittently on other stacks. 128 wave64 refusal messages remain, along with untranslated mesh/compute programs. Reducing allocation failures does not restore those producers. No controlled movement or normal shaded scene established. Diagnostic timing is not a benchmark. Candidate checks: full Windows workspace347passed/2unchanged Wine harness failures/7ignored across14executables; diagnostics GPU58/0/1; all-target/all-feature Clippy -Dwarnings and native asset policy pass. Harness failures remain nested Linux cargo in load_probe and Linux git from Wine. Four shader differential tests still early-return without compiler tools. Runtime extension workaround and baseline details: https://git.gtahub.st/github/Marvisak--VIctory/issues/844 AI-assisted with Codex; offline runs, app-only mute, read-only game input. No title code, shaders, buffers or screenshots attached.
Author
Owner

@⁠BitWuehler on GitHub · 2026-11-24 20:06 UTC · original

Linux + Proton + NVIDIA RTX 5080 (driver 620.73.04) data point for MIN_DYNAMIC = 1 << 18 (PORTABLE_VIEWS - MIN_DYNAMIC = 737,856 mirrored slots, 262,144 dynamic slots):

Setup: CachyOS (Linux 7.3.6-1-cachyos), Ryzen 7 9800X3D, 60 GB RAM, RTX 5080 16 GB (host view heap capped at 1000000 ... count=1245184), GE-Proton11-14 via umu-run (VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains), retail 1.0.2.1, --console series-x, diag build, VICTORY_DEBUG_PS=1, VICTORY_SHOW_TARGET=2560x1440-f28-3, VICTORY_NO_WATCHDOG=1.

(Note: between the two runs on this box, #206 was also swapped for #1260 + #1267, so frame-time changes are combined; the slot drops and draw-count jump below directly reflect the 2^18 dynamic reserve.)

Metric (world draws >= 100) 2^16 dynamic (934,464 mirrored) 2^18 dynamic (737,856 mirrored)
"no dynamic slots" warnings 16 0
draws/frame (median / max) 1,076 / 4,639 2,076 / 5,662
title slot past the host heap warnings 310,720 507,328
GPU faults / device removals / Xids 0 / 0 / 0 0 / 0 / 0

Visually, the debug-shaded world geometry is noticeably denser with 1 << 18, matching the ~2× increase in executed draws/frame, with no refused tables or device loss across ~4.5 min of active world rendering (before a silent title hang at frame=1443, 0 DRED/Xid events).

AI-assisted log analysis and summary; built and run locally on my own retail copy, no game files or raw logs attached.

**@⁠BitWuehler** on GitHub · 2026-11-24 20:06 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7143052007) Linux + Proton + **NVIDIA RTX 5080 (driver `620.73.04`)** data point for `MIN_DYNAMIC = 1 << 18` (`PORTABLE_VIEWS - MIN_DYNAMIC` = `737,856` mirrored slots, `262,144` dynamic slots): **Setup:** CachyOS (`Linux 7.3.6-1-cachyos`), Ryzen 7 9800X3D, 60 GB RAM, RTX 5080 16 GB (`host view heap capped at 1000000 ... count=1245184`), `GE-Proton11-14` via `umu-run` (`VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`), retail `1.0.2.1`, `--console series-x`, `diag` build, `VICTORY_DEBUG_PS=1`, `VICTORY_SHOW_TARGET=2560x1440-f28-3`, `VICTORY_NO_WATCHDOG=1`. *(Note: between the two runs on this box, `#206` was also swapped for `#1260` + `#1267`, so frame-time changes are combined; the slot drops and draw-count jump below directly reflect the `2^18` dynamic reserve.)* | Metric (world `draws >= 100`) | `2^16` dynamic (`934,464` mirrored) | `2^18` dynamic (`737,856` mirrored) | |---|---:|---:| | `"no dynamic slots"` warnings | `16` | **`0`** | | `draws/frame` (median / max) | `1,076` / `4,639` | **`2,076`** / **`5,662`** | | `title slot past the host heap` warnings | `310,720` | `507,328` | | GPU faults / device removals / Xids | `0` / `0` / `0` | **`0`** / **`0`** / **`0`** | Visually, the debug-shaded world geometry is noticeably denser with `1 << 18`, matching the ~2× increase in executed draws/frame, with no refused tables or device loss across ~4.5 min of active world rendering (before a silent title hang at `frame=1443`, `0` DRED/Xid events). *AI-assisted log analysis and summary; built and run locally on my own retail copy, no game files or raw logs attached.*
Author
Owner

@⁠adnanoos on GitHub · 2026-11-24 22:08 UTC · original

Confirming on an RTX 5060 Laptop GPU (Blackwell): with the 2^16 reserve, over 1,048,576 draws were dropped for lack of dynamic slots in ~5.5 minutes of world, and the G-buffer stayed nearly empty. With #1349's 2^18 reserve: 0 such drops, draws per world frame 897 → 2,401, and the G-buffer holds the scene (furniture, a sign, overhead lines). The final output is still unlit. Numbers and setup are on #1349.

**@⁠adnanoos** on GitHub · 2026-11-24 22:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7145853376) Confirming on an RTX 5060 Laptop GPU (Blackwell): with the 2^16 reserve, over 1,048,576 draws were dropped for lack of dynamic slots in ~5.5 minutes of world, and the G-buffer stayed nearly empty. With #1349's 2^18 reserve: 0 such drops, draws per world frame 897 → 2,401, and the G-buffer holds the scene (furniture, a sign, overhead lines). The final output is still unlit. Numbers and setup are on #1349.
Author
Owner

@⁠tatazildo on GitHub · 2026-11-25 00:26 UTC · original

Environment

  • Commit: 3dce4ba
  • CPU: Intel Core i9-13900K
  • GPU: NVIDIA GeForce RTX 3080 Ti (12 GB)
  • NVIDIA driver: 621.24
  • RAM: 64 GB DDR4
  • OS: Windows 11 Pro, build 26300

Full sequential workspace test results

  • 471 passed
  • 5 failed
  • 7 ignored

All five failures were subsequently reproduced individually in separate processes using --exact --test-threads=1 --nocapture.

GPU test failures

descriptor::host::tests::dynamic_slots_are_held_until_released

Location: descriptor/host.rs:1418

Assertion:

heap.heap.GetDesc().NumDescriptors >= victory_shader::emit::HEAP_VIEWS

memory::tests::lists_share_a_table_and_copies_keep_their_views

Location: memory.rs:673

past the dynamic slots

Shader test failures

emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride

Location: emit/stride_tests.rs:293

assertion left == right failed: hardware
left: [101, 104, 107, 110, 113, 116, 119, 122, 125, 128, 131, 0, ...]
right: [200, 201, 202, ..., 231]

emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros

Location: emit/stride_tests.rs:343

hardware: dispatch failed: Incorrect parameter.

emit::synthetic_tests::gathers_at_a_level_match_the_hardware

Location: emit/synthetic_tests.rs:261

assertion left == right failed: hardware: lane 0
left: [0.0, 1.0, 0.0, 0.0]
right: [0.0, 0.0, 0.0, 0.0]

Additional observations

  • All five failures reproduced with identical errors or output values when tested individually.
  • No GPU device removal or device hangs were reported during the isolated tests.
  • All other workspace tests completed without reported failures, excluding ignored and internally skipped cases.
  • The first four failures may be related to descriptor heap capacity or descriptor interpretation, although this has not been confirmed.

Both complete and isolated test logs are available.

AI disclosure: ChatGPT assisted with test procedures, diagnostic analysis and preparation of this report. All tests were performed on my own hardware.

**@⁠tatazildo** on GitHub · 2026-11-25 00:26 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7148512606) ### Environment - Commit: `3dce4ba` - CPU: Intel Core i9-13900K - GPU: NVIDIA GeForce RTX 3080 Ti (12 GB) - NVIDIA driver: 621.24 - RAM: 64 GB DDR4 - OS: Windows 11 Pro, build 26300 ### Full sequential workspace test results - 471 passed - 5 failed - 7 ignored All five failures were subsequently reproduced individually in separate processes using `--exact --test-threads=1 --nocapture`. ### GPU test failures `descriptor::host::tests::dynamic_slots_are_held_until_released` Location: `descriptor/host.rs:1418` Assertion: heap.heap.GetDesc().NumDescriptors >= victory_shader::emit::HEAP_VIEWS `memory::tests::lists_share_a_table_and_copies_keep_their_views` Location: `memory.rs:673` past the dynamic slots ### Shader test failures `emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride` Location: `emit/stride_tests.rs:293` assertion left == right failed: hardware left: [101, 104, 107, 110, 113, 116, 119, 122, 125, 128, 131, 0, ...] right: [200, 201, 202, ..., 231] `emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros` Location: `emit/stride_tests.rs:343` hardware: dispatch failed: Incorrect parameter. `emit::synthetic_tests::gathers_at_a_level_match_the_hardware` Location: `emit/synthetic_tests.rs:261` assertion left == right failed: hardware: lane 0 left: [0.0, 1.0, 0.0, 0.0] right: [0.0, 0.0, 0.0, 0.0] ### Additional observations - All five failures reproduced with identical errors or output values when tested individually. - No GPU device removal or device hangs were reported during the isolated tests. - All other workspace tests completed without reported failures, excluding ignored and internally skipped cases. - The first four failures may be related to descriptor heap capacity or descriptor interpretation, although this has not been confirmed. Both complete and isolated test logs are available. AI disclosure: ChatGPT assisted with test procedures, diagnostic analysis and preparation of this report. All tests were performed on my own hardware.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 03:50 UTC · original · edited 2026-11-25 21:45 UTC

Automated triage for the maintainers.

Still confirmed on current main (61bfc77). In crates/victory-gpu/src/descriptor/host.rs, HostHeap::new falls back to make(count + MIN_DYNAMIC) and then to the PORTABLE_VIEWS cap with MIN_DYNAMIC = 1 << 16 when the host refuses count + DYNAMIC (NVIDIA's 1,000,000-descriptor limit for a 1,245,184-slot title heap). The comment on DYNAMIC itself records that 2^16 ran out in the world. The thread has independent measurements on many NVIDIA cards, on Windows and on Wine: with 2^18 on the capped path, the no dynamic slots drops go to zero and roughly twice as many draws run. It is not a hang fix by itself. Several runs still lost the device until wave64 programs were also refused on 32-lane hosts (#578, tracked with the NVIDIA hang in #71).

Merges since the last triage do not change this: #1273 (placed unordered texture views now resolve to real UAVs through placed_texture) and the other recent descriptor/host.rs commits leave the capped split and MIN_DYNAMIC as they were.

Open PRs: #1349 (2^18 on capped heaps plus trimming fresh tables to their first used entry, linked here) and its rebase #2475 (which currently conflicts with main), #1751 and #1548 (capped heaps keep the full dynamic range), #1779 / #2650, and #688 (reclaim slots from finished lists). New: a side-by-side unit-test run of the capped-heap PRs on an RTX 5080 under Wine compares #2683, #2682, #2650, #2461 and #2628. That run covers the three tests that fail on capped heaps (tracked in #1744), not the world-load drops this issue is about. One open question from the thread for review: the split moves the boundary where direct heap indices reach dynamic slots from about 934k to about 738k.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 03:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7152283975) · edited 2026-11-25 21:45 UTC <!-- victory-issue-triage v1 verdict=confirmed seen=2026-11-25T21:07:36Z at=2026-11-25T21:50:00Z --> Automated triage for the maintainers. Still confirmed on current `main` (61bfc77). In `crates/victory-gpu/src/descriptor/host.rs`, `HostHeap::new` falls back to `make(count + MIN_DYNAMIC)` and then to the `PORTABLE_VIEWS` cap with `MIN_DYNAMIC = 1 << 16` when the host refuses `count + DYNAMIC` (NVIDIA's 1,000,000-descriptor limit for a 1,245,184-slot title heap). The comment on `DYNAMIC` itself records that 2^16 ran out in the world. The thread has independent measurements on many NVIDIA cards, on Windows and on Wine: with 2^18 on the capped path, the `no dynamic slots` drops go to zero and roughly twice as many draws run. It is not a hang fix by itself. Several runs still lost the device until wave64 programs were also refused on 32-lane hosts (#578, tracked with the NVIDIA hang in #71). Merges since the last triage do not change this: #1273 (placed unordered texture views now resolve to real UAVs through `placed_texture`) and the other recent `descriptor/host.rs` commits leave the capped split and `MIN_DYNAMIC` as they were. Open PRs: **#1349** (2^18 on capped heaps plus trimming fresh tables to their first used entry, linked here) and its rebase #2475 (which currently conflicts with `main`), #1751 and #1548 (capped heaps keep the full dynamic range), #1779 / #2650, and #688 (reclaim slots from finished lists). New: a side-by-side unit-test run of the capped-heap PRs on an RTX 5080 under Wine compares #2683, #2682, #2650, #2461 and #2628. That run covers the three tests that fail on capped heaps (tracked in #1744), not the world-load drops this issue is about. One open question from the thread for review: the split moves the boundary where direct heap indices reach dynamic slots from about 934k to about 738k. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠Kajanos on GitHub · 2026-11-25 21:07 UTC · original

Side-by-side run of the open capped-view-heap PRs, on one machine (Linux / Wine / vkd3d-proton, NVIDIA)

Setup: Linux (Gentoo) / wine-proton 11.0.3 / vkd3d-proton 3.1, RTX 5080, NVIDIA 620.73.04. Cross-built with cargo-xwin for x86_64-pc-windows-msvc (rustc 1.98.1), with native d3dcompiler_47 and dxil.dll from DXC v1.9.2609. Each PR was merged locally onto main 13f91caee2, then I ran cargo xwin test -p victory-gpu -p victory-shader.

On main, 3 tests fail here because of the heap cap:

  • descriptor::host::tests::dynamic_slots_are_held_until_released (NumDescriptors >= HEAP_VIEWS)
  • memory::tests::lists_share_a_table_and_copies_keep_their_views (past the dynamic slots)
  • emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros (dispatch failed: Invalid parameter)
PR head dynamic_slots lists_share heap_buffer_read…zeros new failures
#2683 541a3203f8 ✅ ✅ ✅ none
#2682 b53e4c6ce8 ✅ ✅ ✅ none
#2650 3e606d2786 ✅ ✅ ✅ none
#2461 00c9c5bb39 ✅ ✅ ✅ none
#2628 46d530a9be ✅ ✅ ❌ (as its author notes) none
#2558 b0fbdcb60e ❌ ❌ ❌ none (not aimed at the cap)
#2634 a9eca1430a ❌ ❌ ❌ none (diagnostic only)
#2475 e33b8bff82 not run: conflicts with main

"New failures" means failures outside the set that also fails on main in this environment. The other failures on every branch also fail on main: the two pipeline::library tests (fixed by #1722), draw::…placed_view (fixed by #2101), and two vkd3d-proton differences in victory-shader (stub_pipeline_is_created, rounding_matches_the_hardware).

Not run: the retail title, so nothing here is about world-load behaviour. Not run on Windows.

AI-assisted (Claude Code)

**@⁠Kajanos** on GitHub · 2026-11-25 21:07 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7174646737) **Side-by-side run of the open capped-view-heap PRs, on one machine (Linux / Wine / vkd3d-proton, NVIDIA)** Setup: Linux (Gentoo) / wine-proton 11.0.3 / vkd3d-proton 3.1, RTX 5080, NVIDIA 620.73.04. Cross-built with cargo-xwin for `x86_64-pc-windows-msvc` (rustc 1.98.1), with native `d3dcompiler_47` and `dxil.dll` from DXC v1.9.2609. Each PR was merged locally onto `main` `13f91caee2`, then I ran `cargo xwin test -p victory-gpu -p victory-shader`. On `main`, 3 tests fail here because of the heap cap: - `descriptor::host::tests::dynamic_slots_are_held_until_released` (`NumDescriptors >= HEAP_VIEWS`) - `memory::tests::lists_share_a_table_and_copies_keep_their_views` (`past the dynamic slots`) - `emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros` (`dispatch failed: Invalid parameter`) | PR | head | dynamic_slots | lists_share | heap_buffer_read…zeros | new failures | |---|---|---|---|---|---| | #2683 | `541a3203f8` | ✅ | ✅ | ✅ | none | | #2682 | `b53e4c6ce8` | ✅ | ✅ | ✅ | none | | #2650 | `3e606d2786` | ✅ | ✅ | ✅ | none | | #2461 | `00c9c5bb39` | ✅ | ✅ | ✅ | none | | #2628 | `46d530a9be` | ✅ | ✅ | ❌ (as its author notes) | none | | #2558 | `b0fbdcb60e` | ❌ | ❌ | ❌ | none (not aimed at the cap) | | #2634 | `a9eca1430a` | ❌ | ❌ | ❌ | none (diagnostic only) | | #2475 | `e33b8bff82` | not run: conflicts with `main` | | | | "New failures" means failures outside the set that also fails on `main` in this environment. The other failures on every branch also fail on `main`: the two `pipeline::library` tests (fixed by #1722), `draw::…placed_view` (fixed by #2101), and two vkd3d-proton differences in `victory-shader` (`stub_pipeline_is_created`, `rounding_matches_the_hardware`). Not run: the retail title, so nothing here is about world-load behaviour. Not run on Windows. AI-assisted (Claude Code)
Author
Owner

@⁠potatoe0100 on GitHub · 2026-11-26 14:21 UTC · original

A code comparison of the open PRs for this issue against main 63bcca4: what each gives a 1,245,184-slot title heap on a 1,000,000 cap. The world runs above show the "no dynamic slots" drops need about 2^18 dynamic slots.

PR dynamic slots title slots kept shaders clamp to the cap state
#2461 262,144 721,469 yes (options 19, else a probe) merges cleanly
#2628 262,144 737,853 yes needs work
#1548 262,144 713,280 no (indices past the cap still fault) merges
#2475 / #1349 262,144 737,856 no conflicts; also trims fresh tables
#2177 131,072 844,349 yes merges
#1777, #2683, #3122, #2189 65,536 or fewer about 934k some leave the drops as they are
#2121, #2650 / #1779 paged heap all, paged yes needs work / conflicts

On an RTX 4060 (driver 621.14, Windows 11), #2461 fixes 3 of the 5 NVIDIA unit-test failures on main. The other two are separate (#2178 / #2464, and the gather test). It is also the only PR here with A/B world runs of its own (RTX 2080 and RTX 5080: 0 dynamic-slot drops, no draw reading a left-out slot). So #2461 looks like the one to take. #2475's fresh-table trimming and #688's slot reclaim don't conflict with it in intent and could follow on top.

#1760 (lowering the title's page count so its heap fits the cap whole) is a different lever. It relies on a title byte patch through #1059, so it is opt-in per title build rather than a host-side default. As written, #2461 would cut that 933,888-slot heap to 721,469; details and numbers are in the review on #2461.

AI-assisted (Claude). Unit tests and code reading only, no game data.

**@⁠potatoe0100** on GitHub · 2026-11-26 14:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7194683904) A code comparison of the open PRs for this issue against `main` `63bcca4`: what each gives a 1,245,184-slot title heap on a 1,000,000 cap. The world runs above show the "no dynamic slots" drops need about 2^18 dynamic slots. | PR | dynamic slots | title slots kept | shaders clamp to the cap | state | |---|---:|---:|---|---| | #2461 | 262,144 | 721,469 | yes (options 19, else a probe) | merges cleanly | | #2628 | 262,144 | 737,853 | yes | needs work | | #1548 | 262,144 | 713,280 | no (indices past the cap still fault) | merges | | #2475 / #1349 | 262,144 | 737,856 | no | conflicts; also trims fresh tables | | #2177 | 131,072 | 844,349 | yes | merges | | #1777, #2683, #3122, #2189 | 65,536 or fewer | about 934k | some | leave the drops as they are | | #2121, #2650 / #1779 | paged heap | all, paged | yes | needs work / conflicts | On an RTX 4060 (driver 621.14, Windows 11), #2461 fixes 3 of the 5 NVIDIA unit-test failures on `main`. The other two are separate (#2178 / #2464, and the gather test). It is also the only PR here with A/B world runs of its own (RTX 2080 and RTX 5080: 0 dynamic-slot drops, no draw reading a left-out slot). So #2461 looks like the one to take. #2475's fresh-table trimming and #688's slot reclaim don't conflict with it in intent and could follow on top. #1760 (lowering the title's page count so its heap fits the cap whole) is a different lever. It relies on a title byte patch through #1059, so it is opt-in per title build rather than a host-side default. As written, #2461 would cut that 933,888-slot heap to 721,469; details and numbers are in the review on #2461. AI-assisted (Claude). Unit tests and code reading only, no game data.
Author
Owner

@⁠MrEjecutor on GitHub · 2026-11-26 15:39 UTC · original

A world data point on the 2^18 question, from a mid-range Blackwell card. Caveat first: this is not main. It is the fork trustno1-coder/VIctory-NVIDIA (7480e96), whose speed set includes a thinner submission path, so tables per frame are not directly comparable with the 2080/5080 runs above. On this machine plain main does not get past the loading art within 15 minutes, so I cannot run the PRs in the table in the world.

Setup: RTX 5060 Ti 16 GB (heap capped at 1,000,000 views), Windows 11, driver 621.24, title 1.0.2.1, Series S profile, the same scripted 600 s walk through the prologue's cell block, warm cache, two launches back to back.

dynamic slots in use tables asked a frame refused a frame draws a frame world fps, median
fork default 262,144 (2^18) 8,853 944 3,016 11.1
VICTORY_DYNAMIC_SLOTS=524288 499,999 (capped at half the heap) 8,538 33 3,384 9.7

(Per-frame means over the 5-second "recording per frame" lines, about 110 per run.)

So in these places 2^18 still left about one table in ten refused, and the higher frame rate without the extra slots comes from drawing about 11 % less. About half the heap brought refusals near zero. The fork's own comment on that switch reports up to 3,285 refused tables a frame at 2^18 in the title's bigger places, which fits.

Not tested: main or any PR in the table above in the world on this card (it does not reach the world here); other scenes; more than one launch per side.

AI use: runs, numbers and this text were done with Claude Code.

**@⁠MrEjecutor** on GitHub · 2026-11-26 15:39 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7196575484) A world data point on the 2^18 question, from a mid-range Blackwell card. Caveat first: this is not `main`. It is the fork trustno1-coder/VIctory-NVIDIA (`7480e96`), whose speed set includes a thinner submission path, so tables per frame are not directly comparable with the 2080/5080 runs above. On this machine plain `main` does not get past the loading art within 15 minutes, so I cannot run the PRs in the table in the world. Setup: RTX 5060 Ti 16 GB (heap capped at 1,000,000 views), Windows 11, driver 621.24, title 1.0.2.1, Series S profile, the same scripted 600 s walk through the prologue's cell block, warm cache, two launches back to back. | | dynamic slots in use | tables asked a frame | refused a frame | draws a frame | world fps, median | |---|---:|---:|---:|---:|---:| | fork default | 262,144 (2^18) | 8,853 | **944** | 3,016 | 11.1 | | `VICTORY_DYNAMIC_SLOTS=524288` | 499,999 (capped at half the heap) | 8,538 | **33** | 3,384 | 9.7 | (Per-frame means over the 5-second "recording per frame" lines, about 110 per run.) So in these places 2^18 still left about one table in ten refused, and the higher frame rate without the extra slots comes from drawing about 11 % less. About half the heap brought refusals near zero. The fork's own comment on that switch reports up to 3,285 refused tables a frame at 2^18 in the title's bigger places, which fits. Not tested: `main` or any PR in the table above in the world on this card (it does not reach the world here); other scenes; more than one launch per side. AI use: runs, numbers and this text were done with Claude Code.
Author
Owner

@⁠YouKnowWh on GitHub · 2026-11-26 16:56 UTC · original

RTX 5070 Ti 16 GB, Windows, driver 621.14. I tested main 63bcca4 against #2461 (6544a52 merged onto that same main). The PR reproduced the RTX 4060 result on this card: 3 of the 5 isolated hardware tests changed from fail to pass. Those were dynamic slot lifetime, shared tables retaining their views, and reading zeros from a missing heap buffer view. The buffer-stride and gather-at-level tests still failed.

I also ran the PR build with the Series S profile, a copy of our local save data and a single scripted Enter press at 22 s. The cache came from an earlier PR launch; the runtime loaded a 69,491,074-byte pipeline library and continued building pipelines during this run. The host reported a 1,000,000-descriptor cap and kept 721,469 of the requested 1,245,184 title slots, with 262,144 dynamic slots. The window first reported at least 1,000 draws/frame at 89.2 s. We sampled for another 120 s, then closed normally (exit 0). Across 17 high-draw telemetry reports, the median was 1,981 draws/frame and the peak was 3,269. The entire log contained zero contiguous-slot allocation warnings, zero dynamic-table drop warnings and zero root-view allocation warnings. This was one low-throughput opening sequence on the PR. The 600-second scripted walk on the NVIDIA fork exercises a different workload. Peak slot occupancy and the effect of a larger reserve remain unmeasured on this setup.

One caveat for interpreting the high-slot diagnostic: this run logged 523,715 successive high-water indices, from 721,469 through 1,245,183, all with for_draw=false, in the first two seconds after heap creation. HostHeap::mirror only reports a new maximum. Once initialization has touched the final index, later draw-time accesses to that range can be silent. A separate counter incremented whenever for_draw && index >= self.count, before the high-water check, would count draw-time mirror requests even after initialization reaches the maximum. Shader-side indexed reads would need separate instrumentation.

In this opening sequence, the median reported frame time was 4,010.8 ms and the median “on the GPU” field was 3,087.7 ms in those 17 reports. In this build the latter measures wall time around command submission and the fence wait. There were also a median 840 drops/frame attributed to missing host pipelines. These are separate from the dynamic-slot warnings. On this workload we observed no evidence of dynamic-slot exhaustion; it leaves the higher-throughput fork result open.

AI-assisted with Codex. No game files attached.

**@⁠YouKnowWh** on GitHub · 2026-11-26 16:56 UTC · [original](https://github.com/Marvisak/VIctory/issues/747#issuecomment-7198294541) RTX 5070 Ti 16 GB, Windows, driver 621.14. I tested main `63bcca4` against #2461 (`6544a52` merged onto that same main). The PR reproduced the RTX 4060 result on this card: 3 of the 5 isolated hardware tests changed from fail to pass. Those were dynamic slot lifetime, shared tables retaining their views, and reading zeros from a missing heap buffer view. The buffer-stride and gather-at-level tests still failed. I also ran the PR build with the Series S profile, a copy of our local save data and a single scripted Enter press at 22 s. The cache came from an earlier PR launch; the runtime loaded a 69,491,074-byte pipeline library and continued building pipelines during this run. The host reported a 1,000,000-descriptor cap and kept 721,469 of the requested 1,245,184 title slots, with 262,144 dynamic slots. The window first reported at least 1,000 draws/frame at 89.2 s. We sampled for another 120 s, then closed normally (exit 0). Across 17 high-draw telemetry reports, the median was 1,981 draws/frame and the peak was 3,269. The entire log contained zero contiguous-slot allocation warnings, zero dynamic-table drop warnings and zero root-view allocation warnings. This was one low-throughput opening sequence on the PR. The 600-second scripted walk on the NVIDIA fork exercises a different workload. Peak slot occupancy and the effect of a larger reserve remain unmeasured on this setup. One caveat for interpreting the high-slot diagnostic: this run logged 523,715 successive high-water indices, from 721,469 through 1,245,183, all with `for_draw=false`, in the first two seconds after heap creation. `HostHeap::mirror` only reports a new maximum. Once initialization has touched the final index, later draw-time accesses to that range can be silent. A separate counter incremented whenever `for_draw && index >= self.count`, before the high-water check, would count draw-time mirror requests even after initialization reaches the maximum. Shader-side indexed reads would need separate instrumentation. In this opening sequence, the median reported frame time was 4,010.8 ms and the median “on the GPU” field was 3,087.7 ms in those 17 reports. In this build the latter measures wall time around command submission and the fence wait. There were also a median 840 drops/frame attributed to missing host pipelines. These are separate from the dynamic-slot warnings. On this workload we observed no evidence of dynamic-slot exhaustion; it leaves the higher-throughput fork result open. AI-assisted with Codex. No game files attached.
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/Marvisak--VIctory#747
No description provided.