World load on NVIDIA with no device removal: title breakpoint (0x80000003) after ~6.7 min, INSTANCE_LIST pool full (45000/45000) #698

Open
opened 2026-11-24 07:00:56 +00:00 by walterwallaceson · 47 comments
walterwallaceson commented 2026-11-24 07:00:56 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by walterwallaceson on 2026-11-24T07:00:56Z.


With the device removal out of the way (#493 + #483), the world load on this machine now ends about 6.5–7 minutes in with the title stopping itself: 0x80000003 on 7 threads at once. In both runs the title's own crash report (written to temp\*.crash.log in the data folder) shows its INSTANCE_LIST pool exactly full.

Setup

What happens

  • Intro, loading screens, the first mission's title card, the opening cutscene's subtitles and the opening credits render; the 3D scene stays black. 0.2–1.8 fps in the world, dynamic descriptor slots run out (draws dropped up to 65536), no device removal.
  • Then the title hits 0x80000003 on 7 threads, all with the same stack; it writes its crash report and tries to upload a minidump, which the network policy blocks.
run 1 run 2
breakpoint +0x5149aec +0x63966f
stack +0x5149aec, +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211, +0x257035e, +0x221c29c, +0x2215eca +0x63966f, +0x3e54ad0, +0x257035e, +0x221c29c, +0x2215eca
game running time / frame 6m49s / 1462 6m39s / 1025
INSTANCE_LIST 45000/45000 45000/45000
BUILDING 22084/22500 21961/22500
OBJECT 17108/27500 17891/27500
streaming requests 1116 3645
tile heap used 3290 of 6236 MB 4671 of 6236 MB
SRL state Prestream Prestream
Paused Yes Yes

The breakpoint address differs between the runs but the pool state is the same, so my guess (not verified) is that the title asserts on a pool overflow wherever the next allocation lands, and that the instance lists are not released fast enough at under 1 fps with many draws dropped. That would make this a consequence of the slow, mostly-dropped world rendering rather than a separate bug, but I haven't confirmed which code fills the pool.

No game data in this report (the crash report file itself is not attached; it holds the title's internal IDs).

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

<!-- greyfinch-sync:Marvisak/VIctory:issue:6576468780 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698). Originally posted by [walterwallaceson](https://github.com/walterwallaceson) on 2026-11-24T07:00:56Z. --- With the device removal out of the way (#493 + #483), the world load on this machine now ends about 6.5–7 minutes in with the title stopping itself: `0x80000003` on 7 threads at once. In both runs the title's own crash report (written to `temp\*.crash.log` in the data folder) shows its `INSTANCE_LIST` pool exactly full. **Setup** - Windows 10 22H2 (19045.6466), NVIDIA RTX 3070, driver 621.14, Ryzen 5 5600X, 32 GB, release build - `d2a4bae` + #175 (19aec59), #233 + #320 + #439 (f653ea4), #55 (56f1d41), #89 (081afbd), #336 (e8d3b64), #334 (af2aecf), #493 (c48b240), #483 (65a161d); #493/#483 conflict resolved as described on #493 - `victory run --execute`, no diagnostics variables **What happens** - Intro, loading screens, the first mission's title card, the opening cutscene's subtitles and the opening credits render; the 3D scene stays black. 0.2–1.8 fps in the world, dynamic descriptor slots run out (draws dropped up to 65536), no device removal. - Then the title hits `0x80000003` on 7 threads, all with the same stack; it writes its crash report and tries to upload a minidump, which the network policy blocks. | | run 1 | run 2 | |---|---|---| | breakpoint | `+0x5149aec` | `+0x63966f` | | stack | `+0x5149aec`, `+0xa5db22`, `+0x5453ac7`, `+0x23d0f9a`, `+0x23d1211`, `+0x257035e`, `+0x221c29c`, `+0x2215eca` | `+0x63966f`, `+0x3e54ad0`, `+0x257035e`, `+0x221c29c`, `+0x2215eca` | | game running time / frame | 6m49s / 1462 | 6m39s / 1025 | | `INSTANCE_LIST` | **45000/45000** | **45000/45000** | | `BUILDING` | 22084/22500 | 21961/22500 | | `OBJECT` | 17108/27500 | 17891/27500 | | streaming requests | 1116 | 3645 | | tile heap used | 3290 of 6236 MB | 4671 of 6236 MB | | SRL state | Prestream | Prestream | | `Paused` | Yes | Yes | The breakpoint address differs between the runs but the pool state is the same, so my guess (not verified) is that the title asserts on a pool overflow wherever the next allocation lands, and that the instance lists are not released fast enough at under 1 fps with many draws dropped. That would make this a consequence of the slow, mostly-dropped world rendering rather than a separate bug, but I haven't confirmed which code fills the pool. No game data in this report (the crash report file itself is not attached; it holds the title's internal IDs). AI-assisted (Claude Code); everything above was run on my machine.
cj5k9dnkfd-afk commented 2026-11-24 08:02:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by cj5k9dnkfd-afk on 2026-11-24T07:38:42Z.


Hi anyone have the game Link

<!-- greyfinch-sync:Marvisak/VIctory:comment:7125214159 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7125214159). Originally posted by [cj5k9dnkfd-afk](https://github.com/cj5k9dnkfd-afk) on 2026-11-24T07:38:42Z. --- Hi anyone have the game Link
LAKSHYA-cmd-tech commented 2026-11-24 08:02:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T07:46:51Z.


This pool exhaustion (INSTANCE_LIST: 45000/45000) is directly coupled with the dynamic descriptor exhaustion and dropped draws during world load.

Here is the chain of events:

  1. Instance Culling & Unknown Stride: As identified in PR #704, the title's world geometry and instance-culling compute shaders select structured buffers via runtime heap indices. Previously, unknown-stride structured buffers failed translation or returned zeros on Nvidia due to typed/structured view mismatches, causing instance-culling passes to drop output.
  2. Descriptor Pool Depletion: When dynamic descriptor heaps hit their ceiling (e.g. 65,536 on Nvidia), HostHeap::dynamic drops further draws/dispatches. Unexecuted lists leave their allocated instance lists unconsumed in the guest heap.
  3. Remediation:
    • Applying PR #688 (dynamic-slot-reclaim) allows dynamic descriptor slots of executed command lists to be reclaimed, preventing the dynamic descriptor pool from saturating at 65,536.
    • Applying PR #704 ensures unknown-stride structured buffer reads resolve to raw views with matching byte offsets, allowing the instance culling shaders to complete correctly.
    • Together with PR #653 fixes (lowering untracked/constant masks in v_cndmask_b32 and _co_ci_u32), the instance-culling compute pipelines will no longer abort translation or drop dispatches.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7125363012 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7125363012). Originally posted by [LAKSHYA-cmd-tech](https://github.com/LAKSHYA-cmd-tech) on 2026-11-24T07:46:51Z. --- This pool exhaustion (`INSTANCE_LIST: 45000/45000`) is directly coupled with the dynamic descriptor exhaustion and dropped draws during world load. Here is the chain of events: 1. **Instance Culling & Unknown Stride**: As identified in PR #704, the title's world geometry and instance-culling compute shaders select structured buffers via runtime heap indices. Previously, unknown-stride structured buffers failed translation or returned zeros on Nvidia due to typed/structured view mismatches, causing instance-culling passes to drop output. 2. **Descriptor Pool Depletion**: When dynamic descriptor heaps hit their ceiling (e.g. 65,536 on Nvidia), `HostHeap::dynamic` drops further draws/dispatches. Unexecuted lists leave their allocated instance lists unconsumed in the guest heap. 3. **Remediation**: - Applying **PR #688** (`dynamic-slot-reclaim`) allows dynamic descriptor slots of executed command lists to be reclaimed, preventing the dynamic descriptor pool from saturating at 65,536. - Applying **PR #704** ensures unknown-stride structured buffer reads resolve to raw views with matching byte offsets, allowing the instance culling shaders to complete correctly. - Together with **PR #653 fixes** (lowering untracked/constant masks in `v_cndmask_b32` and `_co_ci_u32`), the instance-culling compute pipelines will no longer abort translation or drop dispatches.
Tanju42 commented 2026-11-24 09:06:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Tanju42 on 2026-11-24T08:49:01Z.


Second NVIDIA machine, same class — but our variant is frame-driven, not pool-driven. Adding the data in case it narrows the trigger.

Setup

  • Windows 11 Insider 26300, NVIDIA RTX 5060 Laptop 8 GB (driver 591.74), 32 GB
  • current main, --profile diag --features diagnostics; victory run --execute
  • the user's dump is served from an SMB share over Wi-Fi (files: virtual drive G on the UNC; loader binds everything, 0 missing)

Two runs: the real GPU and WARP crash at the same frame with the same offset

run 1 (real GPU) run 2 (VICTORY_D3D12_WARP=1)
breakpoint +0x4dcbc9d +0x4dcbc9d
stack +0x4dcbc9d, +0x4e52a83, +0x4e529c4, +0x5ab13ed, +0x21b70b1, +0x1d83996, +0x81afb9, … identical
running time / frame 2m17s / 82 3m06s / 82
TileHeap 271 of 6236 MB 271 of 6236 MB
streaming requests 0 0
Paused No No
device removal none none

Unlike your runs, Paused: No, no pool pressure visible (tile heap barely filled), and the breakpoint is the same offset on the same frame number despite 45% different wall time — so the title seems to stop on a per-frame condition here (frame 82 of the load sequence?), not on a pool overflow. All MEMORYINFO counters read 0/0 in the title's own crash report on both runs.

If a per-frame assert at a fixed load-sequence frame is a second path to the same end, the WARP column may be a cheap repro for it: on the software adapter the whole pre-crash stretch is identical per frame, no driver behavior in the loop at all.

Happy to capture a VICTORY_LOG=victory=trace tail around the stop, or bisect environment differences (local-disk dump vs SMB), on request. No game data in this report. AI-assisted; both runs measured on my machine.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7126599082 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7126599082). Originally posted by [Tanju42](https://github.com/Tanju42) on 2026-11-24T08:49:01Z. --- Second NVIDIA machine, same class — but our variant is frame-driven, not pool-driven. Adding the data in case it narrows the trigger. **Setup** - Windows 11 Insider 26300, NVIDIA RTX 5060 Laptop 8 GB (driver 591.74), 32 GB - current `main`, `--profile diag --features diagnostics`; `victory run --execute` - the user's dump is served from an SMB share over Wi-Fi (`files: virtual drive G` on the UNC; loader binds everything, 0 missing) **Two runs: the real GPU and WARP crash at the same frame with the same offset** | | run 1 (real GPU) | run 2 (`VICTORY_D3D12_WARP=1`) | |---|---|---| | breakpoint | `+0x4dcbc9d` | `+0x4dcbc9d` | | stack | `+0x4dcbc9d, +0x4e52a83, +0x4e529c4, +0x5ab13ed, +0x21b70b1, +0x1d83996, +0x81afb9, …` | identical | | running time / frame | 2m17s / **82** | 3m06s / **82** | | TileHeap | 271 of 6236 MB | 271 of 6236 MB | | streaming requests | 0 | 0 | | `Paused` | No | No | | device removal | none | none | Unlike your runs, `Paused: No`, no pool pressure visible (tile heap barely filled), and the breakpoint is the *same offset on the same frame number* despite 45% different wall time — so the title seems to stop on a per-frame condition here (frame 82 of the load sequence?), not on a pool overflow. All MEMORYINFO counters read 0/0 in the title's own crash report on both runs. If a per-frame assert at a fixed load-sequence frame is a second path to the same end, the WARP column may be a cheap repro for it: on the software adapter the whole pre-crash stretch is identical per frame, no driver behavior in the loop at all. Happy to capture a `VICTORY_LOG=victory=trace` tail around the stop, or bisect environment differences (local-disk dump vs SMB), on request. No game data in this report. AI-assisted; both runs measured on my machine.
likecrank-dotcom commented 2026-11-24 09:06:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by likecrank-dotcom on 2026-11-24T08:55:48Z.


RTX 5060 Ti 8 GB corroboration of the pool-full variant, with an exact match to run 1's stack.

Windows 11, Ryzen 5 3600, 32 GB, NVIDIA 621.14, Series X 1.0.2.1. Source 91f1450f200c850b6444182aa9588a60ed47713d at https://github.com/likecrank-dotcom/VIctory/tree/codex/victory-bounded-views (main ce42e77 + #439 055aef9 + #180 + #493, plus diagnostics; no #193/#704/#185). Diag, loop limit 4096, DRED on. It ended by itself at 515.8 s, exit 0x80000003, +0x5149aec. No GPU device removal logged.

The title's report: INSTANCE_LIST 45000/45000, BUILDING 22479/22500, streaming requests 1298, TileHeap 3747/6236 MB, SRL Prestream, Paused Yes, game frame 1481. Stack: +0x5149aec, +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211, +0x257035e, +0x221c29c, +0x2215eca. No dynamic-slot exhaustion line in this run. An Escape/Menu input was attempted before the stop; no visible pause menu confirmed, and the report's Paused Yes alone does not establish its effect.

Final presentation stayed black, although one captured internal f28 target contains a character silhouette and parts of the surroundings. Four runtime culling hashes fail with unknown structured stride (fdd56d97a806bcca, 17af15c4015cb4b6, 55679a0547649d0b, 89d08e561897d4e5). Testing #704 next. Cause of the instance-list pool filling is not established by this run.

Full aggregate context: https://github.com/Marvisak/VIctory/pull/493#issuecomment-7126613655 . No game-derived files or crash-report IDs attached. AI-assisted/OpenAI Codex (exact backend variant not exposed): build/run/analysis; hardware and title are the user's.

Source clarification: this integration has 055aef9 as an ancestor, but the reused merge 24b3bcc removed later #439 deferred-mask handling and other wave64 changes. Its SHA and observations are reproducible, but this is not a test of full latest #439 behavior. A separate corrected stack and its limited offline/runtime results are now documented at https://github.com/Marvisak/VIctory/pull/704#issuecomment-7134961696 .

New corroborating run on a different public stack: mpDom d6897fa (r4tedx integration/testers plus PRESENT_1440P); run source ec83015cbe9d9bef408d5b7bb0de96159f688891 adds diagnostic input-file/on-demand capture only. Fresh data, Series X, loop limit 32, PRESENT_1440P=1, NO_WATCHDOG=1, DRED, same hardware. Self-terminated after 816.7 s: 0x80000003 at +0x5149aec with the same stack through +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211, +0x257035e, +0x221c29c, +0x2215eca. No logged GPU removal. Title report: INSTANCE_LIST 45000/45000, BUILDING 22151/22500, streaming requests 3468, SRL Prestream, Paused Yes, game frame 6959. The four culling shaders still refuse unknown structured stride. This repetition does not prove that those shader refusals cause the pool exhaustion. Presented false-colour geometry was observed by the user a couple of times, alternating with black, approximately 1-2 minutes before the crash; no character-control claim. Full run caveats and the earlier manually-ended 860.4 s run: https://github.com/Marvisak/VIctory/issues/841#issuecomment-7135920259 . No game-derived attachments.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7126740138 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7126740138). Originally posted by [likecrank-dotcom](https://github.com/likecrank-dotcom) on 2026-11-24T08:55:48Z. --- RTX 5060 Ti 8 GB corroboration of the pool-full variant, with an exact match to run 1's stack. Windows 11, Ryzen 5 3600, 32 GB, NVIDIA 621.14, Series X 1.0.2.1. Source 91f1450f200c850b6444182aa9588a60ed47713d at https://github.com/likecrank-dotcom/VIctory/tree/codex/victory-bounded-views (main ce42e77 + #439 055aef9 + #180 + #493, plus diagnostics; no #193/#704/#185). Diag, loop limit 4096, DRED on. It ended by itself at 515.8 s, exit 0x80000003, +0x5149aec. No GPU device removal logged. The title's report: INSTANCE_LIST 45000/45000, BUILDING 22479/22500, streaming requests 1298, TileHeap 3747/6236 MB, SRL Prestream, Paused Yes, game frame 1481. Stack: +0x5149aec, +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211, +0x257035e, +0x221c29c, +0x2215eca. No dynamic-slot exhaustion line in this run. An Escape/Menu input was attempted before the stop; no visible pause menu confirmed, and the report's Paused Yes alone does not establish its effect. Final presentation stayed black, although one captured internal f28 target contains a character silhouette and parts of the surroundings. Four runtime culling hashes fail with unknown structured stride (fdd56d97a806bcca, 17af15c4015cb4b6, 55679a0547649d0b, 89d08e561897d4e5). Testing #704 next. Cause of the instance-list pool filling is not established by this run. Full aggregate context: https://github.com/Marvisak/VIctory/pull/493#issuecomment-7126613655 . No game-derived files or crash-report IDs attached. AI-assisted/OpenAI Codex (exact backend variant not exposed): build/run/analysis; hardware and title are the user's. Source clarification: this integration has 055aef9 as an ancestor, but the reused merge 24b3bcc removed later #439 deferred-mask handling and other wave64 changes. Its SHA and observations are reproducible, but this is not a test of full latest #439 behavior. A separate corrected stack and its limited offline/runtime results are now documented at https://github.com/Marvisak/VIctory/pull/704#issuecomment-7134961696 . New corroborating run on a different public stack: mpDom d6897fa (r4tedx integration/testers plus PRESENT_1440P); run source ec83015cbe9d9bef408d5b7bb0de96159f688891 adds diagnostic input-file/on-demand capture only. Fresh data, Series X, loop limit 32, PRESENT_1440P=1, NO_WATCHDOG=1, DRED, same hardware. Self-terminated after 816.7 s: 0x80000003 at +0x5149aec with the same stack through +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211, +0x257035e, +0x221c29c, +0x2215eca. No logged GPU removal. Title report: INSTANCE_LIST 45000/45000, BUILDING 22151/22500, streaming requests 3468, SRL Prestream, Paused Yes, game frame 6959. The four culling shaders still refuse unknown structured stride. This repetition does not prove that those shader refusals cause the pool exhaustion. Presented false-colour geometry was observed by the user a couple of times, alternating with black, approximately 1-2 minutes before the crash; no character-control claim. Full run caveats and the earlier manually-ended 860.4 s run: https://github.com/Marvisak/VIctory/issues/841#issuecomment-7135920259 . No game-derived attachments.
Sil3ntGam3r commented 2026-11-24 10:03:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Sil3ntGam3r on 2026-11-24T09:25:57Z.


RTX 3070 8 GB, driver 621.14, Windows 11 (26300); diag build, VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_D3D12_DRED=1, fresh shader cache.

  • main c7a5f49 + #89 #493 #483 #189 #206 #469 #459 #454: stopped at 6m47s, 0x80000003 at +0x5149aec (same stack as run 1 above); INSTANCE_LIST 45000/45000, BUILDING 22429/22500, Paused: No; 42 shaders refused as a structured buffer of unknown stride.
  • the same on main 8e79c80 plus #704 (with #193) and #688: 11+ minutes, no breakpoint, no device removal. No unknown-stride refusals left; draws dropped without a host pipeline went from about 4,000 to 120–225 per frame; about 1 fps. The scene behind the credit text is still black. The largest remaining refusal reasons (unique shaders): descriptor read only as data 103, v_readfirstlane in divergent control flow 101, select on an untracked mask 97, lane mask holding lanes elsewhere read as data 85.

Merging needed some glue. #483's guard slot has to come after #704's alias slots (guard_slot = alias_base + ALIASES), because shaders reach the aliases through the heap. #704's GPU tests need the guard dword filled. #493's root-SRV slot goes through #688's take_dynamic. All 348 tests pass on the merge. (AI-assisted test run.)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7127404372 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7127404372). Originally posted by [Sil3ntGam3r](https://github.com/Sil3ntGam3r) on 2026-11-24T09:25:57Z. --- RTX 3070 8 GB, driver 621.14, Windows 11 (26300); diag build, `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_D3D12_DRED=1`, fresh shader cache. - main `c7a5f49` + #89 #493 #483 #189 #206 #469 #459 #454: stopped at 6m47s, `0x80000003` at `+0x5149aec` (same stack as run 1 above); `INSTANCE_LIST` 45000/45000, `BUILDING` 22429/22500, `Paused: No`; 42 shaders refused as `a structured buffer of unknown stride`. - the same on main `8e79c80` plus #704 (with #193) and #688: 11+ minutes, no breakpoint, no device removal. No unknown-stride refusals left; draws dropped without a host pipeline went from about 4,000 to 120–225 per frame; about 1 fps. The scene behind the credit text is still black. The largest remaining refusal reasons (unique shaders): descriptor read only as data 103, `v_readfirstlane` in divergent control flow 101, select on an untracked mask 97, lane mask holding lanes elsewhere read as data 85. Merging needed some glue. #483's guard slot has to come after #704's alias slots (`guard_slot = alias_base + ALIASES`), because shaders reach the aliases through the heap. #704's GPU tests need the guard dword filled. #493's root-SRV slot goes through #688's `take_dynamic`. All 348 tests pass on the merge. (AI-assisted test run.)
LAKSHYA-cmd-tech commented 2026-11-24 10:03:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T09:56:22Z.


Regarding the INSTANCE_LIST pool overflow (45,000/45,000) and the 3D scene remaining black:

The root cause is in crates/victory-gpu/src/list.rs:1074 (dispatch_mesh_x). In GTA VI, 3D world geometry instances are dispatched via indirect mesh dispatches (indirect != 0). However, dispatch_mesh_x previously contained:

if indirect != 0 {
    static ONCE: std::sync::Once = std::sync::Once::new();
    ONCE.call_once(|| tracing::warn!("indirect mesh dispatches dropped"));
    return;
}

Because every indirect mesh dispatch was dropped, none of the world geometry instances were drawn or retired. Instance allocations continued to accumulate until the engine hit its 45,000 pool limit and asserted with 0x80000003.

The backend indirect execution infrastructure (State::execute_indirect in draw.rs with kind = 10 (MESH) and stride 12, as well as the argument clamp in indirect.rs) is already fully implemented. We have patched dispatch_mesh_x to execute them:

if indirect != 0 {
    const MESH: u32 = 10;
    const STRIDE: u32 = 12;
    with_state(this, |list, s| {
        s.execute_indirect(list, (MESH, STRIDE, x.max(1)), indirect, None);
    });
    return;
}

The fix and synthetic tests are available in branch:
https://github.com/LAKSHYA-cmd-tech/VIctory/tree/fix/gpu-indirect-mesh-dispatch
(PR: https://github.com/LAKSHYA-cmd-tech/VIctory/pull/2)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7128092666 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7128092666). Originally posted by [LAKSHYA-cmd-tech](https://github.com/LAKSHYA-cmd-tech) on 2026-11-24T09:56:22Z. --- Regarding the `INSTANCE_LIST` pool overflow (45,000/45,000) and the 3D scene remaining black: The root cause is in `crates/victory-gpu/src/list.rs:1074` (`dispatch_mesh_x`). In GTA VI, 3D world geometry instances are dispatched via indirect mesh dispatches (`indirect != 0`). However, `dispatch_mesh_x` previously contained: ```rust if indirect != 0 { static ONCE: std::sync::Once = std::sync::Once::new(); ONCE.call_once(|| tracing::warn!("indirect mesh dispatches dropped")); return; } ``` Because every indirect mesh dispatch was dropped, none of the world geometry instances were drawn or retired. Instance allocations continued to accumulate until the engine hit its 45,000 pool limit and asserted with `0x80000003`. The backend indirect execution infrastructure (`State::execute_indirect` in `draw.rs` with `kind = 10` (MESH) and stride 12, as well as the argument clamp in `indirect.rs`) is already fully implemented. We have patched `dispatch_mesh_x` to execute them: ```rust if indirect != 0 { const MESH: u32 = 10; const STRIDE: u32 = 12; with_state(this, |list, s| { s.execute_indirect(list, (MESH, STRIDE, x.max(1)), indirect, None); }); return; } ``` The fix and synthetic tests are available in branch: `https://github.com/LAKSHYA-cmd-tech/VIctory/tree/fix/gpu-indirect-mesh-dispatch` (PR: https://github.com/LAKSHYA-cmd-tech/VIctory/pull/2)
Sil3ntGam3r commented 2026-11-24 11:04:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Sil3ntGam3r on 2026-11-24T10:55:10Z.


Follow-up with the build from my comment above (main 8e79c80 + #89 #493 #483 #189 #206 #469 #459 #454 #704 #688, diag build, VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_D3D12_DRED=1), RTX 3070 / 621.14 / Windows 11; a second run with the shader and pipeline caches warm:

  • 20+ minutes with no device removal and no title breakpoint.
  • The opening cutscene plays through (credits, then a few full-screen colour changes), and then the title hands control to the player: the first movement tutorial prompt appears, and holding W on the keyboard stand-in pad dismisses it, so input reaches gameplay. The 3D scene stays black throughout; only the 2D layer (subtitles, prompts) shows.
  • Steady state with warm caches: 0 pipelines being made, about 0.6 fps, 2,000–2,700 draws/frame drawn, about 1,100–1,400 dropped without a host pipeline (refused programs) and about 1,500 indirect dropped. No files opened after the cutscene.

(AI-assisted test run.)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7129417261 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7129417261). Originally posted by [Sil3ntGam3r](https://github.com/Sil3ntGam3r) on 2026-11-24T10:55:10Z. --- Follow-up with the build from my comment above (main `8e79c80` + #89 #493 #483 #189 #206 #469 #459 #454 #704 #688, diag build, `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_D3D12_DRED=1`), RTX 3070 / 621.14 / Windows 11; a second run with the shader and pipeline caches warm: - 20+ minutes with no device removal and no title breakpoint. - The opening cutscene plays through (credits, then a few full-screen colour changes), and then the title hands control to the player: the first movement tutorial prompt appears, and holding W on the keyboard stand-in pad dismisses it, so input reaches gameplay. The 3D scene stays black throughout; only the 2D layer (subtitles, prompts) shows. - Steady state with warm caches: 0 pipelines being made, about 0.6 fps, 2,000–2,700 draws/frame drawn, about 1,100–1,400 dropped without a host pipeline (refused programs) and about 1,500 indirect dropped. No files opened after the cutscene. (AI-assisted test run.)
Sunkiller-qc commented 2026-11-24 14:04:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Sunkiller-qc on 2026-11-24T13:13:24Z.


The run 1 stop (int3 at +0x5149aec, same stack) has also been reported outside this issue:

  • #71, WalliceCariasPerussio: +0x5149aec around 6 min into the opening cutscene, in both Series S and X modes, in state Prestream.
  • #597, bunbeans2-arch, on AMD (RX 9070 XT): one run at +0x5149aec and one at +0x63966f, the run 2 address here. They read +0x63966f as a pool allocator hitting an empty free list.

So it's not NVIDIA-specific. Sil3ntGam3r's result above is the best lead so far: with #704 (and #193) plus #688, the unknown-stride refusals went to zero and the run lasted 11+ min with no breakpoint.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7132522145 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7132522145). Originally posted by [Sunkiller-qc](https://github.com/Sunkiller-qc) on 2026-11-24T13:13:24Z. --- The run 1 stop (`int3` at `+0x5149aec`, same stack) has also been reported outside this issue: - #71, WalliceCariasPerussio: `+0x5149aec` around 6 min into the opening cutscene, in both Series S and X modes, in state `Prestream`. - #597, bunbeans2-arch, on AMD (RX 9070 XT): one run at `+0x5149aec` and one at `+0x63966f`, the run 2 address here. They read `+0x63966f` as a pool allocator hitting an empty free list. So it's not NVIDIA-specific. Sil3ntGam3r's result above is the best lead so far: with #704 (and #193) plus #688, the unknown-stride refusals went to zero and the run lasted 11+ min with no breakpoint.
WalliceCariasPerussio commented 2026-11-24 15:03:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by WalliceCariasPerussio on 2026-11-24T14:09:14Z.


RTX 5060 8 GB: the title's int3 at about 6.5 to 7 minutes is its pool allocator running out of slots. An opt-in hook gets past it: 17+ minutes in the world.

Setup: RTX 5060 8 GB (driver 621.14), Xeon E5-2680 v4, 16 GB RAM, Windows 11 26200, title 1.0.2.1, Series S mode, diag builds.

Stack: 8e79c80 plus:

1. A fixed point in the cutscene, not a time-out. Four of my crash contexts stop at title frame 920, 950, 945 and 935. That is 6m09 to 6m49 of game time, at frame rates from 0.3 to 1.3 fps.

  • Every report shows INSTANCE_LIST 45000/45000.
  • The later ones also show BUILDING 22500/22500.
  • So the pools fill at the same place in the opening cutscene. A low frame rate is not what fills them.

2. The int3 sites are copies of one pool allocator.

  • +0x5149aec (inlined) and +0x63966f are the same code.
  • It pops the free list with a 17-bit index: and r32, 0x1ffff, then lock cmpxchg.
  • When the list is empty, it jumps to an int3. The instruction right after that int3 is xor reg, reg, on the way to the function's own null return (as bunbeans2 described in #597).
  • The 1.0.2.1 executable has 5,776 copies of this allocator and 2,205 pool-empty int3 sites of that shape.

3. VICTORY_POOL_NO_ASSERT, an opt-in diagnostic in the style of #454.

  • It checks the build hash and the three bytes at each site, then writes a NOP over the int3 only.
  • With the two known sites, the run passed the old point. It stopped at another copy, +0x5290e65, with BUILDING full.
  • A scan that accepts any register then also caught +0x1fa88e4.
  • With all 2,205 sites: 17+ minutes in the world, no int3 and no device removal. The movement prompt showed. I ended the run by hand.
  • A caller that doesn't expect null could still fault later. None did in this run.

4. Code. The hook and a script that lists the sites from your own copy of the executable: https://gist.github.com/WalliceCariasPerussio/3f344d522a3a4f01c83fa12e02615396. The site list itself is left out because it is derived from the title, so the script builds it locally (pefile and capstone, read-only).

5. Image on the same card. Build: r4tedx's integration/testers at 92bc27b, plus mpDom's d6897fa (VICTORY_PRESENT_1440P), the #876 typeless-view change (5e3c9e2, b7a0a8c), #431 and the hook above. Series X mode.

  • The fallback presents full-screen world geometry: a street with balconies and stairs, shelves, barrels and a car. It is unlit and crossed by many long, stray triangles.
  • 14 minutes in the world with no device removal and no title int3. My own memory guard ended the run at 23.6 GB private (16 GB RAM, 32 GB page file).
  • In Series S mode the world targets are 1280x720, so the fallback needs that size. A one-line change lets VICTORY_PRESENT_1440P=1280x720 choose it. The latest 1280x720 colour target there was black.

Root cause. It is still the culling programs that don't run on 32-lane hosts, which is why the pools fill. The hook only keeps the title alive past that point.

AI-assisted (Claude Code); I ran the title on my own machine.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7133923123 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7133923123). Originally posted by [WalliceCariasPerussio](https://github.com/WalliceCariasPerussio) on 2026-11-24T14:09:14Z. --- **RTX 5060 8 GB: the title's int3 at about 6.5 to 7 minutes is its pool allocator running out of slots. An opt-in hook gets past it: 17+ minutes in the world.** **Setup:** RTX 5060 8 GB (driver 621.14), Xeon E5-2680 v4, 16 GB RAM, Windows 11 26200, title 1.0.2.1, Series S mode, diag builds. **Stack:** `8e79c80` plus: - Sil3ntGam3r's set above: #89 #493 #483 #189 #206 #469 #459 #454, #704 at `42538cd`, #688; - #638, #431, #24; - NuraadGit's `7425674`. **1. A fixed point in the cutscene, not a time-out.** Four of my crash contexts stop at title frame 920, 950, 945 and 935. That is 6m09 to 6m49 of game time, at frame rates from 0.3 to 1.3 fps. - Every report shows `INSTANCE_LIST` 45000/45000. - The later ones also show `BUILDING` 22500/22500. - So the pools fill at the same place in the opening cutscene. A low frame rate is not what fills them. **2. The int3 sites are copies of one pool allocator.** - `+0x5149aec` (inlined) and `+0x63966f` are the same code. - It pops the free list with a 17-bit index: `and r32, 0x1ffff`, then `lock cmpxchg`. - When the list is empty, it jumps to an `int3`. The instruction right after that `int3` is `xor reg, reg`, on the way to the function's own null return (as bunbeans2 described in #597). - The 1.0.2.1 executable has 5,776 copies of this allocator and 2,205 pool-empty `int3` sites of that shape. **3. `VICTORY_POOL_NO_ASSERT`, an opt-in diagnostic in the style of #454.** - It checks the build hash and the three bytes at each site, then writes a NOP over the `int3` only. - With the two known sites, the run passed the old point. It stopped at another copy, `+0x5290e65`, with `BUILDING` full. - A scan that accepts any register then also caught `+0x1fa88e4`. - With all 2,205 sites: 17+ minutes in the world, no int3 and no device removal. The movement prompt showed. I ended the run by hand. - A caller that doesn't expect null could still fault later. None did in this run. **4. Code.** The hook and a script that lists the sites from your own copy of the executable: https://gist.github.com/WalliceCariasPerussio/3f344d522a3a4f01c83fa12e02615396. The site list itself is left out because it is derived from the title, so the script builds it locally (`pefile` and `capstone`, read-only). **5. Image on the same card.** Build: r4tedx's `integration/testers` at `92bc27b`, plus mpDom's `d6897fa` (`VICTORY_PRESENT_1440P`), the #876 typeless-view change (`5e3c9e2`, `b7a0a8c`), #431 and the hook above. Series X mode. - The fallback presents full-screen world geometry: a street with balconies and stairs, shelves, barrels and a car. It is unlit and crossed by many long, stray triangles. - 14 minutes in the world with no device removal and no title int3. My own memory guard ended the run at 23.6 GB private (16 GB RAM, 32 GB page file). - In Series S mode the world targets are 1280x720, so the fallback needs that size. A one-line change lets `VICTORY_PRESENT_1440P=1280x720` choose it. The latest 1280x720 colour target there was black. **Root cause.** It is still the culling programs that don't run on 32-lane hosts, which is why the pools fill. The hook only keeps the title alive past that point. AI-assisted (Claude Code); I ran the title on my own machine.
VibeClauding commented 2026-11-24 16:05:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by VibeClauding on 2026-11-24T15:38:48Z.


RTX 3070 8 GB data point for the pool-full stop, with @Sil3ntGam3r's ten-PR set: on this machine it does not reach the 11+ / 20+ min runs, and stock main plus three of the PRs stops the same way.

Setup: Windows 11 Pro 26200, RTX 3070 8 GB, driver 610.88 (32.0.16.1088), Ryzen 7 5700X3D, 16 GB RAM + 24-48 GB page file. Title 1.0.2.1 (b99f876b…), Series X mode. Diag builds (--profile diag --features diagnostics), VICTORY_D3D12_DRED=1, stock TDR, VICTORY_KEYS Enter every 10 s to 240 s, then no input.

Build Run World How it ended
ffe310e (main) 1 ~50 s, 0.6-0.9 fps, 115 compute pipelines refused (wave64) 0x887A0006, DRED on dispatches of compute d3e44e754b3eb6aa with [heap 340912: null] entries
ffe310e + #493 c48b240 + #189 c047885 + #206 05981dd, loop limit 32 1 ~5 min, 1.3-1.5 fps, 0 refused, 582 not translated 0x80000003 at +0x5149aec (same stack as run 1 above) at 6m07s; INSTANCE_LIST 45000/45000, BUILDING 22329/22500, Paused: No, SRL Prestream, 735 streaming requests
8e79c80 + #89 #493 #483 #189 #206 #469 #459 #454 #704 (with #193) #688, loop limit 32, VICTORY_NO_WATCHDOG=1 1 (cold caches) ~5 min, median 0.9 fps (0.3-2.2), 1 refused (E_OUTOFMEMORY), 575 not translated 0x80000003 at +0x5149aec at 6m13s; INSTANCE_LIST 45000/45000, BUILDING 22308/22500, Paused: No, SRL Prestream, 1197 streaming requests
same 2 (warm caches) ~6m40s, median 1.0 fps (0.6-2.0), 0 refused, 605 not translated no title breakpoint; device removed (0x887A0005) on a 1x1x1 dispatch of compute e30970f1727063fd, empty breadcrumbs, no page fault, no Windows TDR event (4101)

So with the watchdog hooked and the device hang gone, this card still lands on the INSTANCE_LIST stop on a cold start, and the warm run traded it for a different device removal a little later.

It also supports @WalliceCariasPerussio's reading that this is a fixed point in the cutscene, not a time-out. The two pool-full stops (three-PR and ten-PR cold) ran at different frame rates but stopped at the same spot:

  • Title crash logs: same camera position (-488.25, -5413.33, 3.03 vs -488.35, -5413.65, 3.03), game clock 11:50 in both, same AnimScene 0xe9f5cf99, same SRL in Prestream.
  • Frame: 1396 and 1524, which is 284 and 292 frames after Current Mission Name [F:1112] / [F:1232].
  • Series X mode here, so the absolute frame numbers differ from the 920-950 range above (Series S).

Differences from @Sil3ntGam3r's build that may matter: driver 610.88 here vs 621.14; #189 at c047885, which still defaulted 32-lane hosts to Wave32 (54b333f, pushed after these runs, makes Emulate the default, so these runs are on the path with the divergent-lane issues discussed on #189); #459 is closed; 16 GB of RAM. I also had to resolve conflicts locally, which may not match theirs:

  • #89 vs 8e79c80 (list.rs): kept both checks (skip_mixed_packed_copy first, then title_written upload); prepare_footprint_upload uses defer_fill as main does.
  • #493 vs #483: as described on #493 (DYNAMIC/MIN_DYNAMIC plus one guard slot).
  • #704 vs #483: #704's alias slots go between the dynamic range and the guard. The guard has to be the last slot, because #483 sends any computed index at or past it to the guard (with the guard before the aliases, #704's unknown_stride_reads_reach_the_bytes_of_the_view_in_the_slot read all zeros). So alias_base = count + dynamic, guard_slot() = alias_base + ALIASES.
  • #704 vs #206 (buffer_srv/buffer_uav): #704's NumElements clamp applies to the element-aligned branch; #206's raw-window branch is unchanged.
  • Test harnesses from #189, #459 and #704 that predate #483 needed its guard dword filled (host::guard, as draw.rs does) and the new stride_table/options/track arguments. With that, cargo test -p victory-gpu -p victory-shader -- --test-threads=1 passes (64 + 152).

One run per row. Hashes, addresses, counts and crash-log fields only; no game data.

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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7136376219 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7136376219). Originally posted by [VibeClauding](https://github.com/VibeClauding) on 2026-11-24T15:38:48Z. --- RTX 3070 8 GB data point for the pool-full stop, with @Sil3ntGam3r's ten-PR set: on this machine it does **not** reach the 11+ / 20+ min runs, and stock `main` plus three of the PRs stops the same way. **Setup:** Windows 11 Pro 26200, RTX 3070 8 GB, driver 610.88 (32.0.16.1088), Ryzen 7 5700X3D, 16 GB RAM + 24-48 GB page file. Title 1.0.2.1 (`b99f876b…`), Series X mode. Diag builds (`--profile diag --features diagnostics`), `VICTORY_D3D12_DRED=1`, stock TDR, `VICTORY_KEYS` Enter every 10 s to 240 s, then no input. | Build | Run | World | How it ended | |---|---|---|---| | `ffe310e` (main) | 1 | ~50 s, 0.6-0.9 fps, 115 compute pipelines refused (wave64) | `0x887A0006`, DRED on dispatches of compute `d3e44e754b3eb6aa` with `[heap 340912: null]` entries | | `ffe310e` + #493 `c48b240` + #189 `c047885` + #206 `05981dd`, loop limit 32 | 1 | ~5 min, 1.3-1.5 fps, 0 refused, 582 not translated | `0x80000003` at `+0x5149aec` (same stack as run 1 above) at 6m07s; `INSTANCE_LIST` 45000/45000, `BUILDING` 22329/22500, `Paused: No`, SRL `Prestream`, 735 streaming requests | | `8e79c80` + #89 #493 #483 #189 #206 #469 #459 #454 #704 (with #193) #688, loop limit 32, `VICTORY_NO_WATCHDOG=1` | 1 (cold caches) | ~5 min, median 0.9 fps (0.3-2.2), 1 refused (`E_OUTOFMEMORY`), 575 not translated | `0x80000003` at `+0x5149aec` at 6m13s; `INSTANCE_LIST` 45000/45000, `BUILDING` 22308/22500, `Paused: No`, SRL `Prestream`, 1197 streaming requests | | same | 2 (warm caches) | ~6m40s, median 1.0 fps (0.6-2.0), 0 refused, 605 not translated | no title breakpoint; device removed (`0x887A0005`) on a 1x1x1 dispatch of compute `e30970f1727063fd`, empty breadcrumbs, no page fault, no Windows TDR event (4101) | So with the watchdog hooked and the device hang gone, this card still lands on the `INSTANCE_LIST` stop on a cold start, and the warm run traded it for a different device removal a little later. It also supports @WalliceCariasPerussio's reading that this is a fixed point in the cutscene, not a time-out. The two pool-full stops (three-PR and ten-PR cold) ran at different frame rates but stopped at the same spot: - Title crash logs: same camera position (`-488.25, -5413.33, 3.03` vs `-488.35, -5413.65, 3.03`), game clock `11:50` in both, same AnimScene `0xe9f5cf99`, same SRL in `Prestream`. - `Frame:` 1396 and 1524, which is 284 and 292 frames after `Current Mission Name [F:1112]` / `[F:1232]`. - Series X mode here, so the absolute frame numbers differ from the 920-950 range above (Series S). **Differences from @Sil3ntGam3r's build that may matter:** driver 610.88 here vs 621.14; #189 at `c047885`, which still defaulted 32-lane hosts to `Wave32` (`54b333f`, pushed after these runs, makes `Emulate` the default, so these runs are on the path with the divergent-lane issues discussed on #189); #459 is closed; 16 GB of RAM. I also had to resolve conflicts locally, which may not match theirs: - #89 vs `8e79c80` (`list.rs`): kept both checks (`skip_mixed_packed_copy` first, then `title_written` upload); `prepare_footprint_upload` uses `defer_fill` as `main` does. - #493 vs #483: as described on #493 (`DYNAMIC`/`MIN_DYNAMIC` plus one guard slot). - #704 vs #483: #704's alias slots go between the dynamic range and the guard. The guard has to be the **last** slot, because #483 sends any computed index at or past it to the guard (with the guard before the aliases, #704's `unknown_stride_reads_reach_the_bytes_of_the_view_in_the_slot` read all zeros). So `alias_base = count + dynamic`, `guard_slot() = alias_base + ALIASES`. - #704 vs #206 (`buffer_srv`/`buffer_uav`): #704's `NumElements` clamp applies to the element-aligned branch; #206's raw-window branch is unchanged. - Test harnesses from #189, #459 and #704 that predate #483 needed its guard dword filled (`host::guard`, as `draw.rs` does) and the new `stride_table`/`options`/`track` arguments. With that, `cargo test -p victory-gpu -p victory-shader -- --test-threads=1` passes (64 + 152). One run per row. Hashes, addresses, counts and crash-log fields only; no game data. AI-assisted (Claude Code); everything above was run on my machine.
VoidDeficit commented 2026-11-24 17:04:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by VoidDeficit on 2026-11-24T16:46:04Z.


Linux reproduction of the same breakpoint on the same build (1.0.2.1), so this is not NVIDIA- or Windows-specific.

Setup: CachyOS, kernel 7.3.5, RX 9070 XT (RDNA4, RADV/Mesa 26.3.1), Wine 11.22, vkd3d-proton 3.2 (Proton Experimental), DXVK dxgi. Build: main ffe310e + the proton-fixes branch from #844/#994 + #454 (VICTORY_NO_WATCHDOG=1). Series X and Series S both.

Both profiles reach the menus, loading art and the first mission title card, then stop at the same place:

Series X Series S
breakpoint +0x5149aec +0x5149aec
stack +0x5149aec, +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211, +0x257035e, +0x221c29c, +0x2215eca same
game running time / frame 8m50s / 1462 8m51s / 1576
INSTANCE_LIST 45000/45000 45000/45000
BUILDING 22487/22500 18906/22500
SRL state Prestream Prestream
Paused Yes No

Series X matches your run 1 field for field (frame 1462, same stack). Paused is not required: Series S was not paused and still hit it. Without #454 the title first dies in its stall watchdog at +0x2215c35, i.e. the watchdog hook only moves the wall.

Frame rate in the world: 0.2-0.5 fps (5-30 fps in menus, 1-2 fps while loading); copies of title memory take 1.2-4.5 s per frame (100-500 MB) under Wine. Rendering: 126 distinct shaders do not translate in a world run; the largest classes are "a scalar memory read as data" (#979) and "an address in an SGPR that is no root parameter" (#798). VICTORY_DEBUG_PS=1 renders the 2D front-end art, but the 3D scene stays black, so the missing geometry is in the untranslated mesh/compute programs rather than the pixel stage.

No game data is attached or quoted; the numbers are from the title crash report and our logs.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7138175507 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7138175507). Originally posted by [VoidDeficit](https://github.com/VoidDeficit) on 2026-11-24T16:46:04Z. --- Linux reproduction of the same breakpoint on the same build (1.0.2.1), so this is not NVIDIA- or Windows-specific. Setup: CachyOS, kernel 7.3.5, RX 9070 XT (RDNA4, RADV/Mesa 26.3.1), Wine 11.22, vkd3d-proton 3.2 (Proton Experimental), DXVK dxgi. Build: `main` ffe310e + the proton-fixes branch from #844/#994 + #454 (VICTORY_NO_WATCHDOG=1). Series X and Series S both. Both profiles reach the menus, loading art and the first mission title card, then stop at the same place: | | Series X | Series S | |---|---|---| | breakpoint | `+0x5149aec` | `+0x5149aec` | | stack | `+0x5149aec, +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211, +0x257035e, +0x221c29c, +0x2215eca` | same | | game running time / frame | 8m50s / 1462 | 8m51s / 1576 | | INSTANCE_LIST | 45000/45000 | 45000/45000 | | BUILDING | 22487/22500 | 18906/22500 | | SRL state | Prestream | Prestream | | `Paused` | Yes | No | Series X matches your run 1 field for field (frame 1462, same stack). `Paused` is not required: Series S was not paused and still hit it. Without #454 the title first dies in its stall watchdog at `+0x2215c35`, i.e. the watchdog hook only moves the wall. Frame rate in the world: 0.2-0.5 fps (5-30 fps in menus, 1-2 fps while loading); copies of title memory take 1.2-4.5 s per frame (100-500 MB) under Wine. Rendering: 126 distinct shaders do not translate in a world run; the largest classes are "a scalar memory read as data" (#979) and "an address in an SGPR that is no root parameter" (#798). `VICTORY_DEBUG_PS=1` renders the 2D front-end art, but the 3D scene stays black, so the missing geometry is in the untranslated mesh/compute programs rather than the pixel stage. No game data is attached or quoted; the numbers are from the title crash report and our logs.
SantannaCarlos commented 2026-11-24 19:04:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by SantannaCarlos on 2026-11-24T18:57:13Z.


Notes on what the title's int3 at +0x5149aec stops on, from the executable and a 15-minute RTX 4070 run that read the pools every frame. No cause found yet; offsets only, no title bytes.

Which pool stops the title. +0x5149aec is in the allocator at +0x5149980, which serves only the Building and Object pools (chosen by type through a function table) and breaks when that pool's free list is empty or its base is null. INSTANCE_LIST is entity type 12, the CEntityBatch pool, with its own allocator (+0x51e6c50). So the pool that runs out at the stop is Building or Object; INSTANCE_LIST being full in the crash reports comes along with it. That fits ThomasHFWright's BUILDING 22479/22500 on #844, and Wallice's later stop with BUILDING full.

Pool pointers, for anyone reading them live: Building [title+0xA9EC938], Object [title+0xABBE2E8], EntityBatch (INSTANCE_LIST) [title+0xA9EC948]; in each pool, +0x0C is the capacity and +0x10 the count in use. The crash report copies those pairs only when it is written.

How entities go back. Only through the CPU removal path: a removal request list per entity type, processed at a frame sync point (+0x336740 → +0x33A790 → deferred deletion at +0x51F20F0; for CEntityBatch the deleter +0x51F2380 decrements the pool's count). Nothing on that path waits on a fence, a query or a GPU result.

Measured (RTX 4070, the stack from #841 plus r4tedx's wave-per-group branch and a local indirect-dispatch patch; 784 s in the world at 0.4 fps, no int3):

  • INSTANCE_LIST in use rises to 18,622 on entering the world, then falls back to about 13,800 and stays there for 13 minutes; Building about 8,000 and Object about 3,900, steady.
  • So no continuous leak over the roughly 300 title frames this run reached. The flood looks tied to a fixed point of the scene (title frames 920–950 in Wallice's reports), which this run did not reach at 0.4 fps.
  • The removal request counts we watched stayed at 0 throughout; either we read the wrong addresses or the lists are emptied within the frame, so that part is inconclusive.

Next step for whoever reaches that point of the scene: read the Building and Object counts per frame there, and catch the allocating stacks at +0x5149980.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7141383240 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7141383240). Originally posted by [SantannaCarlos](https://github.com/SantannaCarlos) on 2026-11-24T18:57:13Z. --- Notes on what the title's `int3` at `+0x5149aec` stops on, from the executable and a 15-minute RTX 4070 run that read the pools every frame. No cause found yet; offsets only, no title bytes. **Which pool stops the title.** `+0x5149aec` is in the allocator at `+0x5149980`, which serves only the **Building** and **Object** pools (chosen by type through a function table) and breaks when that pool's free list is empty or its base is null. INSTANCE_LIST is entity type 12, the CEntityBatch pool, with its own allocator (`+0x51e6c50`). So the pool that runs out at the stop is Building or Object; INSTANCE_LIST being full in the crash reports comes along with it. That fits ThomasHFWright's BUILDING 22479/22500 on #844, and Wallice's later stop with BUILDING full. Pool pointers, for anyone reading them live: Building `[title+0xA9EC938]`, Object `[title+0xABBE2E8]`, EntityBatch (INSTANCE_LIST) `[title+0xA9EC948]`; in each pool, `+0x0C` is the capacity and `+0x10` the count in use. The crash report copies those pairs only when it is written. **How entities go back.** Only through the CPU removal path: a removal request list per entity type, processed at a frame sync point (`+0x336740` → `+0x33A790` → deferred deletion at `+0x51F20F0`; for CEntityBatch the deleter `+0x51F2380` decrements the pool's count). Nothing on that path waits on a fence, a query or a GPU result. **Measured** (RTX 4070, the stack from #841 plus r4tedx's wave-per-group branch and a local indirect-dispatch patch; 784 s in the world at 0.4 fps, no `int3`): - INSTANCE_LIST in use rises to 18,622 on entering the world, then falls back to about 13,800 and stays there for 13 minutes; Building about 8,000 and Object about 3,900, steady. - So no continuous leak over the roughly 300 title frames this run reached. The flood looks tied to a fixed point of the scene (title frames 920–950 in Wallice's reports), which this run did not reach at 0.4 fps. - The removal request counts we watched stayed at 0 throughout; either we read the wrong addresses or the lists are emptied within the frame, so that part is inconclusive. Next step for whoever reaches that point of the scene: read the Building and Object counts per frame there, and catch the allocating stacks at `+0x5149980`.
VoidDeficit commented 2026-11-24 20:03:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by VoidDeficit on 2026-11-24T19:12:39Z.


Linux data point for the two stop sites, and the pool counts at each, from the title crash report (build 1.0.2.1, Series X; CachyOS, RX 9070 XT RADV 26.3.1, Wine 11.22, vkd3d-proton 3.2, main + proton-fixes + #454 + six shader PRs).

stop when / frame BUILDING OBJECT INSTANCE_LIST
+0x5149aec 8m50s / 1462 22487/22500 19450/27500 45000/45000
+0x63966f 8m41s / 1589 19061/22500 14815/27500 44575/45000

That fits your reading: at the +0x5149aec allocator the Building pool is out (13 entries left), while the Object pool has room; the +0x63966f stop is a different path with Building not full. INSTANCE_LIST is full in both, but it has its own allocator, so it comes along.

VICTORY_WATCH now accepts *<rva>+<offset> (pointer at title+rva, log the u32 at pointer+offset), so those pairs can be followed live. An 11-minute run that did not reach the stop ended at Building 11625/22500, Object 9930/27500, EntityBatch 35015/45000, still rising. I have not caught the allocating stack at +0x5149980 yet; that needs a run that reaches the stop with the watch on.

Numbers from the crash report and our logs only; no game data.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7141760164 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7141760164). Originally posted by [VoidDeficit](https://github.com/VoidDeficit) on 2026-11-24T19:12:39Z. --- Linux data point for the two stop sites, and the pool counts at each, from the title crash report (build 1.0.2.1, Series X; CachyOS, RX 9070 XT RADV 26.3.1, Wine 11.22, vkd3d-proton 3.2, `main` + proton-fixes + #454 + six shader PRs). | stop | when / frame | BUILDING | OBJECT | INSTANCE_LIST | |---|---|---|---|---| | `+0x5149aec` | 8m50s / 1462 | **22487/22500** | 19450/27500 | 45000/45000 | | `+0x63966f` | 8m41s / 1589 | 19061/22500 | 14815/27500 | 44575/45000 | That fits your reading: at the `+0x5149aec` allocator the Building pool is out (13 entries left), while the Object pool has room; the `+0x63966f` stop is a different path with Building not full. INSTANCE_LIST is full in both, but it has its own allocator, so it comes along. `VICTORY_WATCH` now accepts `*<rva>+<offset>` (pointer at title+rva, log the u32 at pointer+offset), so those pairs can be followed live. An 11-minute run that did not reach the stop ended at Building 11625/22500, Object 9930/27500, EntityBatch 35015/45000, still rising. I have not caught the allocating stack at `+0x5149980` yet; that needs a run that reaches the stop with the watch on. Numbers from the crash report and our logs only; no game data.
YaBulochka commented 2026-11-24 20:03:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by YaBulochka on 2026-11-24T19:21:03Z.


Linux/RADV data point for the stop sites, from a run with the pipeline journal enabled.

Title 1.0.2.1, Series X dump
OS Linux, Wine 11.22 in a Proton 11.0 prefix, vkd3d-proton from Proton, DXVK dxgi
GPU RX 7600 XT, RADV from Mesa 26.3.1
Tree ffe310e + #994 + #491

With VICTORY_PIPELINE_JOURNAL=1 the run no longer dies in vkCreate*Pipelines. After three refusals (4e296b1885c37b29, 8bb272e763f76148, 02384a60fda6f2d0) it gets further than anything we had before: the intro's title cards render (art and text), then the prologue plays (prison scene, audio and logic), then the pause menu draws at 28 draws/frame and 2 fps, and the photo-studio menu as well. The 3D world stays black while the 2D UI draws; 61 draws, one line per pipeline, are dropped "without a host pipeline".

The only stop left is the title's own fail-fast: 0xc0000005, Current SRL State: Prestream Metadata, around frame 1165. An earlier run recorded the fault at +0x23cf683, but that log was not kept, so treat the address as unverified.

Two questions:

  • Is this the same class as the +0x5149aec / +0x63966f stops (Building/Object/Instance_List pools), or a different one? Here it fires in Prestream Metadata, before the world streams in.
  • Does anyone see the same stop on Windows, or is it Linux-only?

I have not tried VICTORY_DEBUG_PS=1 + VICTORY_NO_WATCHDOG=1 yet - the combination pablogonz12 used in #994 to reach gameplay. That is the next run.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7141968305 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7141968305). Originally posted by [YaBulochka](https://github.com/YaBulochka) on 2026-11-24T19:21:03Z. --- Linux/RADV data point for the stop sites, from a run with the pipeline journal enabled. | | | |---|---| | Title | `1.0.2.1`, Series X dump | | OS | Linux, Wine 11.22 in a Proton 11.0 prefix, vkd3d-proton from Proton, DXVK `dxgi` | | GPU | RX 7600 XT, RADV from Mesa 26.3.1 | | Tree | `ffe310e` + #994 + #491 | With `VICTORY_PIPELINE_JOURNAL=1` the run no longer dies in `vkCreate*Pipelines`. After three refusals (`4e296b1885c37b29`, `8bb272e763f76148`, `02384a60fda6f2d0`) it gets further than anything we had before: the intro's title cards render (art and text), then the prologue plays (prison scene, audio and logic), then the pause menu draws at 28 draws/frame and 2 fps, and the photo-studio menu as well. The 3D world stays black while the 2D UI draws; 61 draws, one line per pipeline, are dropped "without a host pipeline". The only stop left is the title's own fail-fast: `0xc0000005`, `Current SRL State: Prestream Metadata`, around frame 1165. An earlier run recorded the fault at `+0x23cf683`, but that log was not kept, so treat the address as unverified. Two questions: - Is this the same class as the `+0x5149aec` / `+0x63966f` stops (Building/Object/Instance_List pools), or a different one? Here it fires in `Prestream Metadata`, before the world streams in. - Does anyone see the same stop on Windows, or is it Linux-only? I have not tried `VICTORY_DEBUG_PS=1` + `VICTORY_NO_WATCHDOG=1` yet - the combination pablogonz12 used in #994 to reach gameplay. That is the next run.
BitWuehler commented 2026-11-24 20:03:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by BitWuehler on 2026-11-24T19:22:43Z.


Linux + NVIDIA RTX 5080 data point for the +0x63966f stop site (confirming it alongside the RADV/Windows reports above):

  • Setup: CachyOS (Linux 7.3.6-1-cachyos), Ryzen 7 9800X3D, 60 GB RAM, RTX 5080 16 GB (driver 620.73.04), GE-Proton11-14 (umu-run, VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains), retail 1.0.2.1, --console series-x, diag build of main (ffe310e) + #994 (993dff8) + #177 (b7300eb) + #454 (85c04d1, VICTORY_NO_WATCHDOG=1) + #206 (05981dd).
  • Stop: 0x80000003 at +0x63966f (+0x3e54ad0 → +0x257035e → +0x221c29c → +0x2215eca) hit on 3 worker threads simultaneously, with 0 GPU faults / 0 device removals / 0 kernel Xids.
stop when / frame BUILDING OBJECT INSTANCE_LIST
+0x63966f 9m 36s / 1564 20731/22500 16891/27500 44980/45000

Full run context is in #994. (AI-assisted log summary; own retail copy, no game files or raw logs attached.)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7142009631 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7142009631). Originally posted by [BitWuehler](https://github.com/BitWuehler) on 2026-11-24T19:22:43Z. --- Linux + NVIDIA RTX 5080 data point for the `+0x63966f` stop site (confirming it alongside the RADV/Windows reports above): - **Setup:** CachyOS (`Linux 7.3.6-1-cachyos`), Ryzen 7 9800X3D, 60 GB RAM, RTX 5080 16 GB (driver `620.73.04`), `GE-Proton11-14` (`umu-run`, `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`), retail `1.0.2.1`, `--console series-x`, `diag` build of `main` (`ffe310e`) + #994 (`993dff8`) + #177 (`b7300eb`) + #454 (`85c04d1`, `VICTORY_NO_WATCHDOG=1`) + #206 (`05981dd`). - **Stop:** `0x80000003` at `+0x63966f` (`+0x3e54ad0` → `+0x257035e` → `+0x221c29c` → `+0x2215eca`) hit on 3 worker threads simultaneously, with 0 GPU faults / 0 device removals / 0 kernel Xids. | stop | when / frame | BUILDING | OBJECT | INSTANCE_LIST | |---|---|---:|---:|---:| | `+0x63966f` | `9m 36s` / `1564` | `20731/22500` | `16891/27500` | `44980/45000` | Full run context is in #994. *(AI-assisted log summary; own retail copy, no game files or raw logs attached.)*
SantannaCarlos commented 2026-11-24 21:03:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by SantannaCarlos on 2026-11-24T20:10:57Z.


Follow-up from a 43-minute world run on the RTX 4070 (the #841 stack without #1198: main + #493 + #876 + #439 with its stack + #116 + #984 + #949 + #1019; 0.6 fps, no device removal), with the pools read every frame next to the title's own frame counter (u32 at title+0xABBEF44, the crash report's "Frame: %d", counted from boot):

  • The title frame went from 1,960 to 3,340, well past the 920–1,462 where the reports here stop, and there was no stop.
  • All four pools stayed fixed the whole time, to the element: Building 7,991/22,500, Object about 3,918/27,500, EntityBatch (INSTANCE_LIST) 13,775/45,000, and the pool behind the second stop site 7,928/25,000. They moved only on entering the world.
  • On this stack the scene does not advance in the world (the title presents frames, but nothing is created or removed), while on stacks that reach the stop the pools climb as the scene goes on (VoidDeficit's 11-minute run above: Building 11,625, Object 9,930, EntityBatch 35,015).

So the stop follows the scene's progress, not time or frame count: a stack has to play the opening scene forward to reach it.

The second stop site (+0x63966f, in the function at +0x6395d0) allocates from the pool at [title+0x98D79A8] (name hash 0x3F678DCF, 0x100-byte elements, capacity 25,000, one component per entity), which the crash report does not list. At the first site the pool that runs out is Building, as above.

Offsets and counts only; no title bytes.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7143156055 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7143156055). Originally posted by [SantannaCarlos](https://github.com/SantannaCarlos) on 2026-11-24T20:10:57Z. --- Follow-up from a 43-minute world run on the RTX 4070 (the #841 stack without #1198: `main` + #493 + #876 + #439 with its stack + #116 + #984 + #949 + #1019; 0.6 fps, no device removal), with the pools read every frame next to the title's own frame counter (u32 at `title+0xABBEF44`, the crash report's "Frame: %d", counted from boot): - The title frame went from 1,960 to 3,340, well past the 920–1,462 where the reports here stop, and there was no stop. - All four pools stayed fixed the whole time, to the element: Building 7,991/22,500, Object about 3,918/27,500, EntityBatch (INSTANCE_LIST) 13,775/45,000, and the pool behind the second stop site 7,928/25,000. They moved only on entering the world. - On this stack the scene does not advance in the world (the title presents frames, but nothing is created or removed), while on stacks that reach the stop the pools climb as the scene goes on (VoidDeficit's 11-minute run above: Building 11,625, Object 9,930, EntityBatch 35,015). So the stop follows the scene's progress, not time or frame count: a stack has to play the opening scene forward to reach it. The second stop site (`+0x63966f`, in the function at `+0x6395d0`) allocates from the pool at `[title+0x98D79A8]` (name hash `0x3F678DCF`, 0x100-byte elements, capacity 25,000, one component per entity), which the crash report does not list. At the first site the pool that runs out is Building, as above. Offsets and counts only; no title bytes.
Marvisak commented 2026-11-25 02:06:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:48:21Z.


Automated triage for the maintainers.

This issue stays the place where the title's own breakpoint in the world is tracked. The title stops with 0x80000003 at +0x5149aec or +0x63966f, its crash report shows INSTANCE_LIST at 45000/45000, and the device is not removed. It has been seen on NVIDIA and AMD, on Windows, under Wine, CrossOver and Proton. It also happens on plain main 67e8ae1 (Strix Halo under Proton, in #714) and under stock Wine with #1279 (in #340). New: ThomasHFWright reproduces the 45,000/45,000 stop on an RTX 5090 under GE-Proton 11-14 (commit and driver not given yet).

Where the leads stand:

  • On one fork tree (RTX 3060, details in #886), skipping four compute programs through VICTORY_SKIP_PIPELINES kept the pool at 17856/45000 for over 22 minutes. On another fork line (RTX 3080 Ti under Wine) the same skip did not prevent the stop. So that skip is not the whole explanation: the pools fill as the opening scene's prestream advances.
  • Hypothesis from the Wine runs: every crash report that stopped lists an unsignalled cross-queue barrier, and the one that did not stop lists none. Relevant to that: since 9cc37c5 (in main), crates/victory-gpu/src/hold.rs holds a queue's work until its waits on memory values hold. A crash report from current main (63bcca4) with the barrier lines would test this.
  • Once a run has got past the stop and the title has written a save, later starts load that save, skip the intro and do not reach the trap (with a save, one pool peaked at 10,787 on default sizes). When comparing builds, move the save aside or check what the data folder gained between runs.
  • RTX 2080, Windows 10, 940d32f + #2460 #2461 #2462 #2464: the pools fill only during the opening cutscene and drain afterwards (peak about 28,650 in one pool, then about 7,800 within minutes), so on that stack it looks like a burst rather than an unbounded leak. The reporter's reading is that the instance-culling compute passes that would retire instances early do not run on this 32-lane card, because their WaveSize(64) pipelines are refused. That fits the skip lead above and open PR #1960 (wave64 compute on 32-lane hosts). With three pools made three times larger, the run reached gameplay for 12+ minutes without the breakpoint. Making the breakpoint sites no-ops only moved the crash to the null read at +0x5290e15, as on the CrossOver run.
  • That pool-size change is now shared as a branch on main f3578e3 (VICTORY_POOL_SCALE, only for one retail image, checked before patching), for testing under Proton. Like VICTORY_STEP_OVER, it patches the title's own code; main has neither (crates/victory-loader/src/crash.rs). It hides the stop rather than fixing the cause. If it should be considered, please open it as a pull request so it can be reviewed here.

Disassembly or bytes of the title's executable must not be posted here; please describe such findings by offset only. Requests for the game, or for where to get it, do not belong here either.

A useful new report gives the commit (git rev-parse --short HEAD, preferably plain main), the GPU and driver, the time and title frame of the stop, the pool counts, whether wave64 compute pipelines were refused, and whether a save from an earlier run was present.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7149977174 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7149977174). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T01:48:21Z. --- <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T23:25:20Z at=2026-11-26T01:00:00Z --> Automated triage for the maintainers. This issue stays the place where the title's own breakpoint in the world is tracked. The title stops with `0x80000003` at `+0x5149aec` or `+0x63966f`, its crash report shows `INSTANCE_LIST` at 45000/45000, and the device is not removed. It has been seen on NVIDIA and AMD, on Windows, under Wine, CrossOver and Proton. It also happens on plain `main` `67e8ae1` (Strix Halo under Proton, in #714) and under stock Wine with #1279 (in #340). New: ThomasHFWright reproduces the 45,000/45,000 stop on an RTX 5090 under GE-Proton 11-14 (commit and driver not given yet). Where the leads stand: - On one fork tree (RTX 3060, details in #886), skipping four compute programs through `VICTORY_SKIP_PIPELINES` kept the pool at 17856/45000 for over 22 minutes. On another fork line (RTX 3080 Ti under Wine) the same skip did not prevent the stop. So that skip is not the whole explanation: the pools fill as the opening scene's prestream advances. - Hypothesis from the Wine runs: every crash report that stopped lists an unsignalled cross-queue barrier, and the one that did not stop lists none. Relevant to that: since 9cc37c5 (in `main`), `crates/victory-gpu/src/hold.rs` holds a queue's work until its waits on memory values hold. A crash report from current `main` (`63bcca4`) with the barrier lines would test this. - Once a run has got past the stop and the title has written a save, later starts load that save, skip the intro and do not reach the trap (with a save, one pool peaked at 10,787 on default sizes). When comparing builds, move the save aside or check what the data folder gained between runs. - **RTX 2080, Windows 10, `940d32f` + #2460 #2461 #2462 #2464:** the pools fill only during the opening cutscene and drain afterwards (peak about 28,650 in one pool, then about 7,800 within minutes), so on that stack it looks like a burst rather than an unbounded leak. The reporter's reading is that the instance-culling compute passes that would retire instances early do not run on this 32-lane card, because their `WaveSize(64)` pipelines are refused. That fits the skip lead above and open PR #1960 (wave64 compute on 32-lane hosts). With three pools made three times larger, the run reached gameplay for 12+ minutes without the breakpoint. Making the breakpoint sites no-ops only moved the crash to the null read at `+0x5290e15`, as on the CrossOver run. - That pool-size change is now shared as a branch on `main` `f3578e3` (`VICTORY_POOL_SCALE`, only for one retail image, checked before patching), for testing under Proton. Like `VICTORY_STEP_OVER`, it patches the title's own code; `main` has neither (`crates/victory-loader/src/crash.rs`). It hides the stop rather than fixing the cause. If it should be considered, please open it as a pull request so it can be reviewed here. Disassembly or bytes of the title's executable must not be posted here; please describe such findings by offset only. Requests for the game, or for where to get it, do not belong here either. A useful new report gives the commit (`git rev-parse --short HEAD`, preferably plain `main`), the GPU and driver, the time and title frame of the stop, the pool counts, whether wave64 compute pipelines were refused, and whether a save from an earlier run was present. --- _Generated by [Claude Code](https://claude.ai/code)_
vladbondarenko97 commented 2026-11-25 03:03:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by vladbondarenko97 on 2026-11-25T02:21:28Z.


Independent reproduction on an RTX 3080 Ti — same breakpoint, same counters, and the SRL name

Got to this wall tonight with a build based on a public VIctory fork (Zettrox/ztrx, current main lineage) plus VICTORY_PIPELINE_WAIT_MS=24 and VICTORY_RELAY=2, scripted first-run input. RTX 3080 Ti 12 GB, Windows 11, retail 1.0.2.1.

The title's own crash report (temp\victory-20261124-201734-*.crash.log) at the breakpoint says:

Paused: Yes
Pool: 591978336/624951280
Current SRL Name: fbk_stry000_FBK_STRY000_INTRO [T:43270625]
Current SRL State: Prestream
 - BUILDING: 22460/22500
 - OBJECT: 16402/27500
 - INSTANCE_LIST: 45000/45000
 - GRASS_INSTANCE_LIST: 6643/9000

and the process ends at 0x80000003 in the title at +0x5149aec, identical to the report above.

World-side counters from the same run, in case they are useful for sizing rather than lifetime:

  • steady state before the breakpoint: ~1 fps, 750–2200 draws/frame, dropped 150–1300 without a host pipeline (0–1160 being made);
  • texture pipeline: 26,475 waiting, ~4,500 uploaded (2.3 GB) at the time of death, 429,655 slots placed / 142,427 objects;
  • the worst frame was 0.2 fps, 5878 ms/frame with 2,716.7 ms on the GPU and 2,963.6 ms copying back 51.8 MB;
  • pipeline cache: saved bytes=47790710 early=1767 made=572 loaded=20.

So on this machine INSTANCE_LIST saturates during the story intro prestream, while BUILDING is at 99.8% of its cap — which suggests the question is whether the port is failing to release instances during streaming rather than the caps being too small.

AI-assisted investigation (Claude Code); values from our own retail run, package unmodified.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7150619577 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7150619577). Originally posted by [vladbondarenko97](https://github.com/vladbondarenko97) on 2026-11-25T02:21:28Z. --- **Independent reproduction on an RTX 3080 Ti — same breakpoint, same counters, and the SRL name** Got to this wall tonight with a build based on a public VIctory fork (`Zettrox/ztrx`, current main lineage) plus `VICTORY_PIPELINE_WAIT_MS=24` and `VICTORY_RELAY=2`, scripted first-run input. RTX 3080 Ti 12 GB, Windows 11, retail 1.0.2.1. The title's own crash report (`temp\victory-20261124-201734-*.crash.log`) at the breakpoint says: ``` Paused: Yes Pool: 591978336/624951280 Current SRL Name: fbk_stry000_FBK_STRY000_INTRO [T:43270625] Current SRL State: Prestream - BUILDING: 22460/22500 - OBJECT: 16402/27500 - INSTANCE_LIST: 45000/45000 - GRASS_INSTANCE_LIST: 6643/9000 ``` and the process ends at `0x80000003` in the title at `+0x5149aec`, identical to the report above. World-side counters from the same run, in case they are useful for sizing rather than lifetime: - steady state before the breakpoint: `~1 fps, 750–2200 draws/frame, dropped 150–1300 without a host pipeline (0–1160 being made)`; - texture pipeline: `26,475 waiting`, `~4,500 uploaded (2.3 GB)` at the time of death, `429,655 slots placed / 142,427 objects`; - the worst frame was `0.2 fps, 5878 ms/frame` with **2,716.7 ms on the GPU and 2,963.6 ms copying back 51.8 MB**; - pipeline cache: `saved bytes=47790710 early=1767 made=572 loaded=20`. So on this machine INSTANCE_LIST saturates during the story intro prestream, while BUILDING is at 99.8% of its cap — which suggests the question is whether the port is failing to *release* instances during streaming rather than the caps being too small. AI-assisted investigation (Claude Code); values from our own retail run, package unmodified.
Asenje commented 2026-11-25 08:06:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Asenje on 2026-11-25T07:53:24Z.


A/B data on what fills INSTANCE_LIST, from #886 (RTX 3060 12 GB, i7-7700K, 32 GB, Windows 11, native D3D12, Series X profile):

  • r4tedx integration tree (testers update 9, 94e0ea5), with the four instance-culling compute programs running (17af15c4015cb4b6, 55679a0547649d0b, fdd56d97a806bcca, 89d08e561897d4e5): int3 at +0x5149aec at 7:03, 11:34 and 6:46 in three runs, crash report INSTANCE_LIST 45000/45000.
  • Same tree, same save, only those four added to VICTORY_SKIP_PIPELINES: INSTANCE_LIST held at 17856/45000 for 22+ min, no stop at +0x5149aec (a later, different fault at +0x4fafeae reading 0xffffffff00000000).
  • fxceless/victory-fork 4e17478 + #454, without skipping them: no stop at +0x5149aec in 25 and ~29 min of prologue play.

So on this box the pool fills only while those four programs run on the host, which fits Wallice's reading above (culling programs misbehaving on 32-lane hosts) and Sil3ntGam3r's #704 result, rather than a leak in the pool itself. The 3080 Ti report on Zettrox/ztrx suggests that fork still runs them.

Details and frame times: #886.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7156366077 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7156366077). Originally posted by [Asenje](https://github.com/Asenje) on 2026-11-25T07:53:24Z. --- A/B data on what fills INSTANCE_LIST, from #886 (RTX 3060 12 GB, i7-7700K, 32 GB, Windows 11, native D3D12, Series X profile): - r4tedx integration tree (testers update 9, 94e0ea5), with the four instance-culling compute programs running (17af15c4015cb4b6, 55679a0547649d0b, fdd56d97a806bcca, 89d08e561897d4e5): int3 at +0x5149aec at 7:03, 11:34 and 6:46 in three runs, crash report INSTANCE_LIST 45000/45000. - Same tree, same save, only those four added to VICTORY_SKIP_PIPELINES: INSTANCE_LIST held at 17856/45000 for 22+ min, no stop at +0x5149aec (a later, different fault at +0x4fafeae reading 0xffffffff00000000). - fxceless/victory-fork 4e17478 + #454, without skipping them: no stop at +0x5149aec in 25 and ~29 min of prologue play. So on this box the pool fills only while those four programs run on the host, which fits Wallice's reading above (culling programs misbehaving on 32-lane hosts) and Sil3ntGam3r's #704 result, rather than a leak in the pool itself. The 3080 Ti report on Zettrox/ztrx suggests that fork still runs them. Details and frame times: #886.
slauko commented 2026-11-25 14:07:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by slauko on 2026-11-25T14:02:40Z.


A result against the skip lead, and what five crash reports of one machine say. RTX 3080 Ti under Wine (Proton Experimental, vkd3d-proton master@ec20719), this fork's line (uiliannn/VItoriaBr 2b3c339e) with fxceless#823, #845 and #91, the intro reached at 1.3–2.5 fps with a tree-indexed wineserver.

The skip did not prevent the stop here

With VICTORY_SKIP_PIPELINES=17af15c4015cb4b6,55679a0547649d0b,fdd56d97a806bcca,89d08e561897d4e5 the run stopped as before: 6m05, frame 1458, INSTANCE_LIST 45000/45000, BUILDING 22049/22500. The skip was active — three of the four programs got a host pipeline in the runs without it, none with it. That is the result alexodee's second machine has in fxceless/victory-fork#378.

Five crash reports from one day

run game time frame BUILDING OBJECT INSTANCE_LIST GRASS_INSTANCE_LIST Unsignaled CrossQueueBarrier
ended by the title's watchdog, not by this trap 6m25 2154 7,486 6,694 24,026 2,765 none
stopped 6m02 1483 22,215 14,635 45,000 6,496 f8dcd913
stopped 6m00 1437 22,409 14,269 45,000 6,449 f8dcd913
stopped 6m07 1391 22,442 13,336 45,000 6,380 cf82834d
stopped, with the skip 6m05 1458 22,049 13,615 45,000 6,285 cf82834d

All five: Current SRL Name: fbk_stry000_FBK_STRY000_INTRO, Current SRL State: Prestream.

What they say:

  • Game Physical (2.178–2.186 GB of 2.306) and Pool (591.978 MB of 624.951) read the same in all five. They are not what runs out.
  • INSTANCE_LIST, BUILDING, OBJECT and GRASS_INSTANCE_LIST grow together while the intro prestreams. The slow run (frames about 6 s, twice the frame time of the others) was at 24,026 instance lists after 6m25; the fast ones are at 45,000 after 6m00. That is the law alexodee found: the stop follows the prestream, not the frame count.
  • Unsignaled CrossQueueBarrier is in every report that stopped and in none that did not. A hypothesis of mine, not checked: work behind that barrier never completes, so the frames' instance lists are never given back.

The trap

title+0x5149aec is one int3 with two ways into it, in the pool's allocate:

5149a81: mov  rax,[rcx+0x20]
5149a85: cmp  eax,0x1fffe
5149a8a: je   5149aec          ; no free element, by the look of it — the report's 45000/45000
...
5149ac0: mov  rdi,[rcx]
5149ac3: test rdi,rdi
5149ac6: je   5149aec          ; the pool's memory is NULL
...
5149aec: int3
5149aed: xor  edi,edi
5149aef: mov  rax,rdi          ; return NULL

The trap sits on the function's own NULL return: stepping over that one byte returns NULL, which is what alexodee's "local handler that goes on past the empty pool" amounts to.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7164670839 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7164670839). Originally posted by [slauko](https://github.com/slauko) on 2026-11-25T14:02:40Z. --- **A result against the skip lead, and what five crash reports of one machine say.** RTX 3080 Ti under Wine (Proton Experimental, vkd3d-proton `master@ec20719`), this fork's line (`uiliannn/VItoriaBr 2b3c339e`) with fxceless#823, #845 and #91, the intro reached at 1.3–2.5 fps with a tree-indexed wineserver. ## The skip did not prevent the stop here With `VICTORY_SKIP_PIPELINES=17af15c4015cb4b6,55679a0547649d0b,fdd56d97a806bcca,89d08e561897d4e5` the run stopped as before: 6m05, frame 1458, `INSTANCE_LIST 45000/45000`, `BUILDING 22049/22500`. The skip was active — three of the four programs got a host pipeline in the runs without it, none with it. That is the result alexodee's second machine has in fxceless/victory-fork#378. ## Five crash reports from one day | run | game time | frame | BUILDING | OBJECT | INSTANCE_LIST | GRASS_INSTANCE_LIST | `Unsignaled CrossQueueBarrier` | |---|---|---:|---:|---:|---:|---:|---| | ended by the title's watchdog, not by this trap | 6m25 | 2154 | 7,486 | 6,694 | 24,026 | 2,765 | none | | stopped | 6m02 | 1483 | 22,215 | 14,635 | 45,000 | 6,496 | `f8dcd913` | | stopped | 6m00 | 1437 | 22,409 | 14,269 | 45,000 | 6,449 | `f8dcd913` | | stopped | 6m07 | 1391 | 22,442 | 13,336 | 45,000 | 6,380 | `cf82834d` | | stopped, with the skip | 6m05 | 1458 | 22,049 | 13,615 | 45,000 | 6,285 | `cf82834d` | All five: `Current SRL Name: fbk_stry000_FBK_STRY000_INTRO`, `Current SRL State: Prestream`. What they say: - `Game Physical` (2.178–2.186 GB of 2.306) and `Pool` (591.978 MB of 624.951) read the same in all five. They are not what runs out. - `INSTANCE_LIST`, `BUILDING`, `OBJECT` and `GRASS_INSTANCE_LIST` grow together while the intro prestreams. The slow run (frames about 6 s, twice the frame time of the others) was at 24,026 instance lists after 6m25; the fast ones are at 45,000 after 6m00. That is the law alexodee found: the stop follows the prestream, not the frame count. - `Unsignaled CrossQueueBarrier` is in every report that stopped and in none that did not. A hypothesis of mine, not checked: work behind that barrier never completes, so the frames' instance lists are never given back. ## The trap `title+0x5149aec` is one `int3` with two ways into it, in the pool's allocate: ``` 5149a81: mov rax,[rcx+0x20] 5149a85: cmp eax,0x1fffe 5149a8a: je 5149aec ; no free element, by the look of it — the report's 45000/45000 ... 5149ac0: mov rdi,[rcx] 5149ac3: test rdi,rdi 5149ac6: je 5149aec ; the pool's memory is NULL ... 5149aec: int3 5149aed: xor edi,edi 5149aef: mov rax,rdi ; return NULL ``` The trap sits on the function's own NULL return: stepping over that one byte returns NULL, which is what alexodee's "local handler that goes on past the empty pool" amounts to.
slauko commented 2026-11-25 15:04:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by slauko on 2026-11-25T14:54:10Z.


Past the stop and into gameplay: the thread goes on behind the int3. 30 minutes, no fault.

The trap sits on the allocate's own NULL return (the disassembly in my comment above), so a thread can go on behind it. The loader's vectored handler — the one that already steps over the console's instructions — takes a breakpoint exception at a named offset of the title's image and returns EXCEPTION_CONTINUE_EXECUTION. VICTORY_STEP_OVER=<hex offset>[,<hex offset>…], off unless it is set; nothing else about exceptions changes.

With VICTORY_STEP_OVER=5149aec (retail 1.0.2.1, RTX 3080 Ti under Wine, uiliannn/VItoriaBr 2b3c339e with fxceless#823, #845 and #91):

the trap, first hit about 6:00 of game time, as in the six runs before it
after it 30 minutes to my time limit: no fault of the title, no device loss
world frames 317; median 521 ms (331 to 1,102); 3,516 draws a frame, at most 6,252
on screen the opening of the prologue: the cell, the yard beyond it; the title's prompts to move and to turn the camera
input W/A/S/D move, I/J/K/L turn the camera (the runtime's keyboard stand-in)
the trap's counter more than 512 and fewer than 1,024 hits in the 30 minutes
memory 27.5 GB resident and 4.3 GB in swap at the most (a 31 GB machine); 11.9 of 12 GB on the card

The picture was overexposed for its first minutes (the auto-exposure at 1.5 fps), then the yard settled. Hair renders as streaks; a red pattern lies on the skin at the neck.

A way around the stop, not its cause. The counter says the pool stays full: every list asked for after 6:00 gets NULL, and whatever needed it is not drawn. Asenje's runs D and E in #886 show the other way: with the four culling programs skipped, no trap on integration/testers. On this line the skip did not prevent it (my comment above), so the lists are lost on more than one path.

The handler's part (crates/victory-loader/src/crash.rs); the vectored handler calls it first
unsafe fn step_over(info: *mut EXCEPTION_POINTERS) -> bool {
    let Some(list) = STEP_OVER.get() else {
        return false;
    };
    if list.is_empty() {
        return false;
    }
    // SAFETY: the system passes valid exception pointers.
    let record = unsafe { &*(*info).ExceptionRecord };
    if record.ExceptionCode != EXCEPTION_BREAKPOINT {
        return false;
    }
    let base = STEP_BASE.load(std::sync::atomic::Ordering::Relaxed);
    let at = record.ExceptionAddress as usize;
    let Some((offset, count)) = list.iter().find(|(offset, _)| at == base + offset) else {
        return false;
    };
    // SAFETY: the faulting thread's context, for the exception being dispatched.
    let ctx = unsafe { &mut *(*info).ContextRecord };
    if ctx.Rip as usize == at {
        ctx.Rip += 1;
    }
    let n = count.fetch_add(1, std::sync::atomic::Ordering::Relaxed) + 1;
    if n <= 3 || n.is_power_of_two() {
        tracing::warn!(
            offset = format_args!("{offset:#x}"),
            n,
            "step over the title's breakpoint (VICTORY_STEP_OVER): the code behind the trap goes on"
        );
    }
    true
}

STEP_OVER is a OnceLock<Vec<(usize, AtomicU64)>> filled once from the variable, with offsets that lie in the image; STEP_BASE is where the title's image was mapped.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7165993880 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7165993880). Originally posted by [slauko](https://github.com/slauko) on 2026-11-25T14:54:10Z. --- **Past the stop and into gameplay: the thread goes on behind the `int3`. 30 minutes, no fault.** The trap sits on the allocate's own NULL return (the disassembly in my comment above), so a thread can go on behind it. The loader's vectored handler — the one that already steps over the console's instructions — takes a breakpoint exception at a named offset of the title's image and returns `EXCEPTION_CONTINUE_EXECUTION`. `VICTORY_STEP_OVER=<hex offset>[,<hex offset>…]`, off unless it is set; nothing else about exceptions changes. With `VICTORY_STEP_OVER=5149aec` (retail 1.0.2.1, RTX 3080 Ti under Wine, `uiliannn/VItoriaBr 2b3c339e` with fxceless#823, #845 and #91): | | | |---|---| | the trap, first hit | about 6:00 of game time, as in the six runs before it | | after it | **30 minutes to my time limit: no fault of the title, no device loss** | | world frames | 317; median **521 ms** (331 to 1,102); 3,516 draws a frame, at most 6,252 | | on screen | the opening of the prologue: the cell, the yard beyond it; the title's prompts to move and to turn the camera | | input | W/A/S/D move, I/J/K/L turn the camera (the runtime's keyboard stand-in) | | the trap's counter | more than 512 and fewer than 1,024 hits in the 30 minutes | | memory | 27.5 GB resident and 4.3 GB in swap at the most (a 31 GB machine); 11.9 of 12 GB on the card | The picture was overexposed for its first minutes (the auto-exposure at 1.5 fps), then the yard settled. Hair renders as streaks; a red pattern lies on the skin at the neck. **A way around the stop, not its cause.** The counter says the pool stays full: every list asked for after 6:00 gets NULL, and whatever needed it is not drawn. Asenje's runs D and E in #886 show the other way: with the four culling programs skipped, no trap on `integration/testers`. On this line the skip did not prevent it (my comment above), so the lists are lost on more than one path. <details> <summary>The handler's part (<code>crates/victory-loader/src/crash.rs</code>); the vectored handler calls it first</summary> ```rust unsafe fn step_over(info: *mut EXCEPTION_POINTERS) -> bool { let Some(list) = STEP_OVER.get() else { return false; }; if list.is_empty() { return false; } // SAFETY: the system passes valid exception pointers. let record = unsafe { &*(*info).ExceptionRecord }; if record.ExceptionCode != EXCEPTION_BREAKPOINT { return false; } let base = STEP_BASE.load(std::sync::atomic::Ordering::Relaxed); let at = record.ExceptionAddress as usize; let Some((offset, count)) = list.iter().find(|(offset, _)| at == base + offset) else { return false; }; // SAFETY: the faulting thread's context, for the exception being dispatched. let ctx = unsafe { &mut *(*info).ContextRecord }; if ctx.Rip as usize == at { ctx.Rip += 1; } let n = count.fetch_add(1, std::sync::atomic::Ordering::Relaxed) + 1; if n <= 3 || n.is_power_of_two() { tracing::warn!( offset = format_args!("{offset:#x}"), n, "step over the title's breakpoint (VICTORY_STEP_OVER): the code behind the trap goes on" ); } true } ``` `STEP_OVER` is a `OnceLock<Vec<(usize, AtomicU64)>>` filled once from the variable, with offsets that lie in the image; `STEP_BASE` is where the title's image was mapped. </details>
slauko commented 2026-11-25 18:02:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by slauko on 2026-11-25T17:08:56Z.


Once the title has written a save, the starts after it do not reach this trap.

Under Wine, with the breakpoint stepped over as in my comment above: world07 got into gameplay, and under seven minutes in — right behind the trap — the title wrote a save (a container SARC0015~… in the title's saves folder of the data directory). Every run since starts from it:

  • no intro: a black load of five and a half minutes, about 4,370 draws a frame, with the title's prompt ("move", "move camera") on screen from 6:45;
  • the cell at 8:10, gameplay as before (1.4–2.0 fps, the yard, the tower, the people);
  • the trap is not reached: 24 minutes in one run, and the step counter of my handler stayed at 0 in it and in three more runs of 400 s.

I took that at first for a regression of a merge and spent four runs on it: the merged build (also with the two switches the merge had turned on, off), the merged runtime with the older translator, the older runtime with the merged translator — all the same with the save present. The merged build with that one container moved aside played the intro again and reached the trap at 366 s.

So, as far as this machine shows, the stop at +0x5149aec stands in the way of the first start into gameplay only. A run that gets past it once writes a save, and the runs after that load it. A tester whose runs "stopped failing" may simply have one. And before two runs are compared on their builds, it is worth listing what the data folder gained between them: find <data> -newermt '<start of the earlier run>'.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7169076990 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7169076990). Originally posted by [slauko](https://github.com/slauko) on 2026-11-25T17:08:56Z. --- **Once the title has written a save, the starts after it do not reach this trap.** Under Wine, with the breakpoint stepped over as in my comment above: `world07` got into gameplay, and under seven minutes in — right behind the trap — the title wrote a save (a container `SARC0015~…` in the title's `saves` folder of the data directory). Every run since starts from it: - **no intro:** a black load of five and a half minutes, about 4,370 draws a frame, with the title's prompt ("move", "move camera") on screen from 6:45; - the cell at 8:10, gameplay as before (1.4–2.0 fps, the yard, the tower, the people); - **the trap is not reached:** 24 minutes in one run, and the step counter of my handler stayed at 0 in it and in three more runs of 400 s. I took that at first for a regression of a merge and spent four runs on it: the merged build (also with the two switches the merge had turned on, off), the merged runtime with the older translator, the older runtime with the merged translator — all the same with the save present. The merged build with that one container moved aside played the intro again and reached the trap at 366 s. So, as far as this machine shows, the stop at `+0x5149aec` stands in the way of the **first** start into gameplay only. A run that gets past it once writes a save, and the runs after that load it. A tester whose runs "stopped failing" may simply have one. And before two runs are compared on their builds, it is worth listing what the data folder gained between them: `find <data> -newermt '<start of the earlier run>'`.
Ahmet-Dedeler commented 2026-11-25 19:06:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Ahmet-Dedeler on 2026-11-25T18:46:31Z.


Data point on the step-over, from a different tree: the fxceless line (0b0074e base) under CrossOver + D3DMetal on an M5 Max.

The pool filled 7-8 minutes into the opening in three runs (7m28, 7m03, 7m59 of game time). With our own step-over (VICTORY_STEP_OVER=pool: steps over a title int3 that is followed by a register-zeroing xor) the trap was stepped over, but both times the title then faulted 40-70 s later at +0x5290e15, a read of address 0. slauko's run above went 30+ minutes past the same trap on VItoriaBr 2b3c339e with fxceless#823/#845/#91, so what happens after the trap seems to depend on the tree (or on how it's stepped over), not only on the title.

Also, from one run only so take it loosely: with VICTORY_TEXTURE_CATCHUP=0 (frames about half as long while streaming) a 620 s run never filled the pool. Haven't repeated it yet.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7171381115 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7171381115). Originally posted by [Ahmet-Dedeler](https://github.com/Ahmet-Dedeler) on 2026-11-25T18:46:31Z. --- Data point on the step-over, from a different tree: the fxceless line (`0b0074e` base) under CrossOver + D3DMetal on an M5 Max. The pool filled 7-8 minutes into the opening in three runs (7m28, 7m03, 7m59 of game time). With our own step-over (`VICTORY_STEP_OVER=pool`: steps over a title `int3` that is followed by a register-zeroing `xor`) the trap was stepped over, but both times the title then faulted 40-70 s later at `+0x5290e15`, a read of address 0. slauko's run above went 30+ minutes past the same trap on VItoriaBr `2b3c339e` with fxceless#823/#845/#91, so what happens after the trap seems to depend on the tree (or on how it's stepped over), not only on the title. Also, from one run only so take it loosely: with `VICTORY_TEXTURE_CATCHUP=0` (frames about half as long while streaming) a 620 s run never filled the pool. Haven't repeated it yet.
lhnizdo commented 2026-11-25 20:06:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by lhnizdo on 2026-11-25T19:37:11Z.


RTX 2080 (32-lane waves), Windows 10 19045: the pools only overflow during the opening cutscene. They drain afterwards, and making three of them larger gets into gameplay.

Stack: main 940d32f + #2460 #2461 #2462 #2464, diag build, VICTORY_SKIP_PIPELINES=f607780aa8e502d0 (the irradiance-cache shadow trace, which hangs here), scripted Enter presses. The InstanceCulling Prop/Slod/Tree passes still don't run on this card (WaveSize(64) refused; see my notes on #1960).

What fills. I watched the building pool (+0xa9ec938, joaat 0x5411E15C) every 5 s. It's empty for the first ~2 min, then climbs through the cutscene, and the game stopped at about 9–10 min when it reached 22,500. Two neighbours run dry right behind it:

  • 0x0BA88904: 192-byte slots, pool global +0x8fe1078, the +0x1fa88e4 site. Almost certainly the crash report's INSTANCE_LIST.
  • 0xC12C9884: 16-byte list nodes, pool global +0x8fe1088, the +0x5290e65 site. Once building can grow, the instances' list nodes run out next.

Making them larger. Every pool is sized by a config lookup by name hash (+0x50cef40) followed by the pool initialiser (+0x16cbe00). I redirected those lookup calls, all 632 pool creations, through a small jump next to the image to a host function that multiplies the size for chosen hashes. It's capped at 0x1FFF0 slots, since slot indices are 17 bits.

  • All 632 pools ×3: the title's allocator hits its fatal handler (+0x22106e0) at start; it doesn't fit the arena.
  • building + 0x0BA88904 ×3: building passed 22,500 (27,788), then 0xC12C9884 ran dry at +0x5290e65.
  • All three ×3: past the cutscene into gameplay (player control), 12+ min, no breakpoint, no device removal. building peaked at 28,653 (27% over the default) about 10 min in, then dropped to 7,817 within 2½ min. About 1.2 fps in gameplay.

So on this stack it isn't an unbounded leak. It's a burst during the cutscene that runs past the default sizes, presumably because the culling passes that would retire instances early don't run. The memory cost is small: about 15 MB more for building, 17 MB for 0x0BA88904, and very little for the list nodes.

For comparison: I also tried making the 2,602 pool-empty int 3 sites NOPs (as @WalliceCariasPerussio did). Here that only moved the crash. The allocator's null path at +0x5290e65 jumps back into code that uses the result, and the run ended on a null read at +0x5290e15 at about the same time.

The code is a local diagnostics switch for now, and it only patches if the bytes at those RVAs match image b99f876b74d4a77f. I can share it if anyone wants to try the same.

AI-assisted (Claude Code); the runs were on my machine. No game data beyond addresses, instruction bytes and hash values.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7172545292 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7172545292). Originally posted by [lhnizdo](https://github.com/lhnizdo) on 2026-11-25T19:37:11Z. --- **RTX 2080 (32-lane waves), Windows 10 19045: the pools only overflow during the opening cutscene. They drain afterwards, and making three of them larger gets into gameplay.** **Stack:** `main` `940d32f` + #2460 #2461 #2462 #2464, diag build, `VICTORY_SKIP_PIPELINES=f607780aa8e502d0` (the irradiance-cache shadow trace, which hangs here), scripted Enter presses. The `InstanceCulling` `Prop`/`Slod`/`Tree` passes still don't run on this card (`WaveSize(64)` refused; see my notes on #1960). **What fills.** I watched the `building` pool (`+0xa9ec938`, joaat `0x5411E15C`) every 5 s. It's empty for the first ~2 min, then climbs through the cutscene, and the game stopped at about 9–10 min when it reached 22,500. Two neighbours run dry right behind it: - `0x0BA88904`: 192-byte slots, pool global `+0x8fe1078`, the `+0x1fa88e4` site. Almost certainly the crash report's `INSTANCE_LIST`. - `0xC12C9884`: 16-byte list nodes, pool global `+0x8fe1088`, the `+0x5290e65` site. Once `building` can grow, the instances' list nodes run out next. **Making them larger.** Every pool is sized by a config lookup by name hash (`+0x50cef40`) followed by the pool initialiser (`+0x16cbe00`). I redirected those lookup calls, all 632 pool creations, through a small jump next to the image to a host function that multiplies the size for chosen hashes. It's capped at 0x1FFF0 slots, since slot indices are 17 bits. - **All 632 pools ×3:** the title's allocator hits its fatal handler (`+0x22106e0`) at start; it doesn't fit the arena. - **`building` + `0x0BA88904` ×3:** `building` passed 22,500 (27,788), then `0xC12C9884` ran dry at `+0x5290e65`. - **All three ×3:** past the cutscene into gameplay (player control), 12+ min, no breakpoint, no device removal. `building` peaked at **28,653** (27% over the default) about 10 min in, then **dropped to 7,817** within 2½ min. About 1.2 fps in gameplay. So on this stack it isn't an unbounded leak. It's a burst during the cutscene that runs past the default sizes, presumably because the culling passes that would retire instances early don't run. The memory cost is small: about 15 MB more for `building`, 17 MB for `0x0BA88904`, and very little for the list nodes. **For comparison:** I also tried making the 2,602 pool-empty `int 3` sites NOPs (as @WalliceCariasPerussio did). Here that only moved the crash. The allocator's null path at `+0x5290e65` jumps back into code that uses the result, and the run ended on a null read at `+0x5290e15` at about the same time. The code is a local diagnostics switch for now, and it only patches if the bytes at those RVAs match image `b99f876b74d4a77f`. I can share it if anyone wants to try the same. AI-assisted (Claude Code); the runs were on my machine. No game data beyond addresses, instruction bytes and hash values.
ThomasHFWright commented 2026-11-26 00:03:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by ThomasHFWright on 2026-11-25T23:09:48Z.


@lhnizdo We reproduced the 45,000/45,000 prestream stop on an RTX 5090 with GE-Proton 11-14. Could you share the three-pool sizing patch or its branch? We can test whether occupancy drains and controls work on Linux.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7177216865 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7177216865). Originally posted by [ThomasHFWright](https://github.com/ThomasHFWright) on 2026-11-25T23:09:48Z. --- @lhnizdo We reproduced the 45,000/45,000 prestream stop on an RTX 5090 with GE-Proton 11-14. Could you share the three-pool sizing patch or its branch? We can test whether occupancy drains and controls work on Linux.
lhnizdo commented 2026-11-26 00:03:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by lhnizdo on 2026-11-25T23:25:20Z.


@ThomasHFWright Sure: lhnizdo/VIctory@diag/pool-scale. It's current main (f3578e3) plus five diagnostic commits, nothing else. It builds and is clippy-clean. I haven't rerun the game on this exact rebase yet; the runs in my comment above used the same code on 940d32f.

Use:

  • VICTORY_POOL_SCALE=3 triples the three pools that run dry: building (0x5411E15C), 0x0BA88904 (INSTANCE_LIST, 192-byte slots) and the list nodes (0xC12C9884). VICTORY_POOL_SCALE_HASHES=<hex>,<hex>… picks other pools instead. Sizes are capped at 0x1FFF0 slots, since slot indices are 17 bits.
  • When it takes effect, the log says VICTORY_POOL_SCALE: pool sizes hooked with the number of call sites patched.
  • It only patches the retail 1.0.2.1 image it was written against: it checks the bytes at the pool-size lookup first, and otherwise logs not the image it knows; pools left alone.
  • No feature flag needed, so a plain build works.
  • How it works: it redirects the title's calls to the pool-size config lookup (+0x50cef40) through a jump placed next to the image, to a host function that multiplies the size for the chosen hashes. The jump needs memory within ±2 GB of the image (VirtualAlloc near it), which Wine should give as well, but I've only run it on native Windows 10.

Watching occupancy: VICTORY_WATCH=A9EC938:10,20,30 logs the building pool's fields every 5 s; +0x10 is the live count and +0xC the capacity.

Two things that affect what you'll see:

  • A save changes the start. As @slauko found, once a run gets into gameplay the title writes a story save (saves/…/SARC0015~…), and later runs load straight into the world without the intro. They never hit the prestream burst: with the save, building peaked at 10,787 on default sizes here. To test the patch on the intro, move that container aside first. A copy of the saves folder keeps it safe.
  • On a 32-lane card, the wave64 culling passes need #1960 or similar to run at all. Without them the burst during the intro is what overflows the defaults, and the scaling covers it.

AI-assisted (Claude Code); the runs were on my machine. No game data.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7177537575 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7177537575). Originally posted by [lhnizdo](https://github.com/lhnizdo) on 2026-11-25T23:25:20Z. --- @ThomasHFWright Sure: **[`lhnizdo/VIctory@diag/pool-scale`](https://github.com/lhnizdo/VIctory/tree/diag/pool-scale)**. It's current `main` (`f3578e3`) plus five diagnostic commits, nothing else. It builds and is clippy-clean. I haven't rerun the game on this exact rebase yet; the runs in my comment above used the same code on `940d32f`. **Use:** - `VICTORY_POOL_SCALE=3` triples the three pools that run dry: `building` (`0x5411E15C`), `0x0BA88904` (`INSTANCE_LIST`, 192-byte slots) and the list nodes (`0xC12C9884`). `VICTORY_POOL_SCALE_HASHES=<hex>,<hex>…` picks other pools instead. Sizes are capped at `0x1FFF0` slots, since slot indices are 17 bits. - When it takes effect, the log says `VICTORY_POOL_SCALE: pool sizes hooked` with the number of call sites patched. - It only patches the retail 1.0.2.1 image it was written against: it checks the bytes at the pool-size lookup first, and otherwise logs `not the image it knows; pools left alone`. - No feature flag needed, so a plain build works. - **How it works:** it redirects the title's calls to the pool-size config lookup (`+0x50cef40`) through a jump placed next to the image, to a host function that multiplies the size for the chosen hashes. The jump needs memory within ±2 GB of the image (`VirtualAlloc` near it), which Wine should give as well, but I've only run it on native Windows 10. **Watching occupancy:** `VICTORY_WATCH=A9EC938:10,20,30` logs the `building` pool's fields every 5 s; `+0x10` is the live count and `+0xC` the capacity. **Two things that affect what you'll see:** - **A save changes the start.** As @slauko found, once a run gets into gameplay the title writes a story save (`saves/…/SARC0015~…`), and later runs load straight into the world without the intro. They never hit the prestream burst: with the save, `building` peaked at 10,787 on default sizes here. To test the patch on the intro, move that container aside first. A copy of the `saves` folder keeps it safe. - **On a 32-lane card,** the wave64 culling passes need #1960 or similar to run at all. Without them the burst during the intro is what overflows the defaults, and the scaling covers it. AI-assisted (Claude Code); the runs were on my machine. No game data.
Anzymanz commented 2026-11-26 01:04:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Anzymanz on 2026-11-26T00:49:21Z.


Data point from AMD on Linux, where this stop used to hit us too (int3 at +0x5149aec / +0x63966f about 7 min into the world on earlier builds):

  • Setup: RX 9070 XT (RDNA4, 64-lane waves), CachyOS, Mesa 26.3.1 RADV, GE-Proton11-14 (with the view-tree wineserver patch), vkd3d-proton master 71cae09.
  • Build: main 13f91ca plus #1997, #454, #2644 and #2703. #2644's step-over was armed for both addresses.
  • Result: two runs of 9 min 46 s and 9 min 11 s in the world. Neither hit the stop, and the step-over never fired. Both went through the opening cutscene into gameplay (the first interaction prompt in the cell). There was no crash and no device loss, at about 1 fps.

What changed for us since the runs that stopped: #2703 (the BVH builder's root constant was read as a root-view offset, which dropped draws), and a guard in our local dxil-spirv. One translated shader does a float TextureLoad on a resource declared U64, and dxil-spirv called std::terminate() on it (fixup_load_type_typed). Before that, our runs died before reaching this point. I haven't isolated which change matters for the pools, so take this as a single configuration that doesn't reproduce, not a fix.

AI assistance: written with Claude (Anthropic, Claude Code); the runs were done and checked on my own machine.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7179147302 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7179147302). Originally posted by [Anzymanz](https://github.com/Anzymanz) on 2026-11-26T00:49:21Z. --- Data point from AMD on Linux, where this stop used to hit us too (int3 at `+0x5149aec` / `+0x63966f` about 7 min into the world on earlier builds): - **Setup:** RX 9070 XT (RDNA4, 64-lane waves), CachyOS, Mesa 26.3.1 RADV, GE-Proton11-14 (with the view-tree wineserver patch), vkd3d-proton master `71cae09`. - **Build:** `main` `13f91ca` plus #1997, #454, #2644 and #2703. #2644's step-over was armed for both addresses. - **Result:** two runs of 9 min 46 s and 9 min 11 s in the world. Neither hit the stop, and the step-over never fired. Both went through the opening cutscene into gameplay (the first interaction prompt in the cell). There was no crash and no device loss, at about 1 fps. What changed for us since the runs that stopped: #2703 (the BVH builder's root constant was read as a root-view offset, which dropped draws), and a guard in our local dxil-spirv. One translated shader does a float `TextureLoad` on a resource declared U64, and dxil-spirv called `std::terminate()` on it (`fixup_load_type_typed`). Before that, our runs died before reaching this point. I haven't isolated which change matters for the pools, so take this as a single configuration that doesn't reproduce, not a fix. *AI assistance: written with Claude (Anthropic, Claude Code); the runs were done and checked on my own machine.*
Tanju42 commented 2026-11-26 18:00:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Tanju42 on 2026-11-26T18:00:43Z.


Data point from the #1065 machine (RTX 5060 Laptop 8 GB, 31 GB RAM, Windows, Series X profile, story save start — every earlier run here died at Pool: 59197833x/624951280, byte-identical across five tips):

  • Tree: our fork main e4245f3 with the five diag commits cherry-picked clean (6a0f913), built --features diagnostics
  • Env: VICTORY_POOL_SCALE=3 + VICTORY_WATCH=A9EC938:10,20,30
  • Watch steady at world: image+0xa9ec938 -> 0xdfcf8b420: +0x10=0x1da4 +0x20=0x2049 (live 7588, free-list head valid — never the empty marker)
  • Result: died at Frame 3100 (previous best on the same tree without the scale: 1790), last logged world fps ~32 (was 1–2.5)
  • Pool block at abort: Pool: 618786416/624951280 — for the first time the fill is NOT the constant 591,978,3xx. It climbed to 99 % of the total.

Reading: the constant we kept hitting on this machine was the three fixed pools filling at their console config, not a title-side mystery constant. Tripling them moved the death point deep into the actual byte ceiling. Question for @lhnizdo: worth a run with VICTORY_POOL_SCALE=6 (or a targeted POOL_SCALE_HASHES + the list-node pool again) on this config before I try VICTORY_POOL_NO_ASSERT=1, or is the byte pool at 624951280 itself the next hard thing worth instrumenting? Happy to run either — one run per change, logging the pool line each time.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7199950675 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7199950675). Originally posted by [Tanju42](https://github.com/Tanju42) on 2026-11-26T18:00:43Z. --- Data point from the #1065 machine (RTX 5060 Laptop 8 GB, 31 GB RAM, Windows, Series X profile, story save start — every earlier run here died at `Pool: 59197833x/624951280`, byte-identical across five tips): - Tree: our fork main `e4245f3` with the five diag commits cherry-picked clean (`6a0f913`), built `--features diagnostics` - Env: `VICTORY_POOL_SCALE=3` + `VICTORY_WATCH=A9EC938:10,20,30` - Watch steady at world: `image+0xa9ec938 -> 0xdfcf8b420: +0x10=0x1da4 +0x20=0x2049` (live 7588, free-list head valid — never the empty marker) - Result: died at **Frame 3100** (previous best on the same tree without the scale: 1790), last logged world fps `~32` (was 1–2.5) - **Pool block at abort: `Pool: 618786416/624951280`** — for the first time the fill is NOT the constant `591,978,3xx`. It climbed to 99 % of the total. Reading: the constant we kept hitting on this machine was the three fixed pools filling at their console config, not a title-side mystery constant. Tripling them moved the death point deep into the actual byte ceiling. Question for @lhnizdo: worth a run with `VICTORY_POOL_SCALE=6` (or a targeted `POOL_SCALE_HASHES` + the list-node pool again) on this config before I try `VICTORY_POOL_NO_ASSERT=1`, or is the byte pool at `624951280` itself the next hard thing worth instrumenting? Happy to run either — one run per change, logging the pool line each time.
Tanju42 commented 2026-11-26 18:06:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Tanju42 on 2026-11-26T18:06:51Z.


Follow-up from the same machine, as promised: one run with VICTORY_POOL_SCALE=6 (identical tree 6a0f913, same env otherwise). Hook active: factor=6 sites=632 patched=632 hashes=[building, INSTANCE_LIST, list-nodes].

Result is WORSE: abort at Frame 653 (scale 3 gave 3100), crash context shows Pool: 0/0 and the whole POOLS section at 0/0 with Current script program: 0x0, TileHeap only 448 MB used — the title aborts very early in the load, before the pools report anything. No pool-dry breakpoint, different stop than the scale-1 and scale-3 runs.

Reading: at factor 6 the enlarged pools themselves seem to eat the 624,951,280-byte ceiling during world load (or a slot count crosses something the title does not like — the 17-bit cap comment). Factor 3 is currently the sweet spot here: it kept every pool I watched (live 7588, valid free head) and moved the stop from the old 591,978,3xx constant to the real ceiling at 99 % fill, Frame 3100.

I have VICTORY_POOL_NO_ASSERT=1 armed mentally but holding it until you say the degraded-state read is safe. Next data point I can add without asking: targeted POOL_SCALE_HASHES per pool at 3 — say the word which split you want (building/INSTANCE_LIST at 3 with list-nodes at 5?), one run per change, pool line reported every time.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7200068596 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7200068596). Originally posted by [Tanju42](https://github.com/Tanju42) on 2026-11-26T18:06:51Z. --- Follow-up from the same machine, as promised: one run with `VICTORY_POOL_SCALE=6` (identical tree `6a0f913`, same env otherwise). Hook active: `factor=6 sites=632 patched=632 hashes=[building, INSTANCE_LIST, list-nodes]`. Result is WORSE: abort at **Frame 653** (scale 3 gave 3100), crash context shows `Pool: 0/0` and the whole `POOLS` section at `0/0` with `Current script program: 0x0`, TileHeap only 448 MB used — the title aborts very early in the load, before the pools report anything. No pool-dry breakpoint, different stop than the scale-1 and scale-3 runs. Reading: at factor 6 the enlarged pools themselves seem to eat the 624,951,280-byte ceiling during world load (or a slot count crosses something the title does not like — the 17-bit cap comment). Factor 3 is currently the sweet spot here: it kept every pool I watched (live 7588, valid free head) and moved the stop from the old `591,978,3xx` constant to the real ceiling at 99 % fill, Frame 3100. I have `VICTORY_POOL_NO_ASSERT=1` armed mentally but holding it until you say the degraded-state read is safe. Next data point I can add without asking: targeted `POOL_SCALE_HASHES` per pool at 3 — say the word which split you want (building/INSTANCE_LIST at 3 with list-nodes at 5?), one run per change, pool line reported every time.
Tanju42 commented 2026-11-26 18:14:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Tanju42 on 2026-11-26T18:14:37Z.


Scale sweep on this machine, same tree 6a0f913, one run per factor, story-save start:

factor stop pool at abort note
1 (none) Frame 1790 591,978,352/624,951,280 the old constant
3 Frame 3100 618,786,416/624,951,280 99.0 % fill, last fps ~32
4 Frame 4080 623,916,448/624,951,280 99.8 % fill — one MiB short of the ceiling; ran ~5.5 min
6 Frame 653 0/0, whole POOLS section 0/0 early abort during load, pools seem to eat the byte pool

Watch at factor 4 stayed clean to 2 s before the stop: building pool live 0x1da4, free head 0x1afe, never the empty marker. So 4 is better than 3: same class of stop, deeper, at the true byte ceiling. Two questions where your call saves me two runs: (a) worth sweeping 5 before I go to per-hash splits? (b) if 4/5 is the sweet spot, is the byte ceiling itself (624,951,280) something the host could raise at the same hook site, or is that config baked elsewhere? I will not touch VICTORY_POOL_NO_ASSERT until you say so.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7200222357 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7200222357). Originally posted by [Tanju42](https://github.com/Tanju42) on 2026-11-26T18:14:37Z. --- Scale sweep on this machine, same tree `6a0f913`, one run per factor, story-save start: | factor | stop | pool at abort | note | |---|---|---|---| | 1 (none) | Frame 1790 | 591,978,352/624,951,280 | the old constant | | 3 | Frame 3100 | 618,786,416/624,951,280 | 99.0 % fill, last fps ~32 | | 4 | **Frame 4080** | **623,916,448/624,951,280** | 99.8 % fill — one MiB short of the ceiling; ran ~5.5 min | | 6 | Frame 653 | 0/0, whole POOLS section 0/0 | early abort during load, pools seem to eat the byte pool | Watch at factor 4 stayed clean to 2 s before the stop: building pool live `0x1da4`, free head `0x1afe`, never the empty marker. So 4 is better than 3: same class of stop, deeper, at the true byte ceiling. Two questions where your call saves me two runs: (a) worth sweeping 5 before I go to per-hash splits? (b) if 4/5 is the sweet spot, is the byte ceiling itself (`624,951,280`) something the host could raise at the same hook site, or is that config baked elsewhere? I will not touch `VICTORY_POOL_NO_ASSERT` until you say so.
lhnizdo commented 2026-11-26 18:15:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by lhnizdo on 2026-11-26T18:15:47Z.


@Tanju42, thank you, that's a very useful pair of runs. Factor 6 failing early fits the ceiling: every scaled pool takes its whole size up front, so a larger factor spends the 624,951,280 bytes before the world even loads.

From my side (RTX 2080, the same story save), the building pool (0x5411E15C) peaked at 28,653 slots of its 22,500, about ×1.27, during the opening cutscene, and it drained afterwards. So it needs much less than ×3. For the next run I'd try a smaller factor per pool, to leave room under the ceiling:

  • building ×2
  • INSTANCE_LIST ×3
  • list nodes ×3

Please report each pool's line (live / size / free head) as before, plus the frame and the memory used at the stop, one change per run. If it stops at the ceiling again, then building ×2 with the other two at ×2 would show whether INSTANCE_LIST is the one that needs the most.

About VICTORY_POOL_NO_ASSERT=1: I'd keep it off for the readings. It only changes what happens after a pool runs dry, so the title then keeps going on a pool it considers full. Anything it reports after that point (and whether it hangs or corrupts later) isn't a reading of the real need. It's fine for "does it get further at all", but not for sizing.

AI-assisted (Claude Code). No game data.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7200246559 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7200246559). Originally posted by [lhnizdo](https://github.com/lhnizdo) on 2026-11-26T18:15:47Z. --- @Tanju42, thank you, that's a very useful pair of runs. Factor 6 failing early fits the ceiling: every scaled pool takes its whole size up front, so a larger factor spends the 624,951,280 bytes before the world even loads. From my side (RTX 2080, the same story save), the `building` pool (0x5411E15C) peaked at 28,653 slots of its 22,500, about ×1.27, during the opening cutscene, and it drained afterwards. So it needs much less than ×3. For the next run I'd try a smaller factor per pool, to leave room under the ceiling: - `building` ×2 - `INSTANCE_LIST` ×3 - list nodes ×3 Please report each pool's line (live / size / free head) as before, plus the frame and the memory used at the stop, one change per run. If it stops at the ceiling again, then `building` ×2 with the other two at ×2 would show whether `INSTANCE_LIST` is the one that needs the most. About `VICTORY_POOL_NO_ASSERT=1`: I'd keep it off for the readings. It only changes what happens after a pool runs dry, so the title then keeps going on a pool it considers full. Anything it reports after that point (and whether it hangs or corrupts later) isn't a reading of the real need. It's fine for "does it get further at all", but not for sizing. AI-assisted (Claude Code). No game data.
Tanju42 commented 2026-11-26 18:35:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Tanju42 on 2026-11-26T18:35:53Z.


Regression report on latest tip — failure mode changed away from the pool-dry family (2026-11-26, same laptop as my previous posts: RTX 5060 Laptop 8 GB, 31 GB RAM, retail 1.0.2.1, story-save start, VICTORY_POOL_SCALE=4 + VICTORY_WATCH, diagnostics feature).

Control (19:09→19:12 local), tree e4245f3 + the 5 picks from diag/pool-scale (local HEAD 6a0f913):
death frame 4080, pool 623916448/624951280 (99.8 %), INSTANCE_LIST: 45000/45000 — the familiar pool-dry mode, full debug dump.

Tip 52ac4ec0 + the same 5 picks (local HEAD 0ce48de) — i.e. with tonight's batch #1324 (dynamic descriptor slots go back only to the heap that took them), #1336 (pin the texture a placed view aliases), #1353 (finish pipeline queue entry on build panic), plus the shader-cache and split-submission descriptor-table commits:

run wall clock frames alive INSTANCE_LIST pool-dry?
1 19:23:47→19:26:55 2859 2:31 13792/45000 no
2 19:29:24→19:32:05 2702 2:09 13769/45000 no
  • Hook banner active in both: VICTORY_POOL_SCALE: pool sizes hooked factor=4 sites=632 patched=632 hashes=Some([1410457948, 195594500, 3240925316])
  • Debug dumps are complete (END OF DEBUG INFO) but shaped differently: the Pool used/total byte line no longer appears in the dump; NOTINPOOLS: 0/0; INSTANCE_LIST only ~31 % full — this is not the pool running dry.
  • 30–60 s before the end, these warnings fire in stderr (both runs; previous run's stderr was overwritten before I could diff against the control, so treating novelty as unconfirmed):
    • victory_gpu::draw: textures picked by index: the card has no room for more; they wa…
    • victory_gpu::draw: a texture picked by index changed after its upload with nothing … (×2)
    • victory_gpu::draw: a shader takes the address of a buffer view that is not there: i…
    • victory_gpu::descriptor::host: placed unordered texture view not mirrored dimen…
  • End is the usual title breakpad upload.

Summary: 2/2 early deaths at ~2.0–2.5 min / ~2.7–2.9k frames on the new tip, vs. 4080 frames ~40 min earlier on the control tree. The pool-dry signature is gone and replaced by an indexed/placed-texture / descriptor failure ~2.5 min in — the warning texts line up suspiciously well with #1324/#1336 which landed in this exact batch.

I have not bisected locally (that would be 5 runs for 5 commits) — happy to run a bisect on request. Tree pinned back to e4245f3 meanwhile, where the old (known, slower-dying) behavior is restored. Machine/driver unchanged between control and tip runs (no reboots, idle GPU 39 °C).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7200642979 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7200642979). Originally posted by [Tanju42](https://github.com/Tanju42) on 2026-11-26T18:35:53Z. --- Regression report on latest tip — failure mode changed away from the pool-dry family (2026-11-26, same laptop as my previous posts: RTX 5060 Laptop 8 GB, 31 GB RAM, retail 1.0.2.1, story-save start, `VICTORY_POOL_SCALE=4` + `VICTORY_WATCH`, diagnostics feature). **Control (19:09→19:12 local), tree `e4245f3` + the 5 picks from `diag/pool-scale` (local HEAD `6a0f913`):** death frame **4080**, pool **623916448/624951280** (99.8 %), `INSTANCE_LIST: 45000/45000` — the familiar pool-dry mode, full debug dump. **Tip `52ac4ec0` + the same 5 picks (local HEAD `0ce48de`)** — i.e. with tonight's batch #1324 (dynamic descriptor slots go back only to the heap that took them), #1336 (pin the texture a placed view aliases), #1353 (finish pipeline queue entry on build panic), plus the shader-cache and split-submission descriptor-table commits: | run | wall clock | frames | alive | `INSTANCE_LIST` | pool-dry? | |---|---|---|---|---|---| | 1 | 19:23:47→19:26:55 | **2859** | 2:31 | 13792/45000 | no | | 2 | 19:29:24→19:32:05 | **2702** | 2:09 | 13769/45000 | no | - Hook banner active in both: `VICTORY_POOL_SCALE: pool sizes hooked factor=4 sites=632 patched=632 hashes=Some([1410457948, 195594500, 3240925316])` - Debug dumps are **complete** (`END OF DEBUG INFO`) but shaped differently: the `Pool used/total` byte line no longer appears in the dump; `NOTINPOOLS: 0/0`; `INSTANCE_LIST` only ~31 % full — this is **not** the pool running dry. - 30–60 s before the end, these warnings fire in stderr (both runs; previous run's stderr was overwritten before I could diff against the control, so treating novelty as unconfirmed): - `victory_gpu::draw: textures picked by index: the card has no room for more; they wa…` - `victory_gpu::draw: a texture picked by index changed after its upload with nothing …` (×2) - `victory_gpu::draw: a shader takes the address of a buffer view that is not there: i…` - `victory_gpu::descriptor::host: placed unordered texture view not mirrored dimen…` - End is the usual title breakpad upload. Summary: 2/2 early deaths at ~2.0–2.5 min / ~2.7–2.9k frames on the new tip, vs. 4080 frames ~40 min earlier on the control tree. The pool-dry signature is gone and replaced by an indexed/placed-texture / descriptor failure ~2.5 min in — the warning texts line up suspiciously well with #1324/#1336 which landed in this exact batch. I have not bisected locally (that would be 5 runs for 5 commits) — happy to run a bisect on request. Tree pinned back to `e4245f3` meanwhile, where the old (known, slower-dying) behavior is restored. Machine/driver unchanged between control and tip runs (no reboots, idle GPU 39 °C).
Tanju42 commented 2026-11-26 18:59:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Tanju42 on 2026-11-26T18:59:03Z.


@lhnizdo ran your recipe as far as the diag env allows, plus the 5 you asked about — full table, tree 6a0f913 unchanged, story save, one run per config:

config frames alive POOLS at stop (relevant lines)
scale 1 (baseline) 1790 ~4 min (old constant fill)
scale 2 all three (your fallback) 2016 2:13 BUILDING: 7588/45000, INSTANCE_LIST: 13747/45000
scale 3, only INSTANCE_LIST+list-nodes (VICTORY_POOL_SCALE_HASHES=0x0BA88904,0xC12C9884, building left at console) 2779 2:30 BUILDING: 7588/22500, INSTANCE_LIST: 13751/45000
scale 3 all three 3100 ~3.5 min (from earlier post)
scale 4 all three 4080 5:30 INSTANCE_LIST: 45000/45000, fill 623916448/624951280
scale 5 all three 850 0:45 whole POOLS section 0/0
scale 6 all three 653 0:50 whole POOLS section 0/0

Scale 5 fits your front-loading model exactly — dies in load, POOLS never report.

Mixed per-pool factors aren't expressible in the diag env (one global factor; the hashes var only selects pools — I read runtime.rs), so the run above with building unscaled is the closest to your building×2/instance×3/list×3. It beat scale-2-all by ~760 frames.

Three things the dumps showed that maybe change the model:

  1. INSTANCE_LIST total reads 45000 at EVERY factor ≥2 (×2 → 13747/45000, ×3 → 13751/45000, ×4 → 45000/45000), while BUILDING tracks the factor honestly (22500 unscaled → 45000 at ×2). POOL_MOST in your code is 0x1FFF0, so this is not your clamp — the title's own size lookup for that pool seems to cap at 45000 regardless of what scaled_pool_size returns. If so, factor >2 buys INSTANCE_LIST nothing, and every factor ≥4 eventually lands on that clamp — which is exactly where the 4080 run died (45000/45000). Is that a known title-side cap with its own patch site?
  2. BUILDING usage on this save is 7588 in every run, at every factor (watch live 0x1da4 identical at ×2 and ×4) — your ×1.27 cutscene peak matches; here it needs nothing, so scaling it mostly spends ceiling bytes. Yet scale-3-all (building ×3 wasted) beat my building-unscaled ×3 run (3100 vs 2779) — either run variance, or building matters somewhere between dumps. One repeat of scale-3-all settles it if you want that data point.
  3. Current champion on this machine is still scale 4 all three, 4080 frames — pinned in the desktop shortcut, laptop idle.

NO_ASSERT untouched per your call. Tree stays 6a0f913 until you or upstream move it; the 52ac4ec0 regression report above stands (not retested against pools). Say which single run you want next and I will do exactly that one.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7201068091 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7201068091). Originally posted by [Tanju42](https://github.com/Tanju42) on 2026-11-26T18:59:03Z. --- @lhnizdo ran your recipe as far as the diag env allows, plus the 5 you asked about — full table, tree `6a0f913` unchanged, story save, one run per config: | config | frames | alive | POOLS at stop (relevant lines) | |---|---|---|---| | scale 1 (baseline) | 1790 | ~4 min | (old constant fill) | | **scale 2 all three** (your fallback) | 2016 | 2:13 | `BUILDING: 7588/45000`, `INSTANCE_LIST: 13747/45000` | | **scale 3, only `INSTANCE_LIST`+list-nodes** (`VICTORY_POOL_SCALE_HASHES=0x0BA88904,0xC12C9884`, building left at console) | 2779 | 2:30 | `BUILDING: 7588/22500`, `INSTANCE_LIST: 13751/45000` | | scale 3 all three | 3100 | ~3.5 min | (from earlier post) | | scale 4 all three | **4080** | 5:30 | `INSTANCE_LIST: 45000/45000`, fill 623916448/624951280 | | scale 5 all three | 850 | 0:45 | whole POOLS section 0/0 | | scale 6 all three | 653 | 0:50 | whole POOLS section 0/0 | Scale 5 fits your front-loading model exactly — dies in load, POOLS never report. Mixed per-pool factors aren't expressible in the diag env (one global factor; the hashes var only selects pools — I read `runtime.rs`), so the run above with building unscaled is the closest to your building×2/instance×3/list×3. It beat scale-2-all by ~760 frames. Three things the dumps showed that maybe change the model: 1. **`INSTANCE_LIST` total reads 45000 at EVERY factor ≥2** (×2 → 13747/45000, ×3 → 13751/45000, ×4 → 45000/45000), while `BUILDING` tracks the factor honestly (22500 unscaled → 45000 at ×2). `POOL_MOST` in your code is 0x1FFF0, so this is not your clamp — the title's own size lookup for that pool seems to cap at 45000 regardless of what `scaled_pool_size` returns. If so, factor >2 buys `INSTANCE_LIST` nothing, and every factor ≥4 eventually lands on that clamp — which is exactly where the 4080 run died (`45000/45000`). Is that a known title-side cap with its own patch site? 2. **`BUILDING` usage on this save is 7588 in every run**, at every factor (watch live `0x1da4` identical at ×2 and ×4) — your ×1.27 cutscene peak matches; here it needs nothing, so scaling it mostly spends ceiling bytes. Yet scale-3-all (building ×3 wasted) beat my building-unscaled ×3 run (3100 vs 2779) — either run variance, or building matters somewhere between dumps. One repeat of scale-3-all settles it if you want that data point. 3. Current champion on this machine is still **scale 4 all three, 4080 frames** — pinned in the desktop shortcut, laptop idle. NO_ASSERT untouched per your call. Tree stays `6a0f913` until you or upstream move it; the 52ac4ec0 regression report above stands (not retested against pools). Say which single run you want next and I will do exactly that one.
lhnizdo commented 2026-11-26 19:14:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by lhnizdo on 2026-11-26T19:14:33Z.


@Tanju42, thank you, that table answers a lot.

On point 1: the hook doesn't clamp at 45,000 (POOL_MOST is 0x1FFF0, as you found), so the 45,000 comes from somewhere else. I see two explanations and can't tell them apart from my side yet:

  • the pool the dump calls INSTANCE_LIST isn't 0x0BA88904, or it's created at a call site the hook doesn't match (the hook only patches a size lookup that is followed by the pool initialiser within 0x60 bytes), so it stays at the title's own size;
  • or the title sizes it once more, after our lookup.

The single run that separates them: VICTORY_POOL_SCALE=2 with VICTORY_POOL_SCALE_HASHES=0x0BA88904 (only that pool scaled), and the INSTANCE_LIST line at the stop. If your scale-1 dump is still around, its INSTANCE_LIST line helps too, with no extra run. If it still reads x/45000 (and 45,000 is also the unscaled size), the hook isn't reaching that pool and I'll find its real creation site. If it reads 90000 or another multiple, the hash is right and something caps it later.

On point 2: agreed, building at 7,588 everywhere means scaling it only spends ceiling bytes on your save. The 3100 against 2779 frames is within the run-to-run spread I see here, so I wouldn't read much into it.

AI-assisted (Claude Code). No game data.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7201355218 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7201355218). Originally posted by [lhnizdo](https://github.com/lhnizdo) on 2026-11-26T19:14:33Z. --- @Tanju42, thank you, that table answers a lot. On point 1: the hook doesn't clamp at 45,000 (`POOL_MOST` is 0x1FFF0, as you found), so the 45,000 comes from somewhere else. I see two explanations and can't tell them apart from my side yet: - the pool the dump calls `INSTANCE_LIST` isn't `0x0BA88904`, or it's created at a call site the hook doesn't match (the hook only patches a size lookup that is followed by the pool initialiser within 0x60 bytes), so it stays at the title's own size; - or the title sizes it once more, after our lookup. The single run that separates them: **`VICTORY_POOL_SCALE=2` with `VICTORY_POOL_SCALE_HASHES=0x0BA88904`** (only that pool scaled), and the `INSTANCE_LIST` line at the stop. If your scale-1 dump is still around, its `INSTANCE_LIST` line helps too, with no extra run. If it still reads x/45000 (and 45,000 is also the unscaled size), the hook isn't reaching that pool and I'll find its real creation site. If it reads 90000 or another multiple, the hash is right and something caps it later. On point 2: agreed, `building` at 7,588 everywhere means scaling it only spends ceiling bytes on your save. The 3100 against 2779 frames is within the run-to-run spread I see here, so I wouldn't read much into it. AI-assisted (Claude Code). No game data.
Tanju42 commented 2026-11-26 21:15:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Tanju42 on 2026-11-26T21:15:14Z.


Addendum to my regression report above — third run on 52ac4ec0+picks, this time manual play (human input, not scripted): died at frame 1838, 1:47. So 3/3 runs on this tree die between 1:47 and 2:31; the two automated and the manual one show identical last warnings (texture picked by index changed, buffer view that is not there, constant buffer not 256-byte aligned).

This run finally ran under my 5-second host telemetry, and the death shape is now measurable:

  • at death: victory working set 19,006 MB, system free RAM 67 MB, commit 42.3 GB against a 155 GB limit — not commit exhaustion; physical 31 GB RAM simply filled
  • process then hung as a 0 % CPU zombie with 17.7 GB resident for well over a minute after the debug dump was written
  • INSTANCE_LIST 13762/45000 (31 %), BUILDING 7991/90000, no pool anywhere near full — pool state is irrelevant to this death class
  • TileHeap: used (3100Mb) vs 2457–2712 Mb on the e4245f3 control at similar frames — matches "the card has no room for more" and texture spill landing in system RAM

So on this machine the new failure looks memory-growing (WS ~19 GB in under 2 min, still climbing) ending in physical-RAM exhaustion / hang, not pool-dry. Happy to capture another trace with any env you want armed.

Bonus from the same crash dump, answering clamp sidequest above: on THIS tree the dump shows BUILDING: 7991/90000 — honestly scaled (22500×4) — while INSTANCE_LIST still reads total 45000. So the dump format does render scaled totals; the 45000 on INSTANCE_LIST is a real title-side ceiling the hook's return doesn't override. Factor >2 buys that pool nothing on this title build.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7203542775 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7203542775). Originally posted by [Tanju42](https://github.com/Tanju42) on 2026-11-26T21:15:14Z. --- Addendum to my regression report above — third run on `52ac4ec0`+picks, this time **manual play (human input, not scripted)**: died at frame **1838**, 1:47. So 3/3 runs on this tree die between 1:47 and 2:31; the two automated and the manual one show identical last warnings (`texture picked by index changed`, `buffer view that is not there`, `constant buffer not 256-byte aligned`). This run finally ran under my 5-second host telemetry, and the death shape is now measurable: - at death: victory working set **19,006 MB**, system free RAM **67 MB**, commit **42.3 GB** against a 155 GB limit — **not** commit exhaustion; physical 31 GB RAM simply filled - process then hung as a 0 % CPU zombie with 17.7 GB resident for well over a minute after the debug dump was written - `INSTANCE_LIST` 13762/45000 (31 %), `BUILDING` 7991/90000, no pool anywhere near full — pool state is irrelevant to this death class - `TileHeap: used (3100Mb)` vs 2457–2712 Mb on the e4245f3 control at similar frames — matches "the card has no room for more" and texture spill landing in system RAM So on this machine the new failure looks memory-growing (WS ~19 GB in under 2 min, still climbing) ending in physical-RAM exhaustion / hang, not pool-dry. Happy to capture another trace with any env you want armed. Bonus from the same crash dump, answering clamp sidequest above: on THIS tree the dump shows `BUILDING: 7991/90000` — honestly scaled (22500×4) — while `INSTANCE_LIST` still reads total **45000**. So the dump format does render scaled totals; the 45000 on `INSTANCE_LIST` is a real title-side ceiling the hook's return doesn't override. Factor >2 buys that pool nothing on this title build.
Tanju42 commented 2026-11-26 21:51:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Tanju42 on 2026-11-26T21:51:37Z.


Root-cause follow-up on the 52ac4ec0 failure-mode change above. I took the effective diff (e4245f3..52ac4ec0, 5 commits, ~160 insertions) to two large-context models for an independent review (NVIDIA NIM: Nemotron-3-Ultra-550B and Nemotron-3.5-Super-120B), then verified every suspicion they raised against the actual source. AI-assisted analysis, every claim below checked by hand against the tree.

Both models independently ranked the resource.rs alias_of -> Held pin (#1336, a463dcb) first. Two of their sub-hypotheses I could rule out directly: the pin does not leak (exactly one production call site, draw.rs readable at 52ac4ec, drops Held inside is_some_and, unwind included), and the submit_split tables_done call mirrors the existing submit_cut placement 1:1 (queue.rs:307 vs :391). What survives verification is the third-order effect, and it explains both memory curves:

  • the texture::alias THROUGH mechanism is unchanged and exists in both trees: for a placed view readable in another format, it inserts Arc<Through> into a global map keyed by the placed view, holding a uav_buffer of the texture's full copy footprint
  • eviction happens only via texture::forget(resource) — when the title releases that exact view (there is no idle sweep like STAGING has)
  • on the old tree the alias copy usually failed early (source handle dead/raw -> host_resource returns None -> alias() returns false before the THROUGH insert), so the path was effectively dead on this title
  • with the #1336 pin (add_ref_alive), the same copies now succeed — and readable() runs per-draw from five descriptor sites. Every placed view that ever binds successfully now permanently reserves a footprint-sized buffer until the title releases that view

That matches the measurements exactly: tile heap at death 2457 -> 3100 Mb (footprint buffers eating tile heap), working set ~19 GB and "the card has no room for more; they wait for a free slot" storms (8 GB card full, copies spilling to host), death at 108-151 s with all pools near-empty — the pool-dry death is gone because the process now dies of memory growth long before pools fill.

Candidate directions (your call, you know the intent): (a) THROUGH deserves an idle sweep like the STAGING retain sweep — footprint buffers held by no live use should age out; (b) alternatively the pin should live with the recorded copy — texture::alias taking the Held so successful alias copies are only valid for the copy's lifetime, which would make the current per-draw re-resolve fail again like before for stale views.

Also a correction to my own earlier post above: "memory roughly stable before death" on the control tree was an inference from the pool-dry death coming first, not a measured plateau — I started host-RAM telemetry on the control tree now and can bisect each of the five commits with one ~2 min run each, or arm a diag counter for THROUGH entries/buffers per run, whichever you want next.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7204131723 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7204131723). Originally posted by [Tanju42](https://github.com/Tanju42) on 2026-11-26T21:51:37Z. --- Root-cause follow-up on the `52ac4ec0` failure-mode change above. I took the effective diff (`e4245f3..52ac4ec0`, 5 commits, ~160 insertions) to two large-context models for an independent review (NVIDIA NIM: Nemotron-3-Ultra-550B and Nemotron-3.5-Super-120B), then verified every suspicion they raised against the actual source. AI-assisted analysis, every claim below checked by hand against the tree. Both models independently ranked the `resource.rs` `alias_of` -> `Held` pin (#1336, `a463dcb`) first. Two of their sub-hypotheses I could **rule out** directly: the pin does not leak (exactly one production call site, `draw.rs` `readable` at 52ac4ec, drops `Held` inside `is_some_and`, unwind included), and the `submit_split` `tables_done` call mirrors the existing `submit_cut` placement 1:1 (queue.rs:307 vs :391). What survives verification is the third-order effect, and it explains both memory curves: - the `texture::alias` THROUGH mechanism is unchanged and exists in both trees: for a placed view readable in another format, it inserts `Arc<Through>` into a global map keyed by the **placed view**, holding a `uav_buffer` of the texture's full copy footprint - eviction happens only via `texture::forget(resource)` — when the title releases that exact view (there is no idle sweep like STAGING has) - **on the old tree the alias copy usually failed early** (source handle dead/raw -> `host_resource` returns None -> `alias()` returns false before the THROUGH insert), so the path was effectively dead on this title - **with the #1336 pin (`add_ref_alive`), the same copies now succeed** — and `readable()` runs per-draw from five descriptor sites. Every placed view that ever binds successfully now permanently reserves a footprint-sized buffer until the title releases that view That matches the measurements exactly: tile heap at death 2457 -> 3100 Mb (footprint buffers eating tile heap), working set ~19 GB and "the card has no room for more; they wait for a free slot" storms (8 GB card full, copies spilling to host), death at 108-151 s with all pools near-empty — the pool-dry death is gone because the process now dies of memory growth long before pools fill. Candidate directions (your call, you know the intent): (a) THROUGH deserves an idle sweep like the STAGING `retain` sweep — footprint buffers held by no live use should age out; (b) alternatively the pin should live **with the recorded copy** — `texture::alias` taking the `Held` so successful alias copies are only valid for the copy's lifetime, which would make the current per-draw re-resolve fail again like before for stale views. Also a correction to my own earlier post above: "memory roughly stable before death" on the control tree was an inference from the pool-dry death coming first, not a measured plateau — I started host-RAM telemetry on the control tree now and can bisect each of the five commits with one ~2 min run each, or arm a diag counter for THROUGH entries/buffers per run, whichever you want next.
Tanju42 commented 2026-11-26 22:15:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Tanju42 on 2026-11-26T22:15:07Z.


Correction + hard data on my root-cause post above. I tested the THROUGH hypothesis directly on the 5c6983f tree (scale 4, same switch set) by disabling the alias path with the built-in VICTORY_ALIAS_COPY=0:

  • the memory growth did NOT stop — the fill continued the same way, and on this 31 GB laptop the run froze the whole OS (working set climbed past ~19 GB, free RAM single-digit MB, display black, kernel killed victory around 23:10 local and the desktop recovered on its own). This is the second freeze-inducing datapoint on the tip tree; both at WS ~19 GB.
  • so my THROUGH/alias theory above is wrong as the primary cause — please disregard that mechanism; the surviving facts are the death-class table and the 3/3 fill deaths between 108 s and 151 s, plus the observation that on a 31 GB machine these runs can take the OS with them (WS alone exceeded 19 GB twice; TileHeap 3100 Mb). Whatever grows, it is not gated by the alias copy path.

Since the fill rate here is enormous (~10 GB/min late-load) and the growth source is still unidentified from the outside: if anyone has a >64 GB host, one run of 52ac4ec0+picks with working-set logging every second would separate "unbounded leak" from "legitimately scaled but oversized on small-RAM laptops" quickly. I can't run that on this machine without freezing it.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7204504066 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7204504066). Originally posted by [Tanju42](https://github.com/Tanju42) on 2026-11-26T22:15:07Z. --- Correction + hard data on my root-cause post above. I tested the THROUGH hypothesis directly on the `5c6983f` tree (scale 4, same switch set) by disabling the alias path with the built-in `VICTORY_ALIAS_COPY=0`: - the memory growth did NOT stop — the fill continued the same way, and on this 31 GB laptop the run froze the whole OS (working set climbed past ~19 GB, free RAM single-digit MB, display black, kernel killed victory around 23:10 local and the desktop recovered on its own). This is the second freeze-inducing datapoint on the tip tree; both at WS ~19 GB. - so my THROUGH/alias theory above is **wrong as the primary cause** — please disregard that mechanism; the surviving facts are the death-class table and the 3/3 fill deaths between 108 s and 151 s, plus the observation that on a 31 GB machine these runs can take the OS with them (WS alone exceeded 19 GB twice; TileHeap 3100 Mb). Whatever grows, it is not gated by the alias copy path. Since the fill rate here is enormous (~10 GB/min late-load) and the growth source is still unidentified from the outside: if anyone has a >64 GB host, one run of `52ac4ec0`+picks with working-set logging every second would separate "unbounded leak" from "legitimately scaled but oversized on small-RAM laptops" quickly. I can't run that on this machine without freezing it.
Tanju42 commented 2026-11-27 18:17:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Tanju42 on 2026-11-27T18:17:59Z.


Correction to the pool-scale discussion, from a static read of the hook source (lhnizdo/VIctory@diag/pool-scale, crates/victory-hle/src/runtime.rs) — it answers my question about the fixed INSTANCE_LIST 45000 without any run (AI-assisted source read, verified against the file by me).

What the hook provably does:

  • It arms in set_main_image(base), before the title executes any code — so "created during boot" cannot explain a pool escaping it.
  • It patches only E8 rel32 direct calls to the one lookup RVA 0x50CEF40, and only call sites followed by a call to POOL_INIT 0x16CBE00 within the next 0x60 bytes. The factor multiplication happens in the runtime wrapper, keyed on the lookup's hash argument; clamp POOL_MOST=0x1FFF0 — confirming @lhnizdo's point that the hook cannot produce 45000.

Since the building pool tracks the factor byte-clean in the same runs, the scan itself works — yet INSTANCE_LIST sat at exactly 45000 at factor 2, 3 and 4. That means that pool's creation never goes through a patched call. Three concrete escape routes from the scan predicate, all statically checkable:

  1. init-before-lookup ordering, or the POOL_INIT call further than 0x60 bytes after the lookup call — the site fails the scan predicate;
  2. the creation calls the lookup indirectly (call [reg]/a thunk) — not an E8, invisible to the scan;
  3. a second copy or inlined variant of the size lookup at a different RVA — the scan compares the call target exactly against base+0x50CEF40, so calls to a copy are never found. Check: scan for the lookup's byte pattern instead of the call target and count call sites near POOL_INIT that the current scan misses.

And one suggestion that would make the sweep itself redundant: the wrapper bumps POOLS_SCALED whenever a listed hash passes through it, but nothing logs which hash hit. A per-hash hits counter on the VICTORY_WATCH line (or printed into the STOP dump) would settle this in one ordinary run: 0x0BA88904 hits=0 with the dump still at 45000 → the creation site is not patched (routes 1–3 above); hits>0 → the pool's slot count is set from somewhere other than this lookup's return.

Meanwhile I am running @lhnizdo's decision test on the 5060 Laptop 8 GB now: known-good tree (e4245f3 + the five diag picks), VICTORY_POOL_SCALE=2 with VICTORY_POOL_SCALE_HASHES=0x0BA88904 (exactly the fixed pool), single run with a RAM guard in the foreground. Will report the STOP pool totals: if they stay 45000 the hook misses that pool's site; if a multiple appears, something else caps it.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7225343095 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7225343095). Originally posted by [Tanju42](https://github.com/Tanju42) on 2026-11-27T18:17:59Z. --- Correction to the pool-scale discussion, from a static read of the hook source (`lhnizdo/VIctory@diag/pool-scale`, `crates/victory-hle/src/runtime.rs`) — it answers my question about the fixed `INSTANCE_LIST 45000` without any run (AI-assisted source read, verified against the file by me). What the hook provably does: - It arms in `set_main_image(base)`, before the title executes any code — so "created during boot" cannot explain a pool escaping it. - It patches only `E8 rel32` direct calls to the one lookup RVA `0x50CEF40`, and only call sites followed by a call to `POOL_INIT 0x16CBE00` within the next 0x60 bytes. The factor multiplication happens in the runtime wrapper, keyed on the lookup's hash argument; clamp `POOL_MOST=0x1FFF0` — confirming @lhnizdo's point that the hook cannot produce 45000. Since the `building` pool tracks the factor byte-clean in the same runs, the scan itself works — yet `INSTANCE_LIST` sat at exactly 45000 at factor 2, 3 and 4. That means that pool's creation never goes through a patched call. Three concrete escape routes from the scan predicate, all statically checkable: 1. init-before-lookup ordering, or the `POOL_INIT` call further than 0x60 bytes after the lookup call — the site fails the scan predicate; 2. the creation calls the lookup indirectly (`call [reg]`/a thunk) — not an `E8`, invisible to the scan; 3. a second copy or inlined variant of the size lookup at a different RVA — the scan compares the call target exactly against `base+0x50CEF40`, so calls to a copy are never found. Check: scan for the lookup's byte pattern instead of the call target and count call sites near `POOL_INIT` that the current scan misses. And one suggestion that would make the sweep itself redundant: the wrapper bumps `POOLS_SCALED` whenever a listed hash passes through it, but nothing logs *which* hash hit. A per-hash hits counter on the `VICTORY_WATCH` line (or printed into the STOP dump) would settle this in one ordinary run: `0x0BA88904` hits=0 with the dump still at 45000 → the creation site is not patched (routes 1–3 above); hits>0 → the pool's slot count is set from somewhere other than this lookup's return. Meanwhile I am running @lhnizdo's decision test on the 5060 Laptop 8 GB now: known-good tree (`e4245f3` + the five diag picks), `VICTORY_POOL_SCALE=2` with `VICTORY_POOL_SCALE_HASHES=0x0BA88904` (exactly the fixed pool), single run with a RAM guard in the foreground. Will report the STOP pool totals: if they stay 45000 the hook misses that pool's site; if a multiple appears, something else caps it.
Tanju42 commented 2026-11-27 18:25:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Tanju42 on 2026-11-27T18:25:20Z.


Decision-test result from the 5060 Laptop 8 GB / 31 GB RAM class: the test is not reachable on this hardware — measured, not guessed (vicsht17: known-good tree 6a0f913 = e4245f3 + the five diag picks, VICTORY_POOL_SCALE=2 + VICTORY_POOL_SCALE_HASHES=0x0BA88904 only, RAM guard as a 5 s foreground loop).

Hook live as expected: factor=2 sites=632 patched=632 hashes=Some([195594500]).
The world was reached and fast: long frame 2736 at 118.5 s with the usual frame 33 ms — so the run was in-game, healthy, at ~30 fps.
Then the same fill curve as on the tip tree, which is itself the finding: working set 2.17 GB at t+10 s → 7.59 at t+60 s → 12.13 at t+110 s → 18.22 GB at t+125 s, when my guard killed it (GUARD KILL at ws=18.22 GB). No pool row and no title STOP line were ever reached — at this fill rate (~130 MB/s average) the host's memory wall always arrives before the byte-pool death that produces the dump the test needs to read. On the previous SCALE=3/4 runs on this machine the title itself died at ~108–151 s (pool 99.8 %), inside the same window, so the dump we saw there came from the title dying first; with factor 2 on one pool only, the byte-pool death would land ~10 min in, which a 31 GB host cannot survive.

Two consequences:

  1. @lhnizdo the decision test (read the STOP INSTANCE_LIST total under SCALE=2 + SCALE_HASHES=0x0BA88904) needs one of your machines — it is ~15 s of build and one run there, and unreachable on every host in my class.
  2. And the per-hash hits counter from my comment above would settle the same question as a side effect of any ordinary run, at any scale factor, without needing the title to die first — stronger argument now that the fill makes the dump timing uncontrollable on small hosts.

For the fill mystery (still unidentified per my 26.11 correction): this narrows it again — the fill reproduced on the known-good pre-batch tree with only the diag hook + one pool scaled, so the growth rate here is not created by the #1324/#1336/#1353 batch either. Curve for the table: t+10 s 2.17 GB, t+20 s 4.71, t+30 s 5.83, t+60 s 7.13→7.59, t+110 s 12.13, t+115 s 13.53, t+125 s 18.22, guard kill; process commit at kill 18623 MB, machine free 3185 MB. One operational note for this class: after a kill at 18.2 GB the desktop shell needed a restart (black screen with cursor, DWM alive) — the 16–19 GB band is where this machine stops being safe.

I'll hold further laptop runs until the counter lands or a run plan exists that beats the fill.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7225471363 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7225471363). Originally posted by [Tanju42](https://github.com/Tanju42) on 2026-11-27T18:25:20Z. --- Decision-test result from the 5060 Laptop 8 GB / 31 GB RAM class: **the test is not reachable on this hardware** — measured, not guessed (vicsht17: known-good tree `6a0f913` = `e4245f3` + the five diag picks, `VICTORY_POOL_SCALE=2` + `VICTORY_POOL_SCALE_HASHES=0x0BA88904` only, RAM guard as a 5 s foreground loop). Hook live as expected: `factor=2 sites=632 patched=632 hashes=Some([195594500])`. The world was reached and fast: long frame 2736 at 118.5 s with the usual frame 33 ms — so the run was in-game, healthy, at ~30 fps. Then the same fill curve as on the tip tree, which is itself the finding: working set 2.17 GB at t+10 s → 7.59 at t+60 s → 12.13 at t+110 s → 18.22 GB at t+125 s, when my guard killed it (`GUARD KILL at ws=18.22 GB`). No pool row and no title STOP line were ever reached — at this fill rate (~130 MB/s average) the host's memory wall always arrives before the byte-pool death that produces the dump the test needs to read. On the previous SCALE=3/4 runs on this machine the title itself died at ~108–151 s (pool 99.8 %), inside the same window, so the dump we saw there came from the title dying first; with factor 2 on one pool only, the byte-pool death would land ~10 min in, which a 31 GB host cannot survive. Two consequences: 1. `@lhnizdo` the decision test (read the STOP `INSTANCE_LIST` total under `SCALE=2 + SCALE_HASHES=0x0BA88904`) needs one of your machines — it is ~15 s of build and one run there, and unreachable on every host in my class. 2. And the per-hash hits counter from my comment above would settle the same question as a side effect of any ordinary run, at any scale factor, without needing the title to die first — stronger argument now that the fill makes the dump timing uncontrollable on small hosts. For the fill mystery (still unidentified per my 26.11 correction): this narrows it again — the fill reproduced on the known-good pre-batch tree with only the diag hook + one pool scaled, so the growth rate here is not created by the `#1324/#1336/#1353` batch either. Curve for the table: t+10 s 2.17 GB, t+20 s 4.71, t+30 s 5.83, t+60 s 7.13→7.59, t+110 s 12.13, t+115 s 13.53, t+125 s 18.22, guard kill; process commit at kill 18623 MB, machine free 3185 MB. One operational note for this class: after a kill at 18.2 GB the desktop shell needed a restart (black screen with cursor, DWM alive) — the 16–19 GB band is where this machine stops being safe. I'll hold further laptop runs until the counter lands or a run plan exists that beats the fill.
Tanju42 commented 2026-11-27 19:03:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Tanju42 on 2026-11-27T19:03:38Z.


31 GB RAM hosts can enter the world now — texture-stream pacing is the missing piece (measured tonight on the 5060 Laptop 8 GB / 31 GB, NVIDIA-line tip f299fba, series-s, single controlled run with a 2 s watchdog that only fires below 1 GB free physical).

Earlier tonight I reported the world-entry fill as a hard class wall (10.9→15.75 GB in 6 s on plain defaults, guard kill; 20 GB in ~2 min unthrottled). Then I paced the stream instead of fighting the fill and the wall moved away entirely. Recipe (all switches verified present in f299fba, English here, launcher defaults otherwise untouched):

  • VICTORY_LEVELS_ON_DEMAND=1
  • VICTORY_DSTORAGE_STAGING_MB=512
  • VICTORY_TEXTURE_STAGE_MS=100 (launcher ships 16)
  • VICTORY_TEXTURE_BUDGET_MB=4096
  • plus --console series-s

Result vs the same tree unthrottled (world-entry WS):

  • unthrottled: 20 GB within ~100 s of entry, still climbing, death — two independent tips (old fork e4245f3 and f299fba), series-x and series-s alike.
  • throttled: plateau 17.4 GB at t+3 min, then declining to 15.7 GB by t+6 min, 7.9 GB physical free and rising, run still alive past the point where every previous config had died. The decline matters: the eviction path now releases host copies, so the steady state is self-limiting rather than a race against the pagefile.

So the fill is stream-demand-limited, not leak-limited — consistent with my earlier correction that alias copies were not the primary cause. On 8 GB VRAM the plateau costs framerate (0.4 fps, 4400 draws/frame, 2.5 s GPU lists — the card is texture-thrashing regardless), so this is "the world stays up on small hosts", not "playable on small hosts". Whether pacing the same way buys the bigger machines anything (e.g. keeping host-copy headroom during long sessions instead of only surviving short ones) is for the hardware that can measure fps and a 30 min session at once.

Watchdog note for testers on small hosts: kill the title child process too (taskkill /f /im by image name, not the launcher's PID) — a surviving child at 18 GB was the only freeze tonight; watchdog at <1 GB free physical never fired once the stream was paced.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7226147531 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7226147531). Originally posted by [Tanju42](https://github.com/Tanju42) on 2026-11-27T19:03:38Z. --- **31 GB RAM hosts can enter the world now — texture-stream pacing is the missing piece** (measured tonight on the 5060 Laptop 8 GB / 31 GB, NVIDIA-line tip `f299fba`, series-s, single controlled run with a 2 s watchdog that only fires below 1 GB free physical). Earlier tonight I reported the world-entry fill as a hard class wall (10.9→15.75 GB in 6 s on plain defaults, guard kill; 20 GB in ~2 min unthrottled). Then I paced the stream instead of fighting the fill and the wall moved away entirely. Recipe (all switches verified present in `f299fba`, English here, launcher defaults otherwise untouched): - `VICTORY_LEVELS_ON_DEMAND=1` - `VICTORY_DSTORAGE_STAGING_MB=512` - `VICTORY_TEXTURE_STAGE_MS=100` (launcher ships 16) - `VICTORY_TEXTURE_BUDGET_MB=4096` - plus `--console series-s` Result vs the same tree unthrottled (world-entry WS): - unthrottled: 20 GB within ~100 s of entry, still climbing, death — two independent tips (old fork `e4245f3` and `f299fba`), series-x and series-s alike. - throttled: plateau 17.4 GB at t+3 min, then **declining** to 15.7 GB by t+6 min, 7.9 GB physical free and rising, run still alive past the point where every previous config had died. The decline matters: the eviction path now releases host copies, so the steady state is self-limiting rather than a race against the pagefile. So the fill is stream-demand-limited, not leak-limited — consistent with my earlier correction that alias copies were not the primary cause. On 8 GB VRAM the plateau costs framerate (0.4 fps, 4400 draws/frame, 2.5 s GPU lists — the card is texture-thrashing regardless), so this is "the world stays up on small hosts", not "playable on small hosts". Whether pacing the same way buys the bigger machines anything (e.g. keeping host-copy headroom during long sessions instead of only surviving short ones) is for the hardware that can measure fps and a 30 min session at once. Watchdog note for testers on small hosts: kill the **title child process too** (`taskkill /f /im` by image name, not the launcher's PID) — a surviving child at 18 GB was the only freeze tonight; watchdog at <1 GB free physical never fired once the stream was paced.
humsterbumster commented 2026-11-27 20:08:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by humsterbumster on 2026-11-27T20:08:58Z.


Linux + RTX 5090: same stop, and three arms that do not move it

Adding a cross-platform data point, because every report so far is Windows or a low-VRAM card. This is a 32 GB card on Linux, so it is not memory pressure.

Setup

  • Arch, kernel 7.3.5, NVIDIA RTX 5090 32 GB, driver 620.73.04, 14 cores, 31 GB RAM, cgroup 28 GiB.
  • Wine from GE-Proton11-14 (wine-11.0), vkd3d-proton from Proton Experimental, WINEFSYNC=1, VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains, Xvfb X server.
  • Tree: trustno1-coder/VIctory-NVIDIA 29d8dbf (pristine) + #2143 (a program's constant table starts after its instructions, ported by hand) + #120 (empty ID3D12PipelineLibrary asked for with a null blob; without it vkd3d refuses the zero-length non-null blob, so every start logged no host pipeline library: pipelines are not kept). No skip/deny/wave/switch patches otherwise.
  • Title 1.0.2.1 (7952987a, image b99f876b74d4a77f), Series X profile, --execute, title directory untouched/read-only.
  • Before #2143 every run lost the device at world entry (0x887A0005, vkd3d VK_ERROR_DEVICE_LOST). After it, the intro prestream renders (city at night, opening credits) at 0.2–0.9 fps.

The stop is this issue, byte for byte

0x80000003 at victory-image-b99f876b74d4a77f.dll+0x5149aec
#1 +0xa5db22  #2 +0x5453ac7  #3 +0x23d0f9a  #4 +0x23d1211  #5 +0x257035e
#6 +0x221c29c  #7 +0x2215eca  #8 KERNEL32+0x11649

Title's own report: INSTANCE_LIST 45000/45000 (exactly full), BUILDING 21,256–22,438 / 22,500, GRASS_INSTANCE_LIST 5,396–6,456/9,000, TileHeap 4,654–4,740 of 6,236 MB, SRL fbk_stry000_FBK_STRY000_INTRO, State Prestream, Paused: Yes, game frames 1,383–1,439, Unsignaled CrossQueueBarrier also present.

Arms, one variable each, same save/prefix

arm stop frame frame time draws/frame result
baseline, waits 0 1,391 5.8–6.0 s 1,262–1,425 stop
VICTORY_QUEUE_WAIT=0 1,439 3.1–5.8 s 727–791 stop
VICTORY_PIPELINE_WAIT_MS=2000, VICTORY_SCREEN_WAIT_MS=2000 1,416 1.09–3.1 s 3,278 stop
VICTORY_BVH_BUILDER=1 1,383 5.0 s 1,700 stop

So on this box:

  • queue ordering (WAIT=0) changes nothing;
  • dropping zero draws for pipelines (waits 2 s) triples the draws that run and takes the frame to 0.9 fps, and the stop still comes at ~1,400 frames;
  • running the 304 per-frame ray-tracing dispatches (BVH_BUILDER=1) changes nothing either.

Frame time varies 5× and the stop frame does not move, so on this machine it is load-progress-bound, not time- or leak-rate-bound.

Linux-specific note that cost me a day: with #120 the library object is created and loaded (host pipeline library loaded bytes=117368 mapped=true), but every save logs host pipeline library saved bytes=0 early=1725 .... vkd3d-proton accepts the library but serialises nothing, so pipelines are rebuilt every launch regardless. victory warm also reported 83560 made ... 83560 have no host pipeline (matching Vice-Tay#188) unless the full run environment is given, and then still benefits only the driver cache, not the library.

Next arm is the non-visual speed set (VICTORY_LATE_WAIT=3, VICTORY_WIDE_BACK=1, VICTORY_CARD_BUFFERS_*) that took a 3060 box to 453 ms in fxceless#57. I will report the outcome either way.

No game data attached; log lines only.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7227222212 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7227222212). Originally posted by [humsterbumster](https://github.com/humsterbumster) on 2026-11-27T20:08:58Z. --- ### Linux + RTX 5090: same stop, and three arms that do not move it Adding a cross-platform data point, because every report so far is Windows or a low-VRAM card. This is a 32 GB card on Linux, so it is not memory pressure. **Setup** - Arch, kernel 7.3.5, NVIDIA RTX 5090 32 GB, driver **620.73.04**, 14 cores, 31 GB RAM, cgroup 28 GiB. - Wine from GE-Proton11-14 (`wine-11.0`), vkd3d-proton from Proton Experimental, `WINEFSYNC=1`, `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`, Xvfb X server. - Tree: `trustno1-coder/VIctory-NVIDIA` `29d8dbf` (pristine) + **#2143** (a program's constant table starts after its instructions, ported by hand) + **#120** (empty `ID3D12PipelineLibrary` asked for with a null blob; without it vkd3d refuses the zero-length non-null blob, so every start logged `no host pipeline library: pipelines are not kept`). No skip/deny/wave/switch patches otherwise. - Title `1.0.2.1` (`7952987a`, image `b99f876b74d4a77f`), Series X profile, `--execute`, title directory untouched/read-only. - Before #2143 every run lost the device at world entry (`0x887A0005`, vkd3d `VK_ERROR_DEVICE_LOST`). After it, the intro prestream renders (city at night, opening credits) at 0.2–0.9 fps. **The stop is this issue, byte for byte** ``` 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x5149aec #1 +0xa5db22 #2 +0x5453ac7 #3 +0x23d0f9a #4 +0x23d1211 #5 +0x257035e #6 +0x221c29c #7 +0x2215eca #8 KERNEL32+0x11649 ``` Title's own report: `INSTANCE_LIST 45000/45000` (exactly full), `BUILDING` **21,256–22,438 / 22,500**, `GRASS_INSTANCE_LIST` 5,396–6,456/9,000, `TileHeap` 4,654–4,740 of 6,236 MB, `SRL fbk_stry000_FBK_STRY000_INTRO`, `State Prestream`, `Paused: Yes`, game frames **1,383–1,439**, `Unsignaled CrossQueueBarrier` also present. **Arms, one variable each, same save/prefix** | arm | stop frame | frame time | draws/frame | result | |---|---|---|---|---| | baseline, waits 0 | 1,391 | 5.8–6.0 s | 1,262–1,425 | stop | | `VICTORY_QUEUE_WAIT=0` | 1,439 | 3.1–5.8 s | 727–791 | stop | | `VICTORY_PIPELINE_WAIT_MS=2000`, `VICTORY_SCREEN_WAIT_MS=2000` | 1,416 | 1.09–3.1 s | **3,278** | stop | | `VICTORY_BVH_BUILDER=1` | 1,383 | 5.0 s | 1,700 | stop | So on this box: - queue ordering (`WAIT=0`) changes nothing; - dropping **zero** draws for pipelines (waits 2 s) triples the draws that run and takes the frame to 0.9 fps, and the stop still comes at ~1,400 frames; - running the 304 per-frame ray-tracing dispatches (`BVH_BUILDER=1`) changes nothing either. Frame time varies 5× and the stop frame does not move, so on this machine it is load-progress-bound, not time- or leak-rate-bound. **Linux-specific note that cost me a day:** with #120 the library object is created and loaded (`host pipeline library loaded bytes=117368 mapped=true`), but every save logs `host pipeline library saved bytes=0 early=1725 ...`. vkd3d-proton accepts the library but serialises nothing, so pipelines are rebuilt every launch regardless. `victory warm` also reported `83560 made ... 83560 have no host pipeline` (matching Vice-Tay#188) unless the full run environment is given, and then still benefits only the driver cache, not the library. Next arm is the non-visual speed set (`VICTORY_LATE_WAIT=3`, `VICTORY_WIDE_BACK=1`, `VICTORY_CARD_BUFFERS_*`) that took a 3060 box to 453 ms in fxceless#57. I will report the outcome either way. No game data attached; log lines only.
Tanju42 commented 2026-11-27 20:37:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Tanju42 on 2026-11-27T20:37:15Z.


Final nightly sweep from the 8 GB VRAM / 31 GB RAM class (laptop RTX 5060 8 GB, f299fba, series-s, diagnostics) - full config map, so nobody re-walks this:

Stability: solved. LEVELS_ON_DEMAND=1, DSTORAGE_STAGING_MB=512, TEXTURE_STAGE_MS=100, TEXTURE_BUDGET_MB=4096 + pacing guard: WS plateaus 15-17 GB and self-declines to ~10 GB, hours without crash. (Earlier post: https://github.com/Marvisak/VIctory/issues/698#issuecomment-7226147531)

FPS sweep, all at steady state in the world (draw counts 4.4k-6.3k):

lever tried result
TEXTURE_BUDGET_MB 2048 / 4096 / 6144 4096 best; 6144 = 0.6 fps, 890 MB texture uploads per frame, worse
CARD_ROOM_FOR_TARGETS_MB 3072 (default) / 1536 / 768 1536 best (909 -> 827 ms GPU); 768 no further gain
TEXTURE_ROOM_PERCENT 90 / 95 no gain, 95+thrash worse
DLSS quality / balanced / performance all equal within noise at world scale (pixels are not the bottleneck)
full foxhound cut set from play-foxhound.ps1 (incl. LEAVE_OUT decal+heathaze) copy-back 1830 -> 30-50 ms, real 0.4 -> 1.0 fps win
victory translate --jobs 10 pre-bake (3 min) 0 being made in world, compile stalls gone; kept
HAGS (HwSchMode=2, rebooted) + DLSS FG x4 switched ... times=4 code=0 ok, but 0 frames shown silently, no error, no fps change, VRAM extra cost (in use went 8496/7183 budget). dlssg evidently passes through below ~15 fps base

Best achievable on 8 GB: 1.0 +/- 0.3 fps stable. Root cause is flat: world texture working set measured at >10 GB (17067 waiting, 5851 passed over unmapped), 8 GB card = every draw misses. Matches the field: 12 GB card = ~17 fps, 24 GB = ~22 fps. The cliff is ~10-12 GB resident; no config gets under it.

Two documentation suggestions if useful: (1) README requirement line for the NVIDIA line could read "12 GB VRAM minimum for world entry, 16 GB+ recommended - 8 GB boards run ~1 fps stable (measured)"; (2) FG on sub-15-fps bases: set_options returns ok but dlssg silently inserts nothing - worth a note so people don't hunt a phantom config like I did tonight.

Thanks for the line - the pacing recipe alone already made 31 GB hosts enter the world crash-free, that is the real gift here.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7227681093 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7227681093). Originally posted by [Tanju42](https://github.com/Tanju42) on 2026-11-27T20:37:15Z. --- Final nightly sweep from the 8 GB VRAM / 31 GB RAM class (laptop RTX 5060 8 GB, `f299fba`, series-s, diagnostics) - full config map, so nobody re-walks this: **Stability**: solved. `LEVELS_ON_DEMAND=1`, `DSTORAGE_STAGING_MB=512`, `TEXTURE_STAGE_MS=100`, `TEXTURE_BUDGET_MB=4096` + pacing guard: WS plateaus 15-17 GB and self-declines to ~10 GB, hours without crash. (Earlier post: https://github.com/Marvisak/VIctory/issues/698#issuecomment-7226147531) **FPS sweep, all at steady state in the world (draw counts 4.4k-6.3k):** | lever tried | result | |---|---| | `TEXTURE_BUDGET_MB` 2048 / 4096 / 6144 | 4096 best; 6144 = 0.6 fps, 890 MB texture uploads per frame, worse | | `CARD_ROOM_FOR_TARGETS_MB` 3072 (default) / 1536 / 768 | 1536 best (909 -> 827 ms GPU); 768 no further gain | | `TEXTURE_ROOM_PERCENT` 90 / 95 | no gain, 95+thrash worse | | DLSS quality / balanced / performance | all equal within noise at world scale (pixels are not the bottleneck) | | full foxhound cut set from `play-foxhound.ps1` (incl. `LEAVE_OUT` decal+heathaze) | copy-back 1830 -> 30-50 ms, real 0.4 -> 1.0 fps win | | `victory translate --jobs 10` pre-bake (3 min) | `0 being made` in world, compile stalls gone; kept | | HAGS (HwSchMode=2, rebooted) + DLSS FG x4 | `switched ... times=4 code=0 ok`, but **0 frames shown** silently, no error, no fps change, VRAM extra cost (in use went 8496/7183 budget). dlssg evidently passes through below ~15 fps base | **Best achievable on 8 GB: 1.0 +/- 0.3 fps stable.** Root cause is flat: world texture working set measured at >10 GB (`17067 waiting, 5851 passed over unmapped`), 8 GB card = every draw misses. Matches the field: 12 GB card = ~17 fps, 24 GB = ~22 fps. The cliff is ~10-12 GB resident; no config gets under it. Two documentation suggestions if useful: (1) README requirement line for the NVIDIA line could read "12 GB VRAM minimum for world entry, 16 GB+ recommended - 8 GB boards run ~1 fps stable (measured)"; (2) FG on sub-15-fps bases: `set_options` returns ok but dlssg silently inserts nothing - worth a note so people don't hunt a phantom config like I did tonight. Thanks for the line - the pacing recipe alone already made 31 GB hosts enter the world crash-free, that is the real gift here.
humsterbumster commented 2026-11-27 20:42:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by humsterbumster on 2026-11-27T20:42:54Z.


Newest main (e69e39c) loses the device at the menu under Wine; 29d8dbf does not

Same machine and setup as my comment above (Linux, RTX 5090, GE/Proton Wine 11.0, vkd3d-proton, native d3dcompiler_47, Xvfb).

Three clean runs of e69e39c (built from source, --target x86_64-pc-windows-msvc, paced stream: VICTORY_LEVELS_ON_DEMAND=1 VICTORY_DSTORAGE_STAGING_MB=512 VICTORY_TEXTURE_STAGE_MS=100 VICTORY_TEXTURE_BUDGET_MB=4096, --console series-s, no other load on the box):

run switch outcome
tip1 defaults 0x887A0005 at 113 s, 35 submissions sent ahead (VICTORY_RELAY=1) of 182 lists
tip2 defaults 0x887A0005 at 86 s, 2 submissions sent ahead of 28 lists
tip3 VICTORY_RELAY=0 0x887A0005 at 125 s

All three die before the menu finishes loading, with vkWaitSemaphores … vr -4 / Failed to wait for Vulkan timeline semaphore.

Every one floods:

title said: FFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001 for 'FFX_FSR4_PASS_21' … 'FFX_FSR4_PASS_26', 'FFX_FSR4_SPD_AUTOEXPOSURE_PASS', 'FFX_FSR4_RCAS_PASS' -- falling back to NewBE

37 such lines in the relay-0 run. The same box on 29d8dbf + #2143 + #120 logs zero FSR4 lines, boots the menus and reaches the intro prestream (then stops at the +0x5149aec pool breakpoint described in my earlier comment).

Observation, not bisected: on 29d8dbf the loader refuses the FSR4 upscaler — a host DLL outside the host policy: refused dll="amd_fidelityfx_upscaler_xbox.dll" — and the title falls back to the cross-vendor FFX path. On e69e39c the title evidently gets the upscaler and takes the FSR4 model path, which cannot work anywhere except RDNA4: the DLL carries pipelines serialised for the RDNA4 ACO backend, DeserializeComputePipelineStateX returns E_NOTIMPL against an NVIDIA device, and the fallback ends in a device loss. (Relevant commit range: 10862a6 mentions "AMD FSR download"; e69e39c is the tip.)

Questions for the maintainers:

  1. Is the title reaching amd_fidelityfx_upscaler_xbox.dll on e69e39c deliberate? If yes, is there a switch to keep refusing it on hosts that are not RDNA4? FSR4 cannot run on NVIDIA or RDNA2 at all, so the refusal was the correct behaviour for us.
  2. If it is not deliberate, a bisect between 29d8dbf and e69e39c on a Wine host is cheap for me; say the word and I will narrow it to one commit.

No game data attached.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7227770476 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7227770476). Originally posted by [humsterbumster](https://github.com/humsterbumster) on 2026-11-27T20:42:54Z. --- ### Newest main (`e69e39c`) loses the device at the menu under Wine; `29d8dbf` does not Same machine and setup as my comment above (Linux, RTX 5090, GE/Proton Wine 11.0, vkd3d-proton, native `d3dcompiler_47`, Xvfb). Three clean runs of `e69e39c` (built from source, `--target x86_64-pc-windows-msvc`, paced stream: `VICTORY_LEVELS_ON_DEMAND=1 VICTORY_DSTORAGE_STAGING_MB=512 VICTORY_TEXTURE_STAGE_MS=100 VICTORY_TEXTURE_BUDGET_MB=4096`, `--console series-s`, no other load on the box): | run | switch | outcome | |---|---|---| | tip1 | defaults | `0x887A0005` at 113 s, `35 submissions sent ahead (VICTORY_RELAY=1) of 182 lists` | | tip2 | defaults | `0x887A0005` at 86 s, `2 submissions sent ahead of 28 lists` | | tip3 | `VICTORY_RELAY=0` | `0x887A0005` at 125 s | All three die **before the menu finishes loading**, with `vkWaitSemaphores … vr -4` / `Failed to wait for Vulkan timeline semaphore`. Every one floods: ``` title said: FFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001 for 'FFX_FSR4_PASS_21' … 'FFX_FSR4_PASS_26', 'FFX_FSR4_SPD_AUTOEXPOSURE_PASS', 'FFX_FSR4_RCAS_PASS' -- falling back to NewBE ``` 37 such lines in the relay-0 run. The same box on `29d8dbf` + #2143 + #120 logs **zero** FSR4 lines, boots the menus and reaches the intro prestream (then stops at the `+0x5149aec` pool breakpoint described in my earlier comment). **Observation, not bisected:** on `29d8dbf` the loader refuses the FSR4 upscaler — `a host DLL outside the host policy: refused dll="amd_fidelityfx_upscaler_xbox.dll"` — and the title falls back to the cross-vendor FFX path. On `e69e39c` the title evidently gets the upscaler and takes the FSR4 model path, which cannot work anywhere except RDNA4: the DLL carries pipelines serialised for the RDNA4 ACO backend, `DeserializeComputePipelineStateX` returns `E_NOTIMPL` against an NVIDIA device, and the fallback ends in a device loss. (Relevant commit range: `10862a6` mentions "AMD FSR download"; `e69e39c` is the tip.) Questions for the maintainers: 1. Is the title reaching `amd_fidelityfx_upscaler_xbox.dll` on `e69e39c` deliberate? If yes, is there a switch to keep refusing it on hosts that are not RDNA4? FSR4 cannot run on NVIDIA or RDNA2 at all, so the refusal was the correct behaviour for us. 2. If it is not deliberate, a bisect between `29d8dbf` and `e69e39c` on a Wine host is cheap for me; say the word and I will narrow it to one commit. No game data attached.
Tanju42 commented 2026-11-28 03:02:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Tanju42 on 2026-11-28T03:02:16Z.


Desktop-side measurement from this night (RTX 5090 32 GB, 9800X3D, 64 GB, Windows, official build b99f876b, series-x profile, DLSS quality, FG x4, 1440p) - two back-to-back world runs on the same machine, one of which accidentally produced a clean A/B on a compat issue:

Run A (F1 menu settings only), 3 min world: base fps median 17.0 (13.7-120), DLSS per frame: 1.00 upscalings, Frame Generation: 16 presents on, 64 frames shown (4x working), GPU 0.6-18 ms, preparing 33-47 ms, copies 15-24 ms (45-67 MB/frame). GPU mostly idle -> at these settings the ceiling is the host prepare/copy pipeline, not the GPU. Visible symptom: stutter around ~30 shown fps; the >50 ms prepare spikes exceed dlssg's interpolation window, so FG passes them through as hitches.

Run B (same settings + this block appended to victory-settings.txt):
THIN=1 JOIN_PARTS=8 RELAY_COPY=1 WIDE_BACK=1 SOFT_VIEWS=copies EARLY_DEPTH=1 TEXTURE_NO_WAIT=1 PRELUDE_UPLOADS=1 SHOW_NEW_LATER=1 QUEUE_HOST_TEXTURES=0
(the 8 GB laptop survival set from my earlier posts). Result on the 5090: banner still prints DLSS on, frame generation on, but the streamline state reads 0 presents with it on, 79 off, 0 frames shown and DLSS per frame: 0.00 upscalings, 0.00 failed, 0.00 left to FidelityFX - the whole DLSS/FG present path silently disengages while the banner says on. Base fps median dropped 17.0 -> 14.6 and stuttering got visibly worse. I had expected the copy cuts to help; they don't apply on this class and appear incompatible with the Streamline present path (my guess: FG needs the clean colour copy the cuts remove - 0 copies in front of the interface composite).

Two small asks from this: (1) if the present-time state ends up framegen_on=false / 0 upscalings while the plan said on, that mismatch seems worth one loud WARN at startup or first present - the banner + stats line saying different things cost me a whole test session to spot; (2) maybe note in the README that the low-VRAM copy-cut set is a sub-12 GB VRAM tool that conflicts with DLSS/FG, since people like me will paste configs between threads.

Also for the cold-start picture on a fresh cache (5090, everything warm except first ride on the new pipeline library): time buckets of mean fps over a 29 min run: 2.9, 2.2, 2.3, 2.2, 2.2, 2.5, 4.4, 4.3, 6.0, 17.7 - about 25 minutes at 2-4 fps while textures/streaming/pipelines fill (one 334 ms title-side hitch at 01:46), then it settles at 14-18 base and stays. The library saved at exit (host pipeline library saved bytes=46435148), so the next start should skip most of that; a README hint that the first ride on a new GPU/cache profile is a warm-up pass, not the steady state, would set expectations well.

(For completeness: the laptop 8 GB class post with the same pacing recipe is above; this message is desktop data. Rollback of the cuts on my side done, Run A behaviour is back.)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7232752570 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7232752570). Originally posted by [Tanju42](https://github.com/Tanju42) on 2026-11-28T03:02:16Z. --- Desktop-side measurement from this night (RTX 5090 32 GB, 9800X3D, 64 GB, Windows, official build `b99f876b`, series-x profile, DLSS quality, FG x4, 1440p) - two back-to-back world runs on the same machine, one of which accidentally produced a clean A/B on a compat issue: **Run A (F1 menu settings only), 3 min world:** base fps median 17.0 (13.7-120), `DLSS per frame: 1.00 upscalings`, `Frame Generation: 16 presents on, 64 frames shown` (4x working), GPU 0.6-18 ms, preparing 33-47 ms, copies 15-24 ms (45-67 MB/frame). GPU mostly idle -> at these settings the ceiling is the host prepare/copy pipeline, not the GPU. Visible symptom: stutter around ~30 shown fps; the >50 ms prepare spikes exceed dlssg's interpolation window, so FG passes them through as hitches. **Run B (same settings + this block appended to victory-settings.txt):** `THIN=1 JOIN_PARTS=8 RELAY_COPY=1 WIDE_BACK=1 SOFT_VIEWS=copies EARLY_DEPTH=1 TEXTURE_NO_WAIT=1 PRELUDE_UPLOADS=1 SHOW_NEW_LATER=1 QUEUE_HOST_TEXTURES=0` (the 8 GB laptop survival set from my earlier posts). Result on the 5090: banner still prints `DLSS on, frame generation on`, but the streamline state reads `0 presents with it on, 79 off, 0 frames shown` and `DLSS per frame: 0.00 upscalings, 0.00 failed, 0.00 left to FidelityFX` - **the whole DLSS/FG present path silently disengages while the banner says on.** Base fps median dropped 17.0 -> 14.6 and stuttering got visibly worse. I had expected the copy cuts to help; they don't apply on this class and appear incompatible with the Streamline present path (my guess: FG needs the clean colour copy the cuts remove - `0 copies in front of the interface composite`). Two small asks from this: (1) if the present-time state ends up `framegen_on=false` / 0 upscalings while the plan said on, that mismatch seems worth one loud WARN at startup or first present - the banner + stats line saying different things cost me a whole test session to spot; (2) maybe note in the README that the low-VRAM copy-cut set is a sub-12 GB VRAM tool that conflicts with DLSS/FG, since people like me will paste configs between threads. Also for the cold-start picture on a fresh cache (5090, everything warm except first ride on the new pipeline library): time buckets of mean fps over a 29 min run: `2.9, 2.2, 2.3, 2.2, 2.2, 2.5, 4.4, 4.3, 6.0, 17.7` - about 25 minutes at 2-4 fps while textures/streaming/pipelines fill (one 334 ms title-side hitch at 01:46), then it settles at 14-18 base and stays. The library saved at exit (`host pipeline library saved bytes=46435148`), so the next start should skip most of that; a README hint that the first ride on a new GPU/cache profile is a warm-up pass, not the steady state, would set expectations well. (For completeness: the laptop 8 GB class post with the same pacing recipe is above; this message is desktop data. Rollback of the cuts on my side done, Run A behaviour is back.)
chaseb64 commented 2026-11-28 09:08:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by chaseb64 on 2026-11-28T09:08:17Z.


RTX 4070 desktop GPU, 12 GB, driver 616.92, Ryzen 7 7800X3D, Windows 11 build 26300.9974. VIctory main 63bcca4, Xbox Series 1.0.2.1, Series X mode, warm shader cache.

On November 28 I ran the diagnostics build with VICTORY_D3D12_DRED=1 and VICTORY_D3D12_DEBUG=0. Startup printed 310,720 descriptor overflow warnings before rendering resumed at about 31 FPS. The game then crashed as the loading screen ended. I selected another window around the same time. The influence of window focus is untested.

At 08:50:46 UTC, VIctory reported DXGI_ERROR_DEVICE_HUNG (0x887A0006) after a submission of 27 command lists. Windows recorded seven nvlddmkm event 153 entries in that second. DRED reported 126/129 for list 13 and identified command 126 (op 6) as a 16x16x16 dispatch of compute shader 00167d58cc5a78d7. This matches the dispatch reported in issue #1968. The breadcrumb identifies where progress stopped. The underlying cause is still open.

An earlier release run on the same machine ended with DXGI_ERROR_DEVICE_RESET (0x887A0007) and had no breadcrumbs. This DRED result is from one run. Report prepared with Codex from local logs and the player's observation.

Comparison run on the same build and driver, DRED enabled, debug layer off, VICTORY_SKIP_PIPELINES=00167d58cc5a78d7. The launcher filtered descriptor warnings and redirected output directly to disk. I saw “Rockstar Games Presents” followed by the opening credits, with the 3D world appearing black. At 08:57:58 UTC the renderer was still reporting frames, including a sample at 0.2 FPS with 5,968 draws per frame, 634 drops without a host pipeline and 360 indirect drops. Audio was inaudible for most of this run according to the player. The log records audio initialization but does not identify the cause of the silence. Across 70 frame-time samples, 14 exceeded 5,000 ms/frame. The highest was 16,758.5 ms/frame, including 16,228.5 ms on the GPU.

The comparison run ended with unhandled title breakpoint 0x80000003 at +0x5149aec (launcher exit -2147483645). The first six stack offsets were +0x5149aec, +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211 and +0x257035e. No host GPU removal was recorded in this run. The same credits-stage breakpoint and stack were reported on an RX 6900 XT using a different build at https://github.com/PastiiJay/klbf-lab/issues/39. That report suggests an exhausted internal game memory pool. The title wrote two crash logs for this same run. Both report 7m34s running time, SRL state Prestream, 1,976 streaming requests, INSTANCE_LIST at 45,000/45,000, BUILDING at 22,426/22,500 and OBJECT at 13,554/27,500. The tile heap was at 3,274/6,236 MB. This matches the full INSTANCE_LIST pool and breakpoint stack in upstream issue #698. The pool was full at the stop. What filled it remains unknown. Is there a particular pool-management change you would like tested against this RTX 4070 baseline?

<!-- greyfinch-sync:Marvisak/VIctory:comment:7237040090 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7237040090). Originally posted by [chaseb64](https://github.com/chaseb64) on 2026-11-28T09:08:17Z. --- RTX 4070 desktop GPU, 12 GB, driver 616.92, Ryzen 7 7800X3D, Windows 11 build 26300.9974. VIctory main 63bcca4, Xbox Series 1.0.2.1, Series X mode, warm shader cache. On November 28 I ran the diagnostics build with VICTORY_D3D12_DRED=1 and VICTORY_D3D12_DEBUG=0. Startup printed 310,720 descriptor overflow warnings before rendering resumed at about 31 FPS. The game then crashed as the loading screen ended. I selected another window around the same time. The influence of window focus is untested. At 08:50:46 UTC, VIctory reported DXGI_ERROR_DEVICE_HUNG (0x887A0006) after a submission of 27 command lists. Windows recorded seven nvlddmkm event 153 entries in that second. DRED reported 126/129 for list 13 and identified command 126 (op 6) as a 16x16x16 dispatch of compute shader 00167d58cc5a78d7. This matches the dispatch reported in issue #1968. The breadcrumb identifies where progress stopped. The underlying cause is still open. An earlier release run on the same machine ended with DXGI_ERROR_DEVICE_RESET (0x887A0007) and had no breadcrumbs. This DRED result is from one run. Report prepared with Codex from local logs and the player's observation. Comparison run on the same build and driver, DRED enabled, debug layer off, VICTORY_SKIP_PIPELINES=00167d58cc5a78d7. The launcher filtered descriptor warnings and redirected output directly to disk. I saw “Rockstar Games Presents” followed by the opening credits, with the 3D world appearing black. At 08:57:58 UTC the renderer was still reporting frames, including a sample at 0.2 FPS with 5,968 draws per frame, 634 drops without a host pipeline and 360 indirect drops. Audio was inaudible for most of this run according to the player. The log records audio initialization but does not identify the cause of the silence. Across 70 frame-time samples, 14 exceeded 5,000 ms/frame. The highest was 16,758.5 ms/frame, including 16,228.5 ms on the GPU. The comparison run ended with unhandled title breakpoint 0x80000003 at +0x5149aec (launcher exit -2147483645). The first six stack offsets were +0x5149aec, +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211 and +0x257035e. No host GPU removal was recorded in this run. The same credits-stage breakpoint and stack were reported on an RX 6900 XT using a different build at https://github.com/PastiiJay/klbf-lab/issues/39. That report suggests an exhausted internal game memory pool. The title wrote two crash logs for this same run. Both report 7m34s running time, SRL state Prestream, 1,976 streaming requests, INSTANCE_LIST at 45,000/45,000, BUILDING at 22,426/22,500 and OBJECT at 13,554/27,500. The tile heap was at 3,274/6,236 MB. This matches the full INSTANCE_LIST pool and breakpoint stack in upstream issue #698. The pool was full at the stop. What filled it remains unknown. Is there a particular pool-management change you would like tested against this RTX 4070 baseline?
Tanju42 commented 2026-11-28 11:40:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Tanju42 on 2026-11-28T11:40:13Z.


Independently booted LNX-victory and MiniVI on a lower-tier member of the same 8 GB class (RTX 5060 laptop 8 GB, Ultra 7 356H, 31 GB RAM, GpuPreference=2, HAGS on) this afternoon - first repro data from outside the authors' machines:

Both build clean from source with the pinned 1.98.1 toolchain (LNX 2.5 min, MiniVI 3.5 min; the MiniVI play-minivi.ps1 needs cargo build --locked --profile diag - the error line says so, no guessing required, nice).

MiniVI (balanced-720p preset = series-s + DLSS performance): binds 0 missing incl. amd_fidelityfx_upscaler_xbox.dll, VRAM governance logs budget 7183 / in use 75 MB before first present, then 30.0 fps, 33.3 ms/frame, 0 dropped straight from the first second at the title screen. Rock solid for 10 minutes, no eviction storm, no watchdog death. Process shows as victory_sm.exe.

LNX-victory (run --execute): also binds 0 missing; menu presents steady 29.8 fps (frame 7351 to 15978 over 289 s). One repeated WARN during boot - victory_gpu::device: a pipeline creation method that is not implemented: the title goes without this pipeline slot=0x218 calls2 x29 - may be known, listing it in case it isn't.

Both stall at the 30 fps menu cap as expected with nobody pressing A; I stopped before world entry, so my numbers are title-screen only, world is the authors' 3-4.6 fps claim for now. Compared to my own current-Cut runs on this machine (1.0-1.1 fps world, everything throttled), the difference in stability and boot quality of these two forks is immediately visible: zero dropped presents, zero being-made stalls, sane VRAM accounting out of the box.

One gotcha worth spreading: LNX and MiniVI share %LOCALAPPDATA% ictory with the official build by default; different forks landing in one cache dir asks for confusing bugs. Setting VICTORY_HOME per fork fixed that for me.

(These two are also exactly the repos the recent account takedowns cannot reach fast enough - for anyone archiving: their pinned toolchain + the run --execute / --profile diag entry points are the parts that are hard to rediscover.)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7238704250 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7238704250). Originally posted by [Tanju42](https://github.com/Tanju42) on 2026-11-28T11:40:13Z. --- Independently booted **LNX-victory** and **MiniVI** on a lower-tier member of the same 8 GB class (RTX 5060 **laptop** 8 GB, Ultra 7 356H, 31 GB RAM, `GpuPreference=2`, HAGS on) this afternoon - first repro data from outside the authors' machines: **Both build clean from source** with the pinned 1.98.1 toolchain (LNX 2.5 min, MiniVI 3.5 min; the MiniVI `play-minivi.ps1` needs `cargo build --locked --profile diag` - the error line says so, no guessing required, nice). **MiniVI** (`balanced-720p` preset = series-s + DLSS performance): binds `0 missing` incl. `amd_fidelityfx_upscaler_xbox.dll`, VRAM governance logs `budget 7183 / in use 75 MB` before first present, then **30.0 fps, 33.3 ms/frame, 0 dropped** straight from the first second at the title screen. Rock solid for 10 minutes, no eviction storm, no watchdog death. Process shows as `victory_sm.exe`. **LNX-victory** (`run --execute`): also binds 0 missing; menu presents steady **29.8 fps** (frame 7351 to 15978 over 289 s). One repeated WARN during boot - `victory_gpu::device: a pipeline creation method that is not implemented: the title goes without this pipeline slot=0x218 calls2` x29 - may be known, listing it in case it isn't. Both stall at the 30 fps menu cap as expected with nobody pressing A; I stopped before world entry, so my numbers are title-screen only, world is the authors' 3-4.6 fps claim for now. Compared to my own current-Cut runs on this machine (1.0-1.1 fps world, everything throttled), the difference in **stability and boot quality** of these two forks is immediately visible: zero dropped presents, zero being-made stalls, sane VRAM accounting out of the box. One gotcha worth spreading: LNX and MiniVI share `%LOCALAPPDATA% ictory` with the official build by default; different forks landing in one cache dir asks for confusing bugs. Setting `VICTORY_HOME` per fork fixed that for me. (These two are also exactly the repos the recent account takedowns cannot reach fast enough - for anyone archiving: their pinned toolchain + the `run --execute` / `--profile diag` entry points are the parts that are hard to rediscover.)
Tanju42 commented 2026-11-28 12:58:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Tanju42 on 2026-11-28T12:58:42Z.


Follow-up with the world numbers from the same RTX 5060 laptop 8 GB machine, plus an input trick that may be useful to everyone running unattended tests.

Getting into the world without hands: the title only speaks gameinput/XInput, but a virtual Xbox 360 pad works end-to-end: official signed ViGEmBus driver (Nefarius, GitHub) + Python vgamepad (needs the GitHub master, the 0.2.0 on PyPI has no Xbox class), kept alive in a resident daemon so the title always sees one device. A presses, intro skips and even left-stick walking all register through both forks' gameinput HLE. Worth a mention in the testing docs - it makes 3 a.m. repro runs possible.

Measured world entry, both forks, 1080p-ish defaults (title-screen values from my previous comment unchanged):

  • MiniVI (balanced-720p, DLSS performance): reached full world render (4590 draws/frame), then a dead-flat 1.0 fps, 1000 ms/frame, GPU time ~950 ms for 15+ minutes. No eviction storm, no death, WS pinned ~13 GB. The NN.N fps log line is honest and matches present counts - great for testing.
  • LNX-victory: reached world after intro skips, ~1.6 fps presented (frame-counter rate over several minutes), VRAM 6661 MiB of the 7183 budget, WS 14.3 GB. So the laptop class lands at roughly half the author's desktop 5060 Ti numbers (3.3-4.6) - CPU/GPU tier gap plus laptop memory latency, same pattern as every earlier fork comparison on this machine.

Bottom line for this class of hardware: both forks make the game stable and boot-reproducible (which mainline+Cuts never was for me: dropped presents and stalls everywhere), and LNX is currently the fastest thing that has run a GTA VI world on this laptop. The wall now is ~950 ms of GPU work per frame at ~4600 draws - resolution reduction barely moves it, so the next real lever is on the draw/upload side. Happy to A/B anything you want measured; the rig stays ready.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7239600175 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7239600175). Originally posted by [Tanju42](https://github.com/Tanju42) on 2026-11-28T12:58:42Z. --- Follow-up with the world numbers from the same RTX 5060 laptop 8 GB machine, plus an input trick that may be useful to everyone running unattended tests. **Getting into the world without hands:** the title only speaks gameinput/XInput, but a virtual Xbox 360 pad works end-to-end: official signed ViGEmBus driver (Nefarius, GitHub) + Python `vgamepad` (needs the GitHub master, the 0.2.0 on PyPI has no Xbox class), kept alive in a resident daemon so the title always sees one device. A presses, intro skips and even left-stick walking all register through both forks' gameinput HLE. Worth a mention in the testing docs - it makes 3 a.m. repro runs possible. **Measured world entry, both forks, 1080p-ish defaults (title-screen values from my previous comment unchanged):** - MiniVI (`balanced-720p`, DLSS performance): reached full world render (4590 draws/frame), then a dead-flat **1.0 fps, 1000 ms/frame, GPU time ~950 ms** for 15+ minutes. No eviction storm, no death, WS pinned ~13 GB. The `NN.N fps` log line is honest and matches present counts - great for testing. - LNX-victory: reached world after intro skips, **~1.6 fps presented** (frame-counter rate over several minutes), VRAM 6661 MiB of the 7183 budget, WS 14.3 GB. So the laptop class lands at roughly half the author's desktop 5060 Ti numbers (3.3-4.6) - CPU/GPU tier gap plus laptop memory latency, same pattern as every earlier fork comparison on this machine. Bottom line for this class of hardware: both forks make the game *stable and boot-reproducible* (which mainline+Cuts never was for me: dropped presents and stalls everywhere), and LNX is currently the fastest thing that has run a GTA VI world on this laptop. The wall now is ~950 ms of GPU work per frame at ~4600 draws - resolution reduction barely moves it, so the next real lever is on the draw/upload side. Happy to A/B anything you want measured; the rig stays ready.
Sign in to join this conversation.
No labels
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.

Reference
Marvisak/VIctory#698
No description provided.