[GTX 1050 2 GB / 8 GB RAM] Death-cascade measurements + BAR-placement inversion on small-VRAM hosts #36

Open
opened 2026-12-02 21:35:01 +00:00 by github-bot · 31 comments
Owner

@⁠kotekompotek on GitHub · 2026-12-02 21:30 UTC · original

Hardware

Intel i5-8300H (4c/8t), 8 GB RAM, GTX 1050 2 GB (driver 582.28), Windows 10 19045, ~40 GB commit limit (large pagefile), D3D12 Agility 1.614.1. Title build 1.0.2.1, victory play --series-s at HEAD (9dca565).

I realize 2 GB VRAM is far below anything in the docs — that's exactly why I'm reporting: the failure modes down here are different from anything the current watermarks can see, and the machine iterates boot-to-death in ~15 minutes, so it's a cheap regression harness for the memory-pressure work.

What works (better than expected)

  • Account-select screen: 139-144 fps. Loading art: 63-132 fps. Zero pipeline refusals except the single mesh-shader one (Pascal has no mesh tier).
  • Series S commit peaks at only 7.5 GB — half of what Series X needed. Commit is a solved problem on this host.
  • Game data folder ported over from a Vice-Tay run was accepted as-is — nice property of the merged tree.

Death cascade, twice reproduced (default settings)

World streaming drives card's own memory from ~1 GB to 3084 MB of the 3403 MB budget over 8-10 minutes, then:

WARN  victory_gpu::pipeline::refused: host pipeline failed key="5bb23d33…" stage="compute" hr=0x8007000e lacks=""
WARN  victory_gpu::pipeline::refused: host pipeline failed key="d240837d…" stage="root signature" hr=0x…
ERROR victory_gpu::host: host GPU device removed … (0x887A0007)

E_OUTOFMEMORY with lacks="" — pure resource exhaustion; when even root-signature creation fails the driver is fully out. At death the process looks healthy by every user-mode counter: working set 1.5 GB, commit 7.5 GB of 40. Driver memory is invisible to the watermarks memguard watches (free physical, free commit). The only user-mode proxy is DXGI QueryVideoMemoryInfo, which residency already logs and evicts against — eviction just loses the race against streaming demand.

Suggestion: a third watermark beside the commit and physical floors, keyed to in use / budget from QueryVideoMemoryInfo, that throttles pipeline creation and texture stream-in admission at a high-water mark (say 80%). Compiles kept running at 4-5 s apiece right into the wall in my runs — admission control there is cheap insurance on every small-VRAM card, not just this one.

BAR placement heuristic inverts below ~4 GB VRAM

residency.rs::shared_is_small() assumes shared memory is scarcer than the card and sends windows/sends to card memory (VICTORY_WINDOWS_BAR_MB=4096, VICTORY_SEND_BAR=1). On this host shared budget ≈ 4 GB (half of RAM) but the card is 2-3.4 GB — the scarcer domain is the card, and the heuristic piles up to 4 GB of traffic onto it.

Measured, same boot path, Series S:

run settings card memory outcome
boot-1 defaults climb → 3084/3403 MB device removed, min 14
boot-2 defaults, warm cache same climb device removed, min 12
boot-3 VICTORY_WINDOWS_BAR_MB=0 VICTORY_SEND_BAR=0 plateau 2287/3403 no device removal; died later of system-side command-list E_OUTOFMEMORY (0x8007000E) after ~9 min streaming

The opt-out measurably avoided the device-reset death — but the pressure moved domains, because on this machine both domains are tiny. For asymmetric hosts (small RAM + big card or vice versa) the fix matters more. Cheap improvement: in shared_is_small(), additionally require the card budget to exceed the shared budget before redirecting; below that, keep the default placement.

Honest bottom line for this hardware

8 GB RAM is workable (Series S halves commit, pagefile covers the rest). 2 GB VRAM is below the floor for full world streaming no matter how memory is placed — the world wants more resident texture memory than the card has. Everything above is offered as data points for the small-memory design work (#27/#26 territory), not as a complaint: the port got astonishingly far, and the F1/telemetry instrumentation made every one of these measurements cheap to take.

Happy to run any diagnostic build or experiment — iteration cost here is ~15 minutes per data point.

**@⁠kotekompotek** on GitHub · 2026-12-02 21:30 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36) ## Hardware Intel i5-8300H (4c/8t), **8 GB RAM**, **GTX 1050 2 GB** (driver 582.28), Windows 10 19045, ~40 GB commit limit (large pagefile), D3D12 Agility 1.614.1. Title build 1.0.2.1, `victory play --series-s` at HEAD (9dca565). I realize 2 GB VRAM is far below anything in the docs — that's exactly why I'm reporting: the failure modes down here are different from anything the current watermarks can see, and the machine iterates boot-to-death in ~15 minutes, so it's a cheap regression harness for the memory-pressure work. ## What works (better than expected) - Account-select screen: **139-144 fps**. Loading art: 63-132 fps. Zero pipeline refusals except the single mesh-shader one (Pascal has no mesh tier). - Series S commit peaks at only **7.5 GB** — half of what Series X needed. Commit is a solved problem on this host. - Game data folder ported over from a Vice-Tay run was accepted as-is — nice property of the merged tree. ## Death cascade, twice reproduced (default settings) World streaming drives `card's own` memory from ~1 GB to **3084 MB of the 3403 MB budget** over 8-10 minutes, then: ``` WARN victory_gpu::pipeline::refused: host pipeline failed key="5bb23d33…" stage="compute" hr=0x8007000e lacks="" WARN victory_gpu::pipeline::refused: host pipeline failed key="d240837d…" stage="root signature" hr=0x… ERROR victory_gpu::host: host GPU device removed … (0x887A0007) ``` E_OUTOFMEMORY with `lacks=""` — pure resource exhaustion; when even root-signature creation fails the driver is fully out. At death the process looks *healthy* by every user-mode counter: working set 1.5 GB, commit 7.5 GB of 40. **Driver memory is invisible to the watermarks memguard watches** (free physical, free commit). The only user-mode proxy is DXGI `QueryVideoMemoryInfo`, which residency already logs and evicts against — eviction just loses the race against streaming demand. Suggestion: a third watermark beside the commit and physical floors, keyed to `in use / budget` from `QueryVideoMemoryInfo`, that throttles pipeline creation and texture stream-in admission at a high-water mark (say 80%). Compiles kept running at 4-5 s apiece right into the wall in my runs — admission control there is cheap insurance on every small-VRAM card, not just this one. ## BAR placement heuristic inverts below ~4 GB VRAM `residency.rs::shared_is_small()` assumes shared memory is scarcer than the card and sends windows/sends to card memory (`VICTORY_WINDOWS_BAR_MB=4096`, `VICTORY_SEND_BAR=1`). On this host shared budget ≈ 4 GB (half of RAM) but the card is 2-3.4 GB — **the scarcer domain is the card**, and the heuristic piles up to 4 GB of traffic onto it. Measured, same boot path, Series S: | run | settings | card memory | outcome | |---|---|---|---| | boot-1 | defaults | climb → 3084/3403 MB | device removed, min 14 | | boot-2 | defaults, warm cache | same climb | device removed, min 12 | | boot-3 | `VICTORY_WINDOWS_BAR_MB=0 VICTORY_SEND_BAR=0` | **plateau 2287/3403** | no device removal; died later of system-side command-list E_OUTOFMEMORY (0x8007000E) after ~9 min streaming | The opt-out measurably avoided the device-reset death — but the pressure moved domains, because on this machine *both* domains are tiny. For asymmetric hosts (small RAM + big card or vice versa) the fix matters more. Cheap improvement: in `shared_is_small()`, additionally require the card budget to exceed the shared budget before redirecting; below that, keep the default placement. ## Honest bottom line for this hardware 8 GB RAM is workable (Series S halves commit, pagefile covers the rest). 2 GB VRAM is below the floor for full world streaming no matter how memory is placed — the world wants more resident texture memory than the card has. Everything above is offered as data points for the small-memory design work (#27/#26 territory), not as a complaint: the port got astonishingly far, and the F1/telemetry instrumentation made every one of these measurements cheap to take. Happy to run any diagnostic build or experiment — iteration cost here is ~15 minutes per data point.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 21:35:01 +00:00
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-02 21:56 UTC · original

Follow-up data point that reframes the death: it is not a gradual cliff, it is a demand spike.

boot-4 (Series S, --res 1080to1440 --fps 30, VICTORY_WINDOWS_BAR_MB=0 VICTORY_SEND_BAR=0 VICTORY_WAIT_RESIDENT=textures, after preload --used):

02:51:51  card 2286/3403 MB, shared  700 MB — stable plateau for minutes
02:52:38  card 3089/3403 MB, shared 3753 MB — +800 MB VRAM and +3 GB shared in 47 s
02:53:10  dead — device removed 0x887A0007

compilemem lines in the final seconds: process private 11.8 GB, "the PC has 96 MB free" — physical RAM fully exhausted in the spike. A compute compile (4084 ms) was still finishing in the same window despite the preload; boot-4's changed resolution/state likely created pipeline variants the earlier --used list didn't cover, so part of the spike collided with a compile storm.

Interpretation: somewhere late in the world load there is a phase transition that wants gigabytes at once — plausibly the scene activation at the end of loading. On an 8 GB machine that spike plus any concurrent driver compile is fatal regardless of watermarking, because physical RAM itself runs out. Reactive eviction can't help inside a 47-second window; only not starting big compiles when the card is past a high-water mark, plus whatever the game side can be coaxed to stream more gradually, has a chance. Will test whether a fully-converged warm cache (iterated preload --used until no new compiles appear in a boot) survives the spike — that at least removes the compile term from the collision.

**@⁠kotekompotek** on GitHub · 2026-12-02 21:56 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7360010792) Follow-up data point that reframes the death: it is not a gradual cliff, it is a **demand spike**. boot-4 (Series S, `--res 1080to1440 --fps 30`, `VICTORY_WINDOWS_BAR_MB=0 VICTORY_SEND_BAR=0 VICTORY_WAIT_RESIDENT=textures`, after `preload --used`): ``` 02:51:51 card 2286/3403 MB, shared 700 MB — stable plateau for minutes 02:52:38 card 3089/3403 MB, shared 3753 MB — +800 MB VRAM and +3 GB shared in 47 s 02:53:10 dead — device removed 0x887A0007 ``` `compilemem` lines in the final seconds: process private 11.8 GB, **"the PC has 96 MB free"** — physical RAM fully exhausted in the spike. A compute compile (4084 ms) was still finishing in the same window despite the preload; boot-4's changed resolution/state likely created pipeline variants the earlier `--used` list didn't cover, so part of the spike collided with a compile storm. Interpretation: somewhere late in the world load there is a phase transition that wants gigabytes at once — plausibly the scene activation at the end of loading. On an 8 GB machine that spike plus any concurrent driver compile is fatal regardless of watermarking, because physical RAM itself runs out. Reactive eviction can't help inside a 47-second window; only *not starting* big compiles when the card is past a high-water mark, plus whatever the game side can be coaxed to stream more gradually, has a chance. Will test whether a fully-converged warm cache (iterated `preload --used` until no new compiles appear in a boot) survives the spike — that at least removes the compile term from the collision.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-02 22:51 UTC · original

boot-7 verdict (final controlled experiment): freeing ~1 GB RAM at boot (3.5 vs 2.5 GB free physical) does not extend survival — death at streaming minute ~7.5, same command-list E_OUTOFMEMORY signature. Combined with earlier compilemem data (96-99 MB free at death from any start), the loading-completion spike consumes all available physical memory regardless of headroom. The 8 GB wall is fundamental, not a background-process artifact.

Full negative-results matrix now spans: BAR placement, compile warmth (preload), texture budgets/mip clamps/lowspec knobs, fps caps, and process headroom — all orthogonal levers, all negative. The translation stack's measurable overheads were controlled for one by one and ruled out; what remains is the game's own loading-phase demand. Documented in https://github.com/kotekompotek/xbox-weak-hw-notes/blob/main/BOOT-SERIES-VERDICT.md — closing my side of the 8 GB investigation unless a content-reduction experiment (LOD scale) surprises. The three-domain watermark + BAR heuristic recommendations stand as the portable upstream takeaways.

**@⁠kotekompotek** on GitHub · 2026-12-02 22:51 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7361252133) boot-7 verdict (final controlled experiment): freeing ~1 GB RAM at boot (3.5 vs 2.5 GB free physical) does **not** extend survival — death at streaming minute ~7.5, same command-list E_OUTOFMEMORY signature. Combined with earlier compilemem data (96-99 MB free at death from any start), the loading-completion spike consumes all available physical memory regardless of headroom. The 8 GB wall is fundamental, not a background-process artifact. Full negative-results matrix now spans: BAR placement, compile warmth (preload), texture budgets/mip clamps/lowspec knobs, fps caps, and process headroom — all orthogonal levers, all negative. The translation stack's measurable overheads were controlled for one by one and ruled out; what remains is the game's own loading-phase demand. Documented in https://github.com/kotekompotek/xbox-weak-hw-notes/blob/main/BOOT-SERIES-VERDICT.md — closing my side of the 8 GB investigation unless a content-reduction experiment (LOD scale) surprises. The three-domain watermark + BAR heuristic recommendations stand as the portable upstream takeaways.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-02 23:22 UTC · original

boot-9 — the definitive clean-room experiment, and a refined death model. The control series is complete.

Setup: filled the host pipeline library properly this time — found that preload never writes to it by default (VICTORY_WARM_SHARED is off; only the driver cache gets warmed). With VICTORY_WARM_SHARED=1 preload --used the library grew 3.69→5.2 MB and early-boot pipelines now load from it at ~49 ms (loaded=40 made=0 in the first save line). Added VICTORY_LIBRARY_SAVE_MADE=50 to break the save-cycle trap (180 s cadence + death at minute 7-9 meant fatal-zone pipelines never persisted).

Result: death at streaming minute ~8-9, same command-list E_OUTOFMEMORY — but with numbers that isolate the cause completely:

  • zero compile activity during streaming: 7 compiles total, all in early boot. Compile interference formally ruled out.
  • free physical RAM at death: 400-900 MB — no exhaustion collapse this time.
  • title's own memory flat at 3037 MB private in the final minutes — the game side was not growing.
  • host-side private (layer + driver): 4344 MB and creeping up — the growth domain is the driver.

Refined model: with a 2 GB card, streamed content overflows VRAM into system-memory backing; the driver's internal bookkeeping grows monotonically with streaming progress until the driver refuses further GPU-memory commitment — regardless of user-mode-visible free RAM. This explains the invariant death minute, the healthy-looking user-mode numbers, and why the same demand would be trivially absorbed by a 4 GB+ card (no demotion pressure).

Two portable recommendations, unchanged but now proven necessary rather than just reasonable:

  1. a third watermark on DXGI memory budget (driver-internal consumption is invisible to physical/commit floors — boot-9 died with 400-900 MB free),
  2. the shared_is_small BAR-placement inversion for asymmetric hosts (2 GB card + 8 GB RAM).

And one preload-specific note: consider defaulting VICTORY_WARM_SHARED=1 when --used is passed — as it stands, preload on a machine that dies during streaming produces almost no library benefit, which is exactly the machine that needs it most. Full series: https://github.com/kotekompotek/xbox-weak-hw-notes/blob/main/BOOT-SERIES-VERDICT.md

**@⁠kotekompotek** on GitHub · 2026-12-02 23:22 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7361912342) boot-9 — the definitive clean-room experiment, and a refined death model. The control series is complete. **Setup**: filled the host pipeline library properly this time — found that preload never writes to it by default (`VICTORY_WARM_SHARED` is off; only the driver cache gets warmed). With `VICTORY_WARM_SHARED=1 preload --used` the library grew 3.69→5.2 MB and early-boot pipelines now load from it at ~49 ms (`loaded=40 made=0` in the first save line). Added `VICTORY_LIBRARY_SAVE_MADE=50` to break the save-cycle trap (180 s cadence + death at minute 7-9 meant fatal-zone pipelines never persisted). **Result**: death at streaming minute ~8-9, same command-list E_OUTOFMEMORY — but with numbers that isolate the cause completely: - **zero compile activity during streaming**: 7 compiles total, all in early boot. Compile interference formally ruled out. - **free physical RAM at death: 400-900 MB** — no exhaustion collapse this time. - **title's own memory flat at 3037 MB private** in the final minutes — the game side was not growing. - **host-side private (layer + driver): 4344 MB** and creeping up — the growth domain is the driver. **Refined model**: with a 2 GB card, streamed content overflows VRAM into system-memory backing; the driver's internal bookkeeping grows monotonically with streaming progress until the driver refuses further GPU-memory commitment — regardless of user-mode-visible free RAM. This explains the invariant death minute, the healthy-looking user-mode numbers, and why the same demand would be trivially absorbed by a 4 GB+ card (no demotion pressure). Two portable recommendations, unchanged but now proven necessary rather than just reasonable: 1. a third watermark on DXGI memory budget (driver-internal consumption is invisible to physical/commit floors — boot-9 died with 400-900 MB free), 2. the `shared_is_small` BAR-placement inversion for asymmetric hosts (2 GB card + 8 GB RAM). And one preload-specific note: consider defaulting `VICTORY_WARM_SHARED=1` when `--used` is passed — as it stands, preload on a machine that dies during streaming produces almost no library benefit, which is exactly the machine that needs it most. Full series: https://github.com/kotekompotek/xbox-weak-hw-notes/blob/main/BOOT-SERIES-VERDICT.md
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-02 23:35 UTC · original

Important correction to everything I posted in this issue — and possibly a usability bug report.

I discovered that victory play silently strips shell-set VICTORY_* environment variables before starting the title (play.rs prepare: everything not in the 16-entry KEPT list is removed as a 'stale switch'). All my boot-series knobs were set as shell env vars — so none of them ever reached the game. Verified: engine patches print engine ... at title+0x... lines when applied; zero such lines in any boot log, while execution provably passed through apply_asked.

What survives of the series: the config-independent measurements — spike telemetry, memory-domain accounting, death-minute invariance (all boots were effectively identical config), boot-9's zero-compile death (library warmth was real — preload doesn't go through the purge), boot-7's RAM-headroom result (physical, not a switch). What is void: every negative knob result (textures, LOD, BAR, lowspec).

The first boot with actually-delivered knobs is running now (--set delivery): stream pool 1536 MiB + world dist 0.2 verified applied in the log. Will report what changes.

Usability note: silent stripping is a foot-gun — a user who finds a knob in the source and exports it in front of the launcher gets no warning and no effect. Suggest a startup line listing dropped switches, or a hint in --help near --set. Documented in https://github.com/kotekompotek/xbox-weak-hw-notes/blob/main/ENV-PURGE-TRAP.md

**@⁠kotekompotek** on GitHub · 2026-12-02 23:35 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7362185943) **Important correction to everything I posted in this issue** — and possibly a usability bug report. I discovered that `victory play` silently strips shell-set VICTORY_* environment variables before starting the title (`play.rs` prepare: everything not in the 16-entry KEPT list is removed as a 'stale switch'). All my boot-series knobs were set as shell env vars — so **none of them ever reached the game**. Verified: engine patches print `engine ... at title+0x...` lines when applied; zero such lines in any boot log, while execution provably passed through apply_asked. What survives of the series: the config-independent measurements — spike telemetry, memory-domain accounting, death-minute invariance (all boots were effectively identical config), boot-9's zero-compile death (library warmth was real — preload doesn't go through the purge), boot-7's RAM-headroom result (physical, not a switch). What is void: every negative knob result (textures, LOD, BAR, lowspec). The first boot with actually-delivered knobs is running now (`--set` delivery): stream pool 1536 MiB + world dist 0.2 verified applied in the log. Will report what changes. **Usability note**: silent stripping is a foot-gun — a user who finds a knob in the source and exports it in front of the launcher gets no warning and no effect. Suggest a startup line listing dropped switches, or a hint in `--help` near `--set`. Documented in https://github.com/kotekompotek/xbox-weak-hw-notes/blob/main/ENV-PURGE-TRAP.md
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-02 23:49 UTC · original

boot-11 — first boot with verified-delivered engine patches (VICTORY_STREAM_POOL_MB=1536, VICTORY_WORLD_DIST_SCALE=0.2, low shadows — all confirmed Done in the log). Result: same spike shape, death at streaming minute ~7 — but the telemetry finally names the exact wall:

the PC's memory shared with the card is within 768 MB of its budget:
shared_in_use_mib=3745 shared_budget_mib=3615

The WDDM shared-memory budget on this 8 GB machine is 3615 MiB. At death: card 3096/3403 MiB + shared 3745/3615 MiB — the shared domain crosses its budget while the card is at 91%. Total GPU-attributed commitment ~6.8 GB against hardware backing of ~2+4 GB. Free physical RAM was 600-670 MB — the system allocator was not the constraint; the GPU memory budgets are architectural (fraction of RAM).

The overflow margin is small — shared over by only ~130 MiB. Which makes the next experiment interesting: reading host.rs, the shadow-memory window grid wastes half its memory by design ('803 windows held 3.3 GB in run 60's gameplay, and all that was ever asked for in them lay within 1.6 GB'). VICTORY_WINDOW_KB=256 cuts the grid finer — potentially recovering 1+ GB, several times the overflow margin. boot-12 testing exactly that plus VICTORY_LATE_WAIT_LISTS=64 now.

Also of note: boot-11's death had a different proximate cause — a 256 MiB upload-buffer allocation failure, then state-prelude recording — and the spike size was unchanged despite the stream pool being capped at 1536/3977 MiB. Either the spike content is not pool memory, or even the minimum pool plus fixed costs exceeds this machine. Will know more once the window experiment lands.

**@⁠kotekompotek** on GitHub · 2026-12-02 23:49 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7362462498) boot-11 — first boot with verified-delivered engine patches (`VICTORY_STREAM_POOL_MB=1536`, `VICTORY_WORLD_DIST_SCALE=0.2`, low shadows — all confirmed `Done` in the log). Result: same spike shape, death at streaming minute ~7 — but the telemetry finally names the exact wall: ``` the PC's memory shared with the card is within 768 MB of its budget: shared_in_use_mib=3745 shared_budget_mib=3615 ``` The WDDM shared-memory budget on this 8 GB machine is **3615 MiB**. At death: card 3096/3403 MiB + shared 3745/3615 MiB — the shared domain crosses its budget while the card is at 91%. Total GPU-attributed commitment ~6.8 GB against hardware backing of ~2+4 GB. Free physical RAM was 600-670 MB — the system allocator was not the constraint; the GPU memory budgets are architectural (fraction of RAM). The overflow margin is small — shared over by only ~130 MiB. Which makes the next experiment interesting: reading host.rs, the shadow-memory window grid wastes half its memory by design ('803 windows held 3.3 GB in run 60's gameplay, and all that was ever asked for in them lay within 1.6 GB'). `VICTORY_WINDOW_KB=256` cuts the grid finer — potentially recovering 1+ GB, several times the overflow margin. boot-12 testing exactly that plus `VICTORY_LATE_WAIT_LISTS=64` now. Also of note: boot-11's death had a different proximate cause — a 256 MiB upload-buffer allocation failure, then state-prelude recording — and the spike size was unchanged despite the stream pool being capped at 1536/3977 MiB. Either the spike content is not pool memory, or even the minimum pool plus fixed costs exceeds this machine. Will know more once the window experiment lands.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 00:11 UTC · original

Breakthrough: boot-12 survived the wall. Streaming minute 20+ and alive — every prior boot died at minute 7-9.

Configuration difference from boot-11 (which died as usual): VICTORY_WINDOW_KB=256 + VICTORY_LATE_WAIT_LISTS=64 added. Everything else identical (verified engine patches: stream pool 1536, world dist 0.2, low shadows).

Telemetry tells the story:

  • memory shape completely changed: card 3532/3403 MB (over budget — eviction working instead of instant failure) vs shared only 2795/3615 MB (prior deaths: shared 3727-3745 over budget)
  • death-spike happened and was absorbed: card went 2297→3532 through the same activation phase that killed every prior boot
  • cost: the machine is in heavy thrash — 4.9 s/frame, fps 0.2 — but frames advance (16105+ and counting, 80-4367 draws/frame), shader streaming continues
  • free physical RAM 467 MB, process WS 1640 MB — the system is paging heavily but the GPU memory manager is no longer refusing allocations

Interpretation: the window-quantization waste you documented in host.rs ('803 windows held 3.3 GB vs 1.6 GB asked') is real and large — the finer grid freed enough physical backing that the WDDM shared-memory domain stays under its 3615 MB budget, so allocations that previously failed with E_OUTOFMEMORY now succeed (slowly, through paging). The window grid knob may be worth a low-memory auto-profile: on ≤8 GB machines it is the difference between death and survival.

Whether the game reaches a playable frame rate after loading completes is the open question — will report. But the survival threshold itself is now proven crossable on 8 GB RAM + 2 GB VRAM.

**@⁠kotekompotek** on GitHub · 2026-12-03 00:11 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7362910240) **Breakthrough: boot-12 survived the wall.** Streaming minute 20+ and alive — every prior boot died at minute 7-9. Configuration difference from boot-11 (which died as usual): `VICTORY_WINDOW_KB=256` + `VICTORY_LATE_WAIT_LISTS=64` added. Everything else identical (verified engine patches: stream pool 1536, world dist 0.2, low shadows). Telemetry tells the story: - memory shape completely changed: card 3532/3403 MB (**over budget** — eviction working instead of instant failure) vs shared only 2795/3615 MB (prior deaths: shared 3727-3745 over budget) - death-spike happened and was absorbed: card went 2297→3532 through the same activation phase that killed every prior boot - cost: the machine is in heavy thrash — 4.9 s/frame, fps 0.2 — but frames advance (16105+ and counting, 80-4367 draws/frame), shader streaming continues - free physical RAM 467 MB, process WS 1640 MB — the system is paging heavily but the GPU memory manager is no longer refusing allocations Interpretation: the window-quantization waste you documented in host.rs ('803 windows held 3.3 GB vs 1.6 GB asked') is real and large — the finer grid freed enough physical backing that the WDDM shared-memory domain stays under its 3615 MB budget, so allocations that previously failed with E_OUTOFMEMORY now succeed (slowly, through paging). The window grid knob may be worth a low-memory auto-profile: on ≤8 GB machines it is the difference between death and survival. Whether the game reaches a playable frame rate after loading completes is the open question — will report. But the survival threshold itself is now proven crossable on 8 GB RAM + 2 GB VRAM.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 00:22 UTC · original

The world is rendering on 8 GB RAM + GTX 1050 2 GB. boot-12 completed world loading — the opening scene draws: sunset sky, ocean horizon, coastal vegetation (sparse at WORLD_DIST_SCALE=0.2), 284 draws/frame, fps 1.0 and frame time trending down (6.8→1.4 s as the thrash subsides). Proof capture: https://github.com/kotekompotek/xbox-weak-hw-notes/blob/main/boot12-world-rendering.png

Thirteen boots to here. The winning configuration delta over everything that died: WINDOW_KB=256 + LATE_WAIT_LISTS=64 on top of the verified engine patches. The window grid is the difference between the WDDM shared domain crossing its architectural budget (death) and staying 900 MB under it (survival through paging).

Also confirmed working as designed: VICTORY_LIBRARY_SAVE_MADE=50 — the library grew 5.2→33.7 MB during this single boot, capturing 370 streaming pipelines that no prior boot ever survived long enough to save. The iterative-convergence loop now exists: each boot makes the next one cheaper.

Not playable (1 fps) — but the survival hypothesis is proven, and every component of the remaining problem (thrash, compile-under-pressure refusals, convergence warmth) is now a tuning target rather than a wall. Full writeup: https://github.com/kotekompotek/xbox-weak-hw-notes/blob/main/BOOT12-SURVIVAL.md

**@⁠kotekompotek** on GitHub · 2026-12-03 00:22 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7363114386) **The world is rendering on 8 GB RAM + GTX 1050 2 GB.** boot-12 completed world loading — the opening scene draws: sunset sky, ocean horizon, coastal vegetation (sparse at WORLD_DIST_SCALE=0.2), 284 draws/frame, fps 1.0 and frame time trending down (6.8→1.4 s as the thrash subsides). Proof capture: https://github.com/kotekompotek/xbox-weak-hw-notes/blob/main/boot12-world-rendering.png Thirteen boots to here. The winning configuration delta over everything that died: WINDOW_KB=256 + LATE_WAIT_LISTS=64 on top of the verified engine patches. The window grid is the difference between the WDDM shared domain crossing its architectural budget (death) and staying 900 MB under it (survival through paging). Also confirmed working as designed: VICTORY_LIBRARY_SAVE_MADE=50 — the library grew 5.2→33.7 MB during this single boot, capturing 370 streaming pipelines that no prior boot ever survived long enough to save. The iterative-convergence loop now exists: each boot makes the next one cheaper. Not playable (1 fps) — but the survival hypothesis is proven, and every component of the remaining problem (thrash, compile-under-pressure refusals, convergence warmth) is now a tuning target rather than a wall. Full writeup: https://github.com/kotekompotek/xbox-weak-hw-notes/blob/main/BOOT12-SURVIVAL.md
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 00:48 UTC · original

boot-13 (convergence test — identical config to boot-12, only difference a warm 64.6 MB pipeline library): survival reproduced, and every quality metric improved measurably.

metric boot-12 (cold) boot-13 (warm)
pipelines loaded vs made at host loaded=129 loaded=900, made=223
shader-compile refusals E_OUTOFMEMORY 155 0
frame-time recovery in world 6.8→0.85 s over 20+ minutes 704→389 ms within 25 seconds

The compile-under-memory-pressure failure mode — the reason objects were missing in boot-12's world — is entirely eliminated once pipelines come from the library instead of being compiled during the thrash. The world geometry has its shaders from frame one. Library growth arc across boots: 5.2 → 33.7 → 64.6 → 76.8 MB. VICTORY_LIBRARY_SAVE_MADE=50 proved essential — the default cadence would lose most of it.

This makes the iterative-convergence loop a practical answer even for weak hardware: the first boot is expensive, every subsequent one is cheaper and cleaner. Writeup: https://github.com/kotekompotek/xbox-weak-hw-notes/blob/main/BOOT13-CONVERGENCE.md

One open observation: the world scene shows vegetation floating where terrain should be — terrain mesh itself may not be rendering (draws happen, but the ground surface is absent). Investigating whether that's a mesh-shader path (the one mesh pipeline that Pascal can't do) or another memory-related refusal class. Will report if it pins down.

**@⁠kotekompotek** on GitHub · 2026-12-03 00:48 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7363611717) boot-13 (convergence test — identical config to boot-12, only difference a warm 64.6 MB pipeline library): **survival reproduced**, and every quality metric improved measurably. | metric | boot-12 (cold) | boot-13 (warm) | |---|---|---| | pipelines loaded vs made at host | loaded=129 | **loaded=900, made=223** | | shader-compile refusals E_OUTOFMEMORY | 155 | **0** | | frame-time recovery in world | 6.8→0.85 s over 20+ minutes | 704→389 ms within 25 seconds | The compile-under-memory-pressure failure mode — the reason objects were missing in boot-12's world — is entirely eliminated once pipelines come from the library instead of being compiled during the thrash. The world geometry has its shaders from frame one. Library growth arc across boots: 5.2 → 33.7 → 64.6 → 76.8 MB. `VICTORY_LIBRARY_SAVE_MADE=50` proved essential — the default cadence would lose most of it. This makes the iterative-convergence loop a practical answer even for weak hardware: the first boot is expensive, every subsequent one is cheaper and cleaner. Writeup: https://github.com/kotekompotek/xbox-weak-hw-notes/blob/main/BOOT13-CONVERGENCE.md One open observation: the world scene shows vegetation floating where terrain should be — terrain mesh itself may not be rendering (draws happen, but the ground surface is absent). Investigating whether that's a mesh-shader path (the one mesh pipeline that Pascal can't do) or another memory-related refusal class. Will report if it pins down.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 00:52 UTC · original

boot-13 final outcome: survived the loading wall (second time ever), ran in-world for ~7-9 minutes at 2.8-3.2 fps (intro cutscene playing, camera moving, 600-680 draws/frame), then died to a device hang — a new, later death mode distinct from the minute-7-9 loading wall.

relay: the device was lost before fence value 61331 was reached; device removed:
"the GPU will not respond to further commands — most likely because the requesting application..."
when the host device went: the submitting thread was preparing a submission (nothing of ours was running on the card)

Telemetry at death: committed 12113 MB (up from 7639 MB entering the world — +4.5 GB growth during in-world streaming), card 3505/3403 MB (over budget, eviction active), shared 2640/3615 MB (still under budget). Physical paging was continuous throughout.

Interpretation: the loading wall (shared-domain budget overflow) and the steady-state death (device hang under sustained paging pressure) are different failure modes. The window-grid fix crossed the first; the second appears when the driver's paging loop cannot satisfy resource residency for a command batch in time — consistent with the machine simply being undersized for sustained operation, not with any single allocation failing. No WARN/ERROR of an allocation failure precedes the removal; the device stops responding first.

So the honest weak-hardware arc is now three-stage: (1) loading wall — crossable with the window-grid configuration; (2) compile-under-pressure refusals — eliminated by pipeline-library convergence; (3) steady-state device hang after ~7-9 minutes in-world — the remaining frontier, probably only truly fixed by more physical memory. Whether a longer survival is possible with even lower content volume (WORLD_DIST_SCALE 0.1, stream pool floor) is testable but diminishing returns — the machine's physics is the binding constraint now.

**@⁠kotekompotek** on GitHub · 2026-12-03 00:52 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7363683804) boot-13 final outcome: survived the loading wall (second time ever), ran in-world for ~7-9 minutes at 2.8-3.2 fps (intro cutscene playing, camera moving, 600-680 draws/frame), then died to a **device hang** — a new, later death mode distinct from the minute-7-9 loading wall. ``` relay: the device was lost before fence value 61331 was reached; device removed: "the GPU will not respond to further commands — most likely because the requesting application..." when the host device went: the submitting thread was preparing a submission (nothing of ours was running on the card) ``` Telemetry at death: committed **12113 MB** (up from 7639 MB entering the world — +4.5 GB growth during in-world streaming), card 3505/3403 MB (over budget, eviction active), shared 2640/3615 MB (still under budget). Physical paging was continuous throughout. Interpretation: the loading wall (shared-domain budget overflow) and the steady-state death (device hang under sustained paging pressure) are **different failure modes**. The window-grid fix crossed the first; the second appears when the driver's paging loop cannot satisfy resource residency for a command batch in time — consistent with the machine simply being undersized for sustained operation, not with any single allocation failing. No WARN/ERROR of an allocation failure precedes the removal; the device stops responding first. So the honest weak-hardware arc is now three-stage: (1) loading wall — crossable with the window-grid configuration; (2) compile-under-pressure refusals — eliminated by pipeline-library convergence; (3) steady-state device hang after ~7-9 minutes in-world — the remaining frontier, probably only truly fixed by more physical memory. Whether a longer survival is possible with even lower content volume (WORLD_DIST_SCALE 0.1, stream pool floor) is testable but diminishing returns — the machine's physics is the binding constraint now.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 01:06 UTC · original

boot-14 ablation result — content reduction proven necessary, not just sufficient-with-other-knobs. boot-14 ran stock world scale (1.0) with every other survival knob active (window grid 256 KiB, stream pool 1536, bounded lists, warm 76.8 MB library): death returned at streaming minute ~8, this time as a title-side crash under extreme thrash (8.4 s/frame). Compare boot-12/13 (world scale 0.2, same everything else): survived loading, reached the world.

So the survival formula needs BOTH halves: (1) translation-layer waste elimination — window grid etc. (boot-11 died with content reduction but without it), and (2) content volume reduction (boot-14 died with the grid but without it). Neither half suffices alone. Also learned: WORLD_DIST_SCALE clamps at 0.20 — it is already at its floor; there is no finer content-volume control exposed.

boot-15 (boot-13 config repeat) now running to measure device-hang variance — will report.

**@⁠kotekompotek** on GitHub · 2026-12-03 01:06 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7363967906) boot-14 ablation result — **content reduction proven necessary, not just sufficient-with-other-knobs**. boot-14 ran stock world scale (1.0) with every other survival knob active (window grid 256 KiB, stream pool 1536, bounded lists, warm 76.8 MB library): death returned at streaming minute ~8, this time as a title-side crash under extreme thrash (8.4 s/frame). Compare boot-12/13 (world scale 0.2, same everything else): survived loading, reached the world. So the survival formula needs BOTH halves: (1) translation-layer waste elimination — window grid etc. (boot-11 died with content reduction but without it), and (2) content volume reduction (boot-14 died with the grid but without it). Neither half suffices alone. Also learned: WORLD_DIST_SCALE clamps at 0.20 — it is already at its floor; there is no finer content-volume control exposed. boot-15 (boot-13 config repeat) now running to measure device-hang variance — will report.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 01:29 UTC · original

boot-15 (exact boot-13 repeat — device-hang variance measurement): third consecutive loading-wall survival, and in-world lifetime roughly doubled — ~15-17 minutes vs boot-13's ~7-9, same config. Zero compile refusals again; the 76.8 MB library did not grow — at world scale 0.2 the pipeline population has fully converged.

Meaning: the steady-state device hang is probabilistic, not deterministic, and its timing scales with the memory-pressure event rate. Once compile-under-pressure disappeared entirely, survival doubled. The residual pressure source is streaming paging itself — physical for this machine — but lifetime is tunable, not fixed. Natural next lever for anyone reproducing: cap the title's frame rate lower (fewer submission batches per second = fewer paging events per minute) — untested here yet.

Summary of the complete weak-hardware arc for the record: loading wall (crossed via window-grid config, both halves proven necessary by boot-11/14 ablations) → compile refusals (eliminated by library convergence) → probabilistic device hang in steady state (lifetime tunable, 7→17 min across convergence).

**@⁠kotekompotek** on GitHub · 2026-12-03 01:29 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7364396640) boot-15 (exact boot-13 repeat — device-hang variance measurement): third consecutive loading-wall survival, and in-world lifetime roughly **doubled** — ~15-17 minutes vs boot-13's ~7-9, same config. Zero compile refusals again; the 76.8 MB library did not grow — at world scale 0.2 the pipeline population has fully converged. Meaning: the steady-state device hang is **probabilistic, not deterministic**, and its timing scales with the memory-pressure event rate. Once compile-under-pressure disappeared entirely, survival doubled. The residual pressure source is streaming paging itself — physical for this machine — but lifetime is tunable, not fixed. Natural next lever for anyone reproducing: cap the title's frame rate lower (fewer submission batches per second = fewer paging events per minute) — untested here yet. Summary of the complete weak-hardware arc for the record: loading wall (crossed via window-grid config, both halves proven necessary by boot-11/14 ablations) → compile refusals (eliminated by library convergence) → probabilistic device hang in steady state (lifetime tunable, 7→17 min across convergence).
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 02:14 UTC · original

boot-16 — content reducers extend in-world survival further, confirming the pressure-rate model. Added to the boot-13 formula: VICTORY_FOLIAGE_TIER=0 + VICTORY_ITER_TIER=0 + VICTORY_RT_POOL_LOW=1 + VICTORY_SHADOW_CASCADES=1 (all verified Done in the log — these engine patches reduce streaming iteration counts, foliage population, ray-tracing pool tier, shadow cascade count).

Results at time of writing, ~19+ minutes in-world and still alive:

  • world entry much faster: 2.8 fps on arrival vs 0.2-0.4 in boots 12/13/15 — the thrash is shallower
  • best in-world fps yet: oscillating 1.7-4.5 depending on scene content (boot-13/15 peaked ~3.2)
  • survival past boot-15's record (15-17 min): 19+ minutes and counting, commit stable at ~12.1-12.3 GB (plateau, not growing), shared domain 2512/3615 MB — still under budget
  • zero compile refusals again — converged library

In-world lifetime scaling across the series — boot-13 ~8 min, boot-15 ~16 min (warm library), boot-16 19+ min (content reducers) — supports the probabilistic-pressure model of the device hang: every reduction in memory-pressure event rate buys lifetime. The reducers cost visible content (foliage especially), so this is a diagnostic result more than a config recommendation — but it isolates the mechanism.

Next planned diagnostic: VICTORY_D3D12_DRED — the fork already has DRED auto-breadcrumbs support built in (forced-on enablement + breadcrumb reporting). If the hang recurs even with reducers, the breadcrumb capture should finally answer whether the hanging command stream is application content or driver-internal paging.

**@⁠kotekompotek** on GitHub · 2026-12-03 02:14 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7365248207) boot-16 — content reducers extend in-world survival further, confirming the pressure-rate model. Added to the boot-13 formula: `VICTORY_FOLIAGE_TIER=0` + `VICTORY_ITER_TIER=0` + `VICTORY_RT_POOL_LOW=1` + `VICTORY_SHADOW_CASCADES=1` (all verified `Done` in the log — these engine patches reduce streaming iteration counts, foliage population, ray-tracing pool tier, shadow cascade count). Results at time of writing, ~19+ minutes in-world and still alive: - **world entry much faster**: 2.8 fps on arrival vs 0.2-0.4 in boots 12/13/15 — the thrash is shallower - **best in-world fps yet**: oscillating 1.7-4.5 depending on scene content (boot-13/15 peaked ~3.2) - **survival past boot-15's record** (15-17 min): 19+ minutes and counting, commit stable at ~12.1-12.3 GB (plateau, not growing), shared domain 2512/3615 MB — still under budget - zero compile refusals again — converged library In-world lifetime scaling across the series — boot-13 ~8 min, boot-15 ~16 min (warm library), boot-16 19+ min (content reducers) — supports the probabilistic-pressure model of the device hang: every reduction in memory-pressure event rate buys lifetime. The reducers cost visible content (foliage especially), so this is a diagnostic result more than a config recommendation — but it isolates the mechanism. Next planned diagnostic: `VICTORY_D3D12_DRED` — the fork already has DRED auto-breadcrumbs support built in (forced-on enablement + breadcrumb reporting). If the hang recurs even with reducers, the breadcrumb capture should finally answer whether the hanging command stream is application content or driver-internal paging.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 02:34 UTC · original

boot-16 update: 32+ minutes in-world and alive — more than double boot-15's record, 4x boot-13. And this under additional adverse load: a full cargo build of the diagnostics profile ran concurrently on the same 8 GB machine for part of the window (free RAM bottomed at 233 MB), including one 29.6-second frame that the process survived.

In-world lifetime scaling now spans an order of magnitude with each memory-pressure reduction: ~8 min (boot-13) → ~16 min (boot-15, warm library) → 32+ min (boot-16, engine content reducers). fps also improved: world entry at 2.8 fps vs 0.2-0.4 originally, in-world peaks 4.5 fps. Commit plateaus at ~12.2 GB rather than climbing to failure.

Caveat on rigor: single samples per configuration — the device hang is probabilistic so variance is unknown; but the monotonic trend across three independent changes all pointing the same direction is unlikely to be noise. The pressure-rate model predicted this ordering in advance.

For the diagnostics build now compiling: next boot will carry VICTORY_D3D12_DRED breadcrumbs, so if/when the hang recurs we get the faulting command stream instead of a bare DEVICE_HUNG.

**@⁠kotekompotek** on GitHub · 2026-12-03 02:34 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7365617799) boot-16 update: **32+ minutes in-world and alive** — more than double boot-15's record, 4x boot-13. And this under additional adverse load: a full cargo build of the diagnostics profile ran concurrently on the same 8 GB machine for part of the window (free RAM bottomed at 233 MB), including one 29.6-second frame that the process survived. In-world lifetime scaling now spans an order of magnitude with each memory-pressure reduction: ~8 min (boot-13) → ~16 min (boot-15, warm library) → 32+ min (boot-16, engine content reducers). fps also improved: world entry at 2.8 fps vs 0.2-0.4 originally, in-world peaks 4.5 fps. Commit plateaus at ~12.2 GB rather than climbing to failure. Caveat on rigor: single samples per configuration — the device hang is probabilistic so variance is unknown; but the monotonic trend across three independent changes all pointing the same direction is unlikely to be noise. The pressure-rate model predicted this ordering in advance. For the diagnostics build now compiling: next boot will carry VICTORY_D3D12_DRED breadcrumbs, so if/when the hang recurs we get the faulting command stream instead of a bare DEVICE_HUNG.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 03:49 UTC · original

v2.1 input regression isolated — VICTORY_RAW_KEYS=0 is a full workaround

While bringing up v2.1 on the 8 GB RAM / GTX 1050 rig I hit a hard wall in first-run menus: dpad navigation mostly worked but checkbox activation in the legal wizard never landed, making the menu impossible to drive with injected input (keybd_event/SendInput — the standard way to script these boots). Spent a full session isolating it:

  • System-level probe: injected keys are visible in GetAsyncKeyState exactly like physical input — Windows delivery is healthy.
  • v2.1's new raw-input keyboard path (gameinput.rs, RIDEV_INPUTSINK sink + merge logic) loses the activation timing; navigation only partially lands via the full-sync correction path, which is why the failure looks intermittent rather than total.
  • --set VICTORY_RAW_KEYS=0 fixes everything: first A press advanced the account picker, checkboxes toggled with single A presses, wizard completed in under a minute.

Not just a scripting problem: anything non-physical (macro tools, remote desktop, Steam Input-style injection) likely hits the same wall. Suggest either fixing the raw merge or falling back to polling when raw events disagree with all_down() scans (the detection scaffolding — polls/missed counters — already exists but didn't trigger in my run: no "raw input missed keys" warning in the log despite input clearly being dropped).

Memory-architecture measurements for v2.1 on weak hardware are next now that menus are passable; will post the shared-domain comparison against v2.0 once in-world.

**@⁠kotekompotek** on GitHub · 2026-12-03 03:49 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7366981310) **v2.1 input regression isolated — `VICTORY_RAW_KEYS=0` is a full workaround** While bringing up v2.1 on the 8 GB RAM / GTX 1050 rig I hit a hard wall in first-run menus: dpad navigation mostly worked but checkbox activation in the legal wizard never landed, making the menu impossible to drive with injected input (keybd_event/SendInput — the standard way to script these boots). Spent a full session isolating it: - System-level probe: injected keys are visible in `GetAsyncKeyState` exactly like physical input — Windows delivery is healthy. - v2.1's new raw-input keyboard path (`gameinput.rs`, RIDEV_INPUTSINK sink + merge logic) loses the activation timing; navigation only partially lands via the full-sync correction path, which is why the failure looks intermittent rather than total. - **`--set VICTORY_RAW_KEYS=0` fixes everything**: first A press advanced the account picker, checkboxes toggled with single A presses, wizard completed in under a minute. Not just a scripting problem: anything non-physical (macro tools, remote desktop, Steam Input-style injection) likely hits the same wall. Suggest either fixing the raw merge or falling back to polling when raw events disagree with `all_down()` scans (the detection scaffolding — `polls`/`missed` counters — already exists but didn't trigger in my run: no "raw input missed keys" warning in the log despite input clearly being dropped). Memory-architecture measurements for v2.1 on weak hardware are next now that menus are passable; will post the shared-domain comparison against v2.0 once in-world.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 04:05 UTC · original

First v2.1 in-world measurement on the 8 GB RAM / GTX 1050 rig

With the input workaround in place, boot-18 reached the world: city rendering, vegetation, night lighting. Numbers vs v2.0 at comparable phase:

  • fps recovery: 1.7 → 3.9 fps within minutes (v2.0 needed 20+ min for the same recovery)
  • zero E_OUTOFMEMORY compile refusals (warm pipeline library + v2.1)
  • shared-with-card domain: 2209-2725 MB in use — slightly lower than v2.0's typical 2350-2650 at the same phase, but not the multi-GB slash seen on reference hardware; this rig is so far below spec that every MB is always in use
  • card over budget (3493-3574/3403) with eviction holding, same as v2.0
  • death after ~10 min in-world: title crash (Breakpad), not device hang — the crash-under-pressure mode, zero allocation refusals in the log

So on hardware this constrained, v2.1's biggest observable win is recovery speed (probably the pipeline workers / memory-pressure reduction), while the shared-memory floor is bounded by streaming demand itself. DRED-diagnostic build for the crash/hang modes is next on my list.

**@⁠kotekompotek** on GitHub · 2026-12-03 04:05 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7367259423) **First v2.1 in-world measurement on the 8 GB RAM / GTX 1050 rig** With the input workaround in place, boot-18 reached the world: city rendering, vegetation, night lighting. Numbers vs v2.0 at comparable phase: - fps recovery: 1.7 → **3.9 fps within minutes** (v2.0 needed 20+ min for the same recovery) - zero E_OUTOFMEMORY compile refusals (warm pipeline library + v2.1) - shared-with-card domain: **2209-2725 MB** in use — slightly lower than v2.0's typical 2350-2650 at the same phase, but not the multi-GB slash seen on reference hardware; this rig is so far below spec that every MB is always in use - card over budget (3493-3574/3403) with eviction holding, same as v2.0 - death after ~10 min in-world: title crash (Breakpad), **not** device hang — the crash-under-pressure mode, zero allocation refusals in the log So on hardware this constrained, v2.1's biggest observable win is recovery speed (probably the pipeline workers / memory-pressure reduction), while the shared-memory floor is bounded by streaming demand itself. DRED-diagnostic build for the crash/hang modes is next on my list.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 05:05 UTC · original

Root cause of the deterministic in-world crash found: the title's streaming-progress watchdog (full disassembly analysis)

The 0x80000003 breakpoint crash that ends every in-world run on memory-starved machines (boots 14, 18, 20 — all at the same image offset +0x2279daa, ~7-10 minutes into the first cinematic/world phase) is not corruption. It is a deliberate, deterministic self-termination by the title. I disassembled the crash site and its callers; mechanism:

  1. The crash site is inside a periodic verification routine that iterates ~1024 streaming slots and tests each against a residency bitmap (bit test per asset id, bitmap base at streaming-context+0x290, up to 4M bits). Boolean results are summed.
  2. If zero slots test positive, the routine checks two globals: an early-boot state byte (must be ≤ 1) and a "world loader actively pumping" flag (bit 0 must be clear). If the loader IS actively pumping (or state is past boot), it executes int3 deliberately — a small trap stub at the end of the function, same bytes every time.
  3. The world-load pump loop itself (the function that sets the loader-active flag, then spins calling frame-pump/virtual-progress functions until completion) is where the watchdog gets invoked from.
  4. The GlobalMemoryStatusEx query ~2 ms before the crash is the crash/dump chain gathering diagnostics, not the cause — it is the first and only time the title calls it in the whole run (Hydra logs it once).

Interpretation: the title treats "world loader pumping but zero streaming slots resident" as an unrecoverable broken state and kills itself rather than hang. On an 8 GB RAM / 2 GB VRAM PC, streaming starves to a complete stall within minutes of entering the first cinematic — so the watchdog fires deterministically. This replaces the earlier "crash-under-pressure" folk theory with an exact mechanism, and explains why content reducers (foliage/iter/shadow tier 0) did NOT extend life: the cinematic's mandatory streaming set is unaffected by world detail reducers.

What this means for low-memory support: survival past ~10 minutes in-world requires streaming that never fully stalls — i.e. the eviction/admission pipeline must keep at least some slots completing even under extreme pressure. Whether the stall is purely resource exhaustion or a pressure-triggered admission deadlock in the texture pipeline is the open question; a run with VICTORY_TITLE_MEMORY_LIMIT_MB raised (bigger Level-3 physical pools) is in flight, and I plan a VICTORY_STREAM_POOL_MB sweep (512/768/1024) next. If the stall turns out to be a pipeline deadlock rather than raw exhaustion, this becomes a fixable Hydra bug rather than a hardware wall. Detailed writeup in my notes repo (xbox-weak-hw-notes).

**@⁠kotekompotek** on GitHub · 2026-12-03 05:05 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7368370717) ## Root cause of the deterministic in-world crash found: the title's streaming-progress watchdog (full disassembly analysis) The `0x80000003` breakpoint crash that ends every in-world run on memory-starved machines (boots 14, 18, 20 — all at the same image offset `+0x2279daa`, ~7-10 minutes into the first cinematic/world phase) is **not corruption**. It is a deliberate, deterministic self-termination by the title. I disassembled the crash site and its callers; mechanism: 1. **The crash site is inside a periodic verification routine** that iterates ~1024 streaming slots and tests each against a residency bitmap (bit test per asset id, bitmap base at streaming-context+0x290, up to 4M bits). Boolean results are summed. 2. **If zero slots test positive**, the routine checks two globals: an early-boot state byte (must be ≤ 1) and a "world loader actively pumping" flag (bit 0 must be clear). If the loader IS actively pumping (or state is past boot), it executes `int3` deliberately — a small trap stub at the end of the function, same bytes every time. 3. The world-load pump loop itself (the function that sets the loader-active flag, then spins calling frame-pump/virtual-progress functions until completion) is where the watchdog gets invoked from. 4. The `GlobalMemoryStatusEx` query ~2 ms before the crash is the crash/dump chain gathering diagnostics, not the cause — it is the first and only time the title calls it in the whole run (Hydra logs it once). **Interpretation**: the title treats "world loader pumping but zero streaming slots resident" as an unrecoverable broken state and kills itself rather than hang. On an 8 GB RAM / 2 GB VRAM PC, streaming starves to a complete stall within minutes of entering the first cinematic — so the watchdog fires deterministically. This replaces the earlier "crash-under-pressure" folk theory with an exact mechanism, and explains why content reducers (foliage/iter/shadow tier 0) did NOT extend life: the cinematic's mandatory streaming set is unaffected by world detail reducers. **What this means for low-memory support**: survival past ~10 minutes in-world requires streaming that never fully stalls — i.e. the eviction/admission pipeline must keep at least some slots completing even under extreme pressure. Whether the stall is purely resource exhaustion or a pressure-triggered admission deadlock in the texture pipeline is the open question; a run with `VICTORY_TITLE_MEMORY_LIMIT_MB` raised (bigger Level-3 physical pools) is in flight, and I plan a `VICTORY_STREAM_POOL_MB` sweep (512/768/1024) next. If the stall turns out to be a pipeline deadlock rather than raw exhaustion, this becomes a fixable Hydra bug rather than a hardware wall. Detailed writeup in my notes repo (xbox-weak-hw-notes).
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 05:20 UTC · original

Input addendum: letter keys die on non-US keyboard layouts — use VICTORY_KEYS_FILE for full control

Follow-up to the VICTORY_RAW_KEYS=0 report: after the polling path restored navigation keys, the gamepad-X letter key (needed for the corrupt-save menu's "New Game", and for WASD in gameplay) still never registered. Root cause found in gameinput.rs:

  • pad_key matches letter keys by scan code against hardcoded US-layout positions. Injected keys get scan codes synthesized with MapVirtualKeyW(MAPVK_VK_TO_VSC_EX), which is layout-dependent. On a Russian layout the Latin VKs don't exist, synthesis yields no scan code, and pad_key explicitly returns 0 for uppercase-ASCII VKs without a scan match — the key is dead by design. Enter/Esc/arrows survive because non-letter VKs pass through unchanged. Anyone on AZERTY/Cyrillic/etc. hits this even though the letters are meant to be position-based.

  • The correct channel is VICTORY_KEYS_FILE (already in v2.1, a gift): append <key> [hold s [after s]] lines to the file while the title runs, a thread picks them up within 50 ms, letters get their scan codes from the hardcoded US table (no layout involvement), it works without window focus and — per the source comment — "a driver passes the menus this way". Confirmed active in a live boot. This also obsoletes my keybd_event scripting: full deterministic menu/wizard/gameplay automation from outside the process.

Suggestion for upstream: synthesize scan codes for letters from the US position table (like scripted keys do) instead of MapVirtualKeyW, so physical keyboards on non-US layouts get working letters too. Meanwhile VICTORY_KEYS_FILE is a complete workaround for scripted play.

**@⁠kotekompotek** on GitHub · 2026-12-03 05:20 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7368632559) ## Input addendum: letter keys die on non-US keyboard layouts — use `VICTORY_KEYS_FILE` for full control Follow-up to the `VICTORY_RAW_KEYS=0` report: after the polling path restored navigation keys, the gamepad-X letter key (needed for the corrupt-save menu's "New Game", and for WASD in gameplay) still never registered. Root cause found in `gameinput.rs`: - `pad_key` matches letter keys **by scan code** against hardcoded US-layout positions. Injected keys get scan codes synthesized with `MapVirtualKeyW(MAPVK_VK_TO_VSC_EX)`, which is layout-dependent. On a Russian layout the Latin VKs don't exist, synthesis yields no scan code, and `pad_key` explicitly returns 0 for uppercase-ASCII VKs without a scan match — the key is dead by design. Enter/Esc/arrows survive because non-letter VKs pass through unchanged. Anyone on AZERTY/Cyrillic/etc. hits this even though the letters are meant to be position-based. - **The correct channel is `VICTORY_KEYS_FILE`** (already in v2.1, a gift): append `<key> [hold s [after s]]` lines to the file while the title runs, a thread picks them up within 50 ms, letters get their scan codes from the hardcoded US table (no layout involvement), it works without window focus and — per the source comment — "a driver passes the menus this way". Confirmed active in a live boot. This also obsoletes my keybd_event scripting: full deterministic menu/wizard/gameplay automation from outside the process. Suggestion for upstream: synthesize scan codes for letters from the US position table (like scripted keys do) instead of `MapVirtualKeyW`, so physical keyboards on non-US layouts get working letters too. Meanwhile `VICTORY_KEYS_FILE` is a complete workaround for scripted play.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 07:14 UTC · original

boot-24: 36-minute in-world survival — and the two death modes are now cleanly separated

Weak-hardware rig (i5-8300H, GTX 1050 2GB, 8GB RAM), v2.1 fork, VICTORY_RAW_KEYS=0, world-dist 0.2, window 256KB.

Result: survived ~36 minutes of continuous in-world time (intro credits → black-screen bulk streaming phase ~9 min → daytime coast cinematic), vs the 7-10 minutes of every previous boot. Cause of death was not the streaming watchdog analyzed above — it was host device removal:

ERROR victory_gpu::host: relay: the device was lost before fence value 182133 was reached
  (once it is, every fence reads u64::MAX); device removed: DXGI_ERROR_DEVICE_REMOVED

preceded by a few seconds of no upload buffer warnings (device instance lost mid-submission).

So on this hardware there are two independent killers, and they must be fought separately:

  1. The title's streaming watchdog (int3 at image+0x2279daa): fires within 7-10 min when the visible dense city out-demands the texture pipeline. boot-24 dodged it entirely — during cinematics and black-screen bulk loads the pipeline stays ahead of demand, so the watchdog's zero-resident-tripwire never triggers. This confirms the watchdog is purely demand/throughput imbalance, not corruption.
  2. Driver-level device removal: the hard wall for 2GB VRAM + 8GB RAM. Independent of streaming luck. This is what ends every long run here.

Also confirmed this boot: the reported-memory-size experiment is dead — boot-22 with VICTORY_TITLE_MEMORY_LIMIT_MB=12288 (title saw 12288/7188 MB) died faster (~2 min) than baseline, same watchdog address. The watchdog does not consult xmem memory status at all; the temporally adjacent xmem query in earlier boots was coincidence.

Practical note for future weak-hardware work: there is a direct tension — raising VICTORY_TEXTURE_BUDGET_MB to feed streaming increases GPU-memory pressure (device removal sooner); lowering it starves streaming (watchdog sooner). On a 2GB card both walls are close. The missing datum is the DRED removal reason; capturing it next.

**@⁠kotekompotek** on GitHub · 2026-12-03 07:14 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7370751838) **boot-24: 36-minute in-world survival — and the two death modes are now cleanly separated** Weak-hardware rig (i5-8300H, GTX 1050 2GB, 8GB RAM), v2.1 fork, `VICTORY_RAW_KEYS=0`, world-dist 0.2, window 256KB. Result: survived **~36 minutes** of continuous in-world time (intro credits → black-screen bulk streaming phase ~9 min → daytime coast cinematic), vs the 7-10 minutes of every previous boot. Cause of death was **not** the streaming watchdog analyzed above — it was host device removal: ``` ERROR victory_gpu::host: relay: the device was lost before fence value 182133 was reached (once it is, every fence reads u64::MAX); device removed: DXGI_ERROR_DEVICE_REMOVED ``` preceded by a few seconds of `no upload buffer` warnings (device instance lost mid-submission). So on this hardware there are **two independent killers**, and they must be fought separately: 1. **The title's streaming watchdog** (int3 at image+0x2279daa): fires within 7-10 min when the visible dense city out-demands the texture pipeline. boot-24 dodged it entirely — during cinematics and black-screen bulk loads the pipeline stays ahead of demand, so the watchdog's zero-resident-tripwire never triggers. This confirms the watchdog is purely demand/throughput imbalance, not corruption. 2. **Driver-level device removal**: the hard wall for 2GB VRAM + 8GB RAM. Independent of streaming luck. This is what ends every long run here. Also confirmed this boot: the reported-memory-size experiment is dead — boot-22 with `VICTORY_TITLE_MEMORY_LIMIT_MB=12288` (title saw 12288/7188 MB) died *faster* (~2 min) than baseline, same watchdog address. The watchdog does not consult xmem memory status at all; the temporally adjacent xmem query in earlier boots was coincidence. Practical note for future weak-hardware work: there is a direct tension — raising `VICTORY_TEXTURE_BUDGET_MB` to feed streaming increases GPU-memory pressure (device removal sooner); lowering it starves streaming (watchdog sooner). On a 2GB card both walls are close. The missing datum is the DRED removal reason; capturing it next.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 07:18 UTC · original

boot-24 memory trajectory — the device-removal wall measured (leak-like accumulation)

Telemetry pair from the record 36-min boot, same log line format at both ends:

  • World entry: committed 7849 MB, card 2337 MB in use of budget 3403 MB, shared 622 MB
  • Death (33 min later): committed 12623 MB, card 3722 MB in use of budget 3403 MB, shared 2667 MB

The card's in-use grew monotonically the entire run at ~42 MB/min, finishing 319 MB over the DXGI budget; shared memory grew ~62 MB/min in parallel; process commit +4.7 GB on an 8 GB machine. No plateau at any point — the growth looks leak-like rather than game-cache-shaped (the title on real hardware must stream in and out of a fixed budget; here usage only ratchets up). Eviction was active and watermarks in place (v2.1 fork includes the eviction fix), yet the sum still grew.

Hypothesis to test with DRED (diag build compiling now): either (a) some allocation class is never released back — candidates: per-frame/per-scene resources retained by the deferred-release queue, texture host copies counted against no list, or uploads held by no slot; or (b) the driver itself inflates residency as shared-memory backing accumulates and the removal is the driver giving up on eviction — in which case the faulting allocation at removal will be mundane and the growth above is the real signal. The 36-min survival vs the 7-10-min watchdog deaths also means: whoever wants to reproduce long weak-hardware runs should boot into the black-screen bulk-loading phase, not the panning-city cinematic — scene composition decides which wall you hit first.

**@⁠kotekompotek** on GitHub · 2026-12-03 07:18 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7370841579) **boot-24 memory trajectory — the device-removal wall measured (leak-like accumulation)** Telemetry pair from the record 36-min boot, same log line format at both ends: - World entry: `committed 7849 MB, card 2337 MB in use of budget 3403 MB, shared 622 MB` - Death (33 min later): `committed 12623 MB, card 3722 MB in use of budget 3403 MB, shared 2667 MB` The card's in-use grew monotonically the entire run at ~42 MB/min, finishing **319 MB over the DXGI budget**; shared memory grew ~62 MB/min in parallel; process commit +4.7 GB on an 8 GB machine. No plateau at any point — the growth looks leak-like rather than game-cache-shaped (the title on real hardware must stream in *and out* of a fixed budget; here usage only ratchets up). Eviction was active and watermarks in place (v2.1 fork includes the eviction fix), yet the sum still grew. Hypothesis to test with DRED (diag build compiling now): either (a) some allocation class is never released back — candidates: per-frame/per-scene resources retained by the deferred-release queue, texture host copies counted against no list, or uploads held by no slot; or (b) the driver itself inflates residency as shared-memory backing accumulates and the removal is the driver giving up on eviction — in which case the faulting allocation at removal will be mundane and the growth above is the real signal. The 36-min survival vs the 7-10-min watchdog deaths also means: **whoever wants to reproduce long weak-hardware runs should boot into the black-screen bulk-loading phase, not the panning-city cinematic** — scene composition decides which wall you hit first.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 08:26 UTC · original

Input fully solved on no-hardware-pad machines: ViGEm virtual Xbox 360 + file-driven feeder

For anyone scripting this game on a PC without a physical controller: the keyboard-only paths (injection, keys-file) cannot produce gamepad-only inputs (X button, sticks) because first_pad early-returns when no physical pad occupies slot 0. The clean fix is a virtual pad:

  • Install ViGEmBus (nefarius, v1.22.0 — still the standard signed driver)
  • Build a tiny feeder against ViGEmClient (v1.16.18.0; needs one patch: #include <thread> for non-MSVC toolchains). Mine is 120 lines of C watching a text file for lines like X 1.5 (button + hold seconds) and calling vigem_target_x360_update — compiled with mingw gcc in one command, static, no dependencies.
  • Hydra picks the virtual pad up through its normal XInput path — the game sees a completely real Xbox 360 controller. X-input verification: XInputGetState(0) connected, buttons read back live.

This unblocks: the corrupt-save menu (X = New Game), cinematic skip holds, the legal wizard trivially, and finally true gameplay input in free-roam (WASD-equivalent stick input, camera). Testing in boot-26 now.

Side observation from boot-25 (diag build): with the watchdog confirmed as the dominant killer in dense-city scenes, the copystat counters showed the shadow-copy machinery refreshing 2.7-3.6 GB per ~6 s in the final minutes — individual regions of 30-56 MB/frame. On a machine already paging heavily, that churn plausibly competes with the streaming pipeline for memory bandwidth. If there is a knob to narrow what gets shadow-copied (watches vs copies), it may directly extend watchdog survival. The streaming bottleneck here is compounded by the game archives living on a spinning HDD (dstorage correctly detects and serializes reads) — console-class NVMe streaming expectations vs a laptop HDD is a fundamental part of the weak-hardware problem.

**@⁠kotekompotek** on GitHub · 2026-12-03 08:26 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7372275496) **Input fully solved on no-hardware-pad machines: ViGEm virtual Xbox 360 + file-driven feeder** For anyone scripting this game on a PC without a physical controller: the keyboard-only paths (injection, keys-file) cannot produce gamepad-only inputs (X button, sticks) because `first_pad` early-returns when no physical pad occupies slot 0. The clean fix is a virtual pad: - Install **ViGEmBus** (nefarius, v1.22.0 — still the standard signed driver) - Build a tiny feeder against **ViGEmClient** (v1.16.18.0; needs one patch: `#include <thread>` for non-MSVC toolchains). Mine is 120 lines of C watching a text file for lines like `X 1.5` (button + hold seconds) and calling `vigem_target_x360_update` — compiled with mingw gcc in one command, static, no dependencies. - Hydra picks the virtual pad up through its normal XInput path — the game sees a completely real Xbox 360 controller. X-input verification: `XInputGetState(0)` connected, buttons read back live. This unblocks: the corrupt-save menu (X = New Game), cinematic skip holds, the legal wizard trivially, and finally true gameplay input in free-roam (WASD-equivalent stick input, camera). Testing in boot-26 now. Side observation from boot-25 (diag build): with the watchdog confirmed as the dominant killer in dense-city scenes, the copystat counters showed the shadow-copy machinery refreshing **2.7-3.6 GB per ~6 s** in the final minutes — individual regions of 30-56 MB/frame. On a machine already paging heavily, that churn plausibly competes with the streaming pipeline for memory bandwidth. If there is a knob to narrow what gets shadow-copied (watches vs copies), it may directly extend watchdog survival. The streaming bottleneck here is compounded by the game archives living on a **spinning HDD** (dstorage correctly detects and serializes reads) — console-class NVMe streaming expectations vs a laptop HDD is a fundamental part of the weak-hardware problem.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 10:31 UTC · original

Weak-hardware deep dive, part 3: the eviction blind spot — textures can enter the card but never leave

Hardware: i5-8300H / GTX 1050 2GB / 8GB RAM / archives on HDD. v2.1 HEAD.

Following up on the two death modes: instrumented a full stall timeline on the first save-load boot and found the shared root cause — plus activation gaps meaning no weak-hardware run has ever had the defenses this fork already built.

1. VICTORY_SLOT_EVICT is opt-in, off by default, and Auto-Tune.ps1 never sets it.

slot_evict_settings() requires exactly =1. Without it the per-frame sweep never frees slot-shown textures. Measured on a prologue-save load (pool 1536): texture upload queue grew +500 entries/min (8.5k → 12k), uploaded bytes flat at 632 MB for 5+ minutes, HDD read rate literally 0 MB/s (OS perf counter), texture blocks full (138 MB free), textures let go with their slots under pressure: 0 — zero evictions in the entire run. The pipeline starves to zero deliveries; watchdog fires at +0x2279daa as always. Same monotonic accumulation as the device-removed death (+42 MB/min, died +319 MB over budget): one behavior, two walls.

2. The BCPack SSD stream cache has never been active in any --set-driven run.

BcpackCache::from_env reads only process env vars; the Config fallback chain never reaches it. Unless you pass --set VICTORY_CACHE_DIR=... explicitly, the cache silently doesn't exist, even though the dstorage line mentions "SSD cache hits". On HDD machines this cache is arguably the single most important mitigation. Suggest: consult Config::cache_dir, or at least log an explicit "SSD stream cache DISABLED (no dir)" line.

3. First boot with everything on (pool 4608 + SLOT_EVICT=1 + cache + DSTORAGE_WORKERS=2) ended in a full system bugcheck — first BSOD this machine has ever produced.

0x7e, exception 0x80000003 (int3) in kernel context. Caveat for anyone testing this combo on weak hardware: it happened mid-boot in a memory-stable phase (commit flat, card at 69%, eviction never even triggered), so causality is unclear — but user-mode code cannot bugcheck a kernel; a driver hit a breakpoint. Reproducibility test running now; will report whether it recurs. If anyone else on Kepler/Pascal-era cards tries SLOT_EVICT + bcpack cache, watch for system-level instability, not just process crashes.

4. Input is fully solved (context for the above): ViGEmBus virtual x360 pad + a 120-line C feeder reading commands from a file — the gamepad path (first_pad()) now always has a pad, X-button menus passable for the first time. Wrote up the wiring in the notes repo linked earlier.

**@⁠kotekompotek** on GitHub · 2026-12-03 10:31 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7375355268) **Weak-hardware deep dive, part 3: the eviction blind spot — textures can enter the card but never leave** Hardware: i5-8300H / GTX 1050 2GB / 8GB RAM / archives on HDD. v2.1 HEAD. Following up on the two death modes: instrumented a full stall timeline on the first save-load boot and found the shared root cause — plus activation gaps meaning no weak-hardware run has ever had the defenses this fork already built. **1. `VICTORY_SLOT_EVICT` is opt-in, off by default, and Auto-Tune.ps1 never sets it.** `slot_evict_settings()` requires exactly `=1`. Without it the per-frame sweep never frees slot-shown textures. Measured on a prologue-save load (pool 1536): texture upload queue grew +500 entries/min (8.5k → 12k), uploaded bytes flat at 632 MB for 5+ minutes, HDD read rate literally 0 MB/s (OS perf counter), texture blocks full (138 MB free), `textures let go with their slots under pressure: 0` — zero evictions in the entire run. The pipeline starves to zero deliveries; watchdog fires at +0x2279daa as always. Same monotonic accumulation as the device-removed death (+42 MB/min, died +319 MB over budget): one behavior, two walls. **2. The BCPack SSD stream cache has never been active in any `--set`-driven run.** `BcpackCache::from_env` reads only process env vars; the `Config` fallback chain never reaches it. Unless you pass `--set VICTORY_CACHE_DIR=...` explicitly, the cache silently doesn't exist, even though the dstorage line mentions "SSD cache hits". On HDD machines this cache is arguably the single most important mitigation. Suggest: consult `Config::cache_dir`, or at least log an explicit "SSD stream cache DISABLED (no dir)" line. **3. First boot with everything on (pool 4608 + SLOT_EVICT=1 + cache + DSTORAGE_WORKERS=2) ended in a full system bugcheck — first BSOD this machine has ever produced.** 0x7e, exception 0x80000003 (int3) in kernel context. Caveat for anyone testing this combo on weak hardware: it happened mid-boot in a memory-stable phase (commit flat, card at 69%, eviction never even triggered), so causality is unclear — but user-mode code cannot bugcheck a kernel; a driver hit a breakpoint. Reproducibility test running now; will report whether it recurs. If anyone else on Kepler/Pascal-era cards tries SLOT_EVICT + bcpack cache, watch for system-level instability, not just process crashes. **4. Input is fully solved** (context for the above): ViGEmBus virtual x360 pad + a 120-line C feeder reading commands from a file — the gamepad path (`first_pad()`) now always has a pad, X-button menus passable for the first time. Wrote up the wiring in the notes repo linked earlier.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 11:36 UTC · original

Weak-hardware deep dive, part 4: the structural deadlock decoded — admission line vs eviction trigger can never meet on small cards

Following the part-3 eviction findings to ground. Both a pool-4608 boot and a pool-1536 boot died the same way: texture creation frozen, index-upload queue exploding (12k+ waiting), card pinned at exactly 2352-2353 MB (69% of the 3403 budget) for 20+ minutes. The mechanics in resource.rs explain it exactly:

  1. Texture admission (texture queue's room): weighed = used - blocks_free + buffers_kept(438 MB) + targets_kept(230 MB) must stay under effective_line = room_line - face_headroom(256 MB). Default room_line here computes to 3063 MB (90%), effective 2807 MB.
  2. Measured in-run: weighed = 2941 > 2807 → "no room, new textures wait" — permanently.
  3. Eviction (VICTORY_SLOT_EVICT=1) triggers only when card usage passes 85% (2892 MB). But card usage can never reach 2892 because the admission test stops feeding it at ~2353 — the buffer/target reservations plus the face headroom eat the entire gap between the two thresholds.
  4. Result: textures wait for room → admissions stop → card frozen below the eviction trigger → nothing is ever freed → deadlock by design. Zero eviction events in every run in project history, across all pool sizes.

On big cards this can't happen (the reservations are a small fraction), but on a 2-3 GB budget the two systems are structurally misaligned. Suggested upstream fixes, in increasing order of ambition: (a) Auto-Tune should pair SLOT_EVICT=1 with an eviction percent below the texture-admission pin point, not the flat 85; (b) eviction pressure should consider the texture-block/room-test state, not just total card usage; (c) the room test and the eviction trigger should be derived from one shared watermark so they cannot drift apart.

boot with SLOT_EVICT_PERCENT=65 (below the natural pin) + TEXTURE_ROOM_PERCENT=94: eviction fired for the first time ever — then the run died 5 seconds later, NOT to the watchdog: access violation reading [null+0x48] at image +0x508f303, inside SIMD-heavy quaternion/scene-evaluation code that walks a structure chain ([rsi+0x30] came back null). Interpretation, caveat-heavy: with eviction active the scene streamed fast enough to be evaluated, and the title dereferenced a component whose streaming data wasn't resident — a race the title never sees on console because assets are always there. A first-ever data-not-ready crash is arguably progress past the starvation wall, not a regression. Isolation boot (eviction 65, default room line) running now to separate eviction-caused vs room-percent-caused.

Also worth flagging: written=35 MB with hits=35500 in the final minute — once warm, the BCPack cache serves the entire re-request storm from SSD. Cache hits were serving 2.6 GB in minutes where cold boots decoded for half an hour. For HDD machines the warm-cache multi-boot strategy is the single biggest lever: the first boot populates, subsequent boots ride it.

**@⁠kotekompotek** on GitHub · 2026-12-03 11:36 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7376944302) **Weak-hardware deep dive, part 4: the structural deadlock decoded — admission line vs eviction trigger can never meet on small cards** Following the part-3 eviction findings to ground. Both a pool-4608 boot and a pool-1536 boot died the same way: texture creation frozen, index-upload queue exploding (12k+ waiting), card pinned at exactly 2352-2353 MB (69% of the 3403 budget) for 20+ minutes. The mechanics in `resource.rs` explain it exactly: 1. Texture admission (`texture queue's room`): `weighed = used - blocks_free + buffers_kept(438 MB) + targets_kept(230 MB)` must stay under `effective_line = room_line - face_headroom(256 MB)`. Default `room_line` here computes to 3063 MB (90%), effective **2807 MB**. 2. Measured in-run: `weighed = 2941 > 2807` → "no room, new textures wait" — permanently. 3. Eviction (`VICTORY_SLOT_EVICT=1`) triggers only when card usage passes **85%** (2892 MB). But card usage can never reach 2892 because the admission test stops feeding it at ~2353 — the buffer/target reservations plus the face headroom eat the entire gap between the two thresholds. 4. Result: textures wait for room → admissions stop → card frozen below the eviction trigger → nothing is ever freed → deadlock by design. Zero eviction events in every run in project history, across all pool sizes. On big cards this can't happen (the reservations are a small fraction), but on a 2-3 GB budget the two systems are structurally misaligned. Suggested upstream fixes, in increasing order of ambition: (a) Auto-Tune should pair `SLOT_EVICT=1` with an eviction percent *below* the texture-admission pin point, not the flat 85; (b) eviction pressure should consider the texture-block/room-test state, not just total card usage; (c) the room test and the eviction trigger should be derived from one shared watermark so they cannot drift apart. **boot with `SLOT_EVICT_PERCENT=65` (below the natural pin) + `TEXTURE_ROOM_PERCENT=94`: eviction fired for the first time ever** — then the run died 5 seconds later, NOT to the watchdog: access violation reading `[null+0x48]` at image `+0x508f303`, inside SIMD-heavy quaternion/scene-evaluation code that walks a structure chain (`[rsi+0x30]` came back null). Interpretation, caveat-heavy: with eviction active the scene streamed fast enough to be *evaluated*, and the title dereferenced a component whose streaming data wasn't resident — a race the title never sees on console because assets are always there. A first-ever data-not-ready crash is arguably progress past the starvation wall, not a regression. Isolation boot (eviction 65, default room line) running now to separate eviction-caused vs room-percent-caused. **Also worth flagging**: `written=35 MB` with `hits=35500` in the final minute — once warm, the BCPack cache serves the entire re-request storm from SSD. Cache hits were serving 2.6 GB in minutes where cold boots decoded for half an hour. For HDD machines the warm-cache multi-boot strategy is the single biggest lever: the first boot populates, subsequent boots ride it.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-03 13:01 UTC · original

Part 5 — the capacity wall broken: VICTORY_TEXTURE_EDGE_MAX completes the world load on a 2 GB card (first time ever), plus the admission-brake lesson.

The breakthrough. After the eviction findings in parts 3-4, I mapped the remaining wall precisely: it is capacity, not speed. Even with warm cache + eviction + room=100 delivering textures 4x faster than ever (1939 MB in 10 minutes), the texture queue never drained, the card pinned over budget, delivery hit zero, watchdog. The working set simply does not fit.

VICTORY_TEXTURE_EDGE_MAX=256 changes the equilibrium fundamentally — textures the title fills are kept/uploaded from their first mip level within 256px, a 4-16x working-set reduction. With it, the initial world load completed for the first time in this project's history: Vice City at dusk rendering, city lights to the horizon, 336 draws/frame at ~2.6fps on a GTX 1050 2GB / i5-8300H / 8GB. Textures visibly low-detail, exactly as documented, but the world is there and streaming.

The admission-brake lesson. My first EDGE_MAX run paired it with VICTORY_TEXTURE_ROOM_PERCENT=100 — a mistake I can now warn others about. Room=100 removes the admission brake entirely; the card physically overfilled (4013 MB against a 3403 MB budget), delivery hit zero anyway, watchdog after ~3 minutes in-world. The correct combination is EDGE_MAX with the default room line: the clamp shrinks the working set so that admission control can finally work as designed — textures get admitted because there genuinely is room. Test of that pairing is in flight right now.

For the docs/config guidance: weak-hardware setups should probably get VICTORY_TEXTURE_EDGE_MAX (512 or 256) from Auto-Tune alongside the cache and pool settings. It is the single largest lever I have found in two weeks of controlled boots — bigger than eviction, bigger than the cache, bigger than pool sizing, because it attacks the capacity wall itself rather than the symptoms. Happy to write the tuning guide section if useful.

Machine recap: GTX 1050 2GB, i5-8300H, 8GB RAM, game archives on HDD, SSD bcpack cache 10GB warm, pool 1536, eviction 65%, world dist 0.2.

**@⁠kotekompotek** on GitHub · 2026-12-03 13:01 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7379209134) Part 5 — the capacity wall broken: `VICTORY_TEXTURE_EDGE_MAX` completes the world load on a 2 GB card (first time ever), plus the admission-brake lesson. **The breakthrough.** After the eviction findings in parts 3-4, I mapped the remaining wall precisely: it is *capacity*, not speed. Even with warm cache + eviction + room=100 delivering textures 4x faster than ever (1939 MB in 10 minutes), the texture queue never drained, the card pinned over budget, delivery hit zero, watchdog. The working set simply does not fit. `VICTORY_TEXTURE_EDGE_MAX=256` changes the equilibrium fundamentally — textures the title fills are kept/uploaded from their first mip level within 256px, a 4-16x working-set reduction. With it, **the initial world load completed for the first time in this project's history**: Vice City at dusk rendering, city lights to the horizon, 336 draws/frame at ~2.6fps on a GTX 1050 2GB / i5-8300H / 8GB. Textures visibly low-detail, exactly as documented, but the world is *there* and streaming. **The admission-brake lesson.** My first EDGE_MAX run paired it with `VICTORY_TEXTURE_ROOM_PERCENT=100` — a mistake I can now warn others about. Room=100 removes the admission brake entirely; the card physically overfilled (4013 MB against a 3403 MB budget), delivery hit zero anyway, watchdog after ~3 minutes in-world. The correct combination is EDGE_MAX with the *default* room line: the clamp shrinks the working set so that admission control can finally work as designed — textures get admitted because there genuinely is room. Test of that pairing is in flight right now. **For the docs/config guidance**: weak-hardware setups should probably get `VICTORY_TEXTURE_EDGE_MAX` (512 or 256) from Auto-Tune alongside the cache and pool settings. It is the single largest lever I have found in two weeks of controlled boots — bigger than eviction, bigger than the cache, bigger than pool sizing, because it attacks the capacity wall itself rather than the symptoms. Happy to write the tuning guide section if useful. Machine recap: GTX 1050 2GB, i5-8300H, 8GB RAM, game archives on HDD, SSD bcpack cache 10GB warm, pool 1536, eviction 65%, world dist 0.2.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-04 04:13 UTC · original

Part 6 — in-world survival 22+ minutes, the render-target scissors, and why CARD_ROOM_FOR_TARGETS_MB=0 is a trap on 2 GB cards.

Setup change that mattered: pagefile raised to a fixed 52 GB (commit limit ~60 GB, per the launch-time recommendation the loader prints). This eliminated the entire class of memory-exhaustion/paging-livelock deaths — the machine no longer dies at commit ~10-12 GB. Cost: had to delete another game to fit the file, which says everything about running this on 8 GB machines.

boot-36 (EDGE_MAX=256 + room=100 + evict=65 + pool=3072): world load completed, then 22+ minutes alive in-world — night cityscape cinematic progressing to a daylit palm-coast scene with skyscrapers, streaming slowly filling detail at 1-2.4 fps. The system reached a remarkable equilibrium: card pinned ~4066 over the 3403 budget, texture delivery trickling then freezing to zero, eviction firing but finding ~0 MB eligible (everything shader-index-pinned), yet the process stayed alive and rendering. Notable observation: the +0x2279daa watchdog never fired in this state — it seems the starvation detector does not engage while presents continue. The cinematic did not end in 22 minutes, consistent with it being streaming-gated rather than timed.

boot-37 — the negative result that maps the scissors: same config plus VICTORY_CARD_ROOM_FOR_TARGETS_MB=0. The reservation went to zero as advertised — and the run died in 9 minutes to a clean driver-level OOM: host state prelude did not record (E_OUTOFMEMORY) at card 3932. The reservation is load-bearing on 2 GB cards: without it, textures fill everything, then render-target creation or command recording itself fails. This is the true scissors of weak hardware — textures vs render targets competing for a budget that cannot hold both, and the admission system mediating that fight is what keeps the process alive at all.

Measured render-target pressure on our config: 710 MB "kept for render targets" in-world (growing), at scene ~720p/Series-S internally but 2560x1440 output. The source comment's measurements (2.2-3.1 GB on better hardware) suggest render targets scale hard with output resolution. If output resolution is the dominant term, a true 720p output path (or upscaler-side output reduction) might be the single largest remaining weak-hardware lever — bigger than any admission tuning. --res currently offers 1440/1080to1440/4k only.

Current best-known config for 2GB/8GB (survival-ranked): EDGE_MAX=256, room=default-or-100 (both reach world; 100 faster but overfill-prone), eviction 65, pool 3072, cache dir on SSD, FSR framegen off, world dist 0.2, pagefile >= 40GB fixed. Long-run test of whether the streaming-gated cinematic ever completes under the stuck-but-alive equilibrium is in flight.

**@⁠kotekompotek** on GitHub · 2026-12-04 04:13 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7400956062) Part 6 — in-world survival 22+ minutes, the render-target scissors, and why `CARD_ROOM_FOR_TARGETS_MB=0` is a trap on 2 GB cards. **Setup change that mattered**: pagefile raised to a fixed 52 GB (commit limit ~60 GB, per the launch-time recommendation the loader prints). This eliminated the entire class of memory-exhaustion/paging-livelock deaths — the machine no longer dies at commit ~10-12 GB. Cost: had to delete another game to fit the file, which says everything about running this on 8 GB machines. **boot-36 (EDGE_MAX=256 + room=100 + evict=65 + pool=3072)**: world load completed, then **22+ minutes alive in-world** — night cityscape cinematic progressing to a daylit palm-coast scene with skyscrapers, streaming slowly filling detail at 1-2.4 fps. The system reached a remarkable equilibrium: card pinned ~4066 over the 3403 budget, texture delivery trickling then freezing to zero, eviction firing but finding ~0 MB eligible (everything shader-index-pinned), **yet the process stayed alive and rendering**. Notable observation: the +0x2279daa watchdog never fired in this state — it seems the starvation detector does not engage while presents continue. The cinematic did not end in 22 minutes, consistent with it being streaming-gated rather than timed. **boot-37 — the negative result that maps the scissors**: same config plus `VICTORY_CARD_ROOM_FOR_TARGETS_MB=0`. The reservation went to zero as advertised — and the run died in **9 minutes** to a clean driver-level OOM: `host state prelude did not record (E_OUTOFMEMORY)` at card 3932. The reservation is load-bearing on 2 GB cards: without it, textures fill everything, then render-target creation or command recording itself fails. This is the true scissors of weak hardware — textures vs render targets competing for a budget that cannot hold both, and the admission system mediating that fight is what keeps the process alive at all. **Measured render-target pressure on our config**: 710 MB "kept for render targets" in-world (growing), at scene ~720p/Series-S internally but 2560x1440 output. The source comment's measurements (2.2-3.1 GB on better hardware) suggest render targets scale hard with output resolution. If output resolution is the dominant term, a true 720p output path (or upscaler-side output reduction) might be the single largest remaining weak-hardware lever — bigger than any admission tuning. `--res` currently offers 1440/1080to1440/4k only. **Current best-known config for 2GB/8GB** (survival-ranked): EDGE_MAX=256, room=default-or-100 (both reach world; 100 faster but overfill-prone), eviction 65, pool 3072, cache dir on SSD, FSR framegen off, world dist 0.2, pagefile >= 40GB fixed. Long-run test of whether the streaming-gated cinematic ever completes under the stuck-but-alive equilibrium is in flight.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-04 05:17 UTC · original

Part 7 — the eviction pinning evidence, quantified: draw tables say 0 textures in use, index slots say 14148 untouchable. Plus the save-path experiment and a concrete ask.

The number that matters. From the eviction stats line in a stuck run: "of the last 16742 idle-looking textures, 0 kept as a draw's table showed them, 14148 not to be taken (a slot shaders pick by index shows them)". Read together: the draw-table check — the accurate one — found ZERO textures actually in use by recent draws. The index-slot check — the conservative one — blocked 14148 of them anyway. The entire eviction system is neutered by descriptor-heap conservatism, not by actual usage. On a 2 GB card this is the difference between a live texture cycle and a permanent admission deadlock.

I understand why the conservative check exists: a shader-visible descriptor referenced by index can be picked up by any future draw, so freeing its memory is unsafe without proof of non-use. But the data shows the accurate check already exists alongside — draw tables are tracked. A mode that evicts textures absent from recent draw tables even when index-pinned, combined with the already-instrumented re-make path ("0 let go before and made again, 0 of them within 2 s"), would trade today's permanent zero-delivery deadlock for occasional brief re-uploads. On weak hardware that is strictly better. Suggest: VICTORY_SLOT_EVICT_AGGRESSIVE=1 — evict unless in a draw table of the last N frames, ignore index-slot pinning, let the remake machinery handle the rare miss.

The save-path experiment. Because the intro cinematic is a flyover of the whole city (unbounded streaming demand by design), I tested loading the prologue autosave instead — a single fixed area with a finite working set, the load that was hopeless before EDGE_MAX. Result: the prologue area (golden-hour savanna, 566-630 draws/frame) now loads and renders at 2.9 fps and rising — impossible before the mip clamp. But the same admission deadlock forms ~10 minutes in: uploads freeze, the shader-index pinning again prevents any relief. The world is right there, visible, unplayable only because the texture cycle cannot turn over.

Where this leaves the weak-hardware picture: everything except the texture cycle is now solved or worked around on 2GB/8GB — input (ViGEm virtual pad), the memory ceiling (52GB pagefile), the capacity wall (EDGE_MAX), the cache, the watchdog understanding. The single remaining blocker is eviction that cannot evict. Everything in parts 3-7 points at the same one-line conclusion: the index-slot conservatism needs an opt-out.

**@⁠kotekompotek** on GitHub · 2026-12-04 05:17 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7402218324) Part 7 — the eviction pinning evidence, quantified: draw tables say 0 textures in use, index slots say 14148 untouchable. Plus the save-path experiment and a concrete ask. **The number that matters.** From the eviction stats line in a stuck run: "of the last 16742 idle-looking textures, **0 kept as a draw's table showed them**, **14148 not to be taken (a slot shaders pick by index shows them)**". Read together: the draw-table check — the accurate one — found ZERO textures actually in use by recent draws. The index-slot check — the conservative one — blocked 14148 of them anyway. The entire eviction system is neutered by descriptor-heap conservatism, not by actual usage. On a 2 GB card this is the difference between a live texture cycle and a permanent admission deadlock. I understand why the conservative check exists: a shader-visible descriptor referenced by index can be picked up by any future draw, so freeing its memory is unsafe without proof of non-use. But the data shows the accurate check already exists alongside — draw tables are tracked. A mode that evicts textures absent from recent draw tables even when index-pinned, combined with the already-instrumented re-make path ("0 let go before and made again, 0 of them within 2 s"), would trade today's permanent zero-delivery deadlock for occasional brief re-uploads. On weak hardware that is strictly better. Suggest: `VICTORY_SLOT_EVICT_AGGRESSIVE=1` — evict unless in a draw table of the last N frames, ignore index-slot pinning, let the remake machinery handle the rare miss. **The save-path experiment.** Because the intro cinematic is a flyover of the whole city (unbounded streaming demand by design), I tested loading the prologue autosave instead — a single fixed area with a finite working set, the load that was hopeless before EDGE_MAX. Result: the prologue area (golden-hour savanna, 566-630 draws/frame) now **loads and renders at 2.9 fps and rising** — impossible before the mip clamp. But the same admission deadlock forms ~10 minutes in: uploads freeze, the shader-index pinning again prevents any relief. The world is *right there*, visible, unplayable only because the texture cycle cannot turn over. **Where this leaves the weak-hardware picture**: everything except the texture cycle is now solved or worked around on 2GB/8GB — input (ViGEm virtual pad), the memory ceiling (52GB pagefile), the capacity wall (EDGE_MAX), the cache, the watchdog understanding. The single remaining blocker is eviction that cannot evict. Everything in parts 3-7 points at the same one-line conclusion: the index-slot conservatism needs an opt-out.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-04 08:02 UTC · original

Part 8 — the smoking gun: VICTORY_SAMPLED_MARKS proves the shader-index pinning is 99.99% dead weight (936 MB of textures no shader ever samples)

Setup: save-load path into the prologue, VICTORY_TEXTURE_EDGE_MAX=256, VICTORY_SLOT_EVICT=1, VICTORY_SLOT_EVICT_PERCENT=40, pool 3072, warm cache. The machine: GTX 1050 2GB, 8GB RAM, 52GB pagefile.

Two lines from the same second of the same boot, one minute apart, tell the whole story:

victory_gpu::host: textures let go with their slots under pressure (VICTORY_SLOT_EVICT), since the start:
  0 textures (0 MB), 0 slots put back to waiting, ...
  the last look: evicting, of 16821 idle-looking textures 0 kept as a table showed them lately
  and 13248 not to be taken (a slot shaders pick by index shows them)

victory_gpu::sampled: texture slots shaders sampled (VICTORY_SAMPLED_MARKS=1, VRAM):
  25688 marked over the last 30 frames; slot eviction's last pass: of 13252 textures shown by
  a slot shaders pick by index, 13251 were marked by no shader within its idle time (936 MB)

Read those numbers against each other:

  • 16,821 textures look idle (no draw table has shown them lately — the accurate check passes them as evictable)
  • 13,248 of them cannot be taken because "a slot shaders pick by index shows them" — the conservative descriptor check pins them
  • but the sampled-marks pass then proves: of those same 13,252 index-pinned textures, 13,251 were marked by NO shader within their idle time. Exactly one texture of thirteen thousand was actually sampled. The pinned mass is 936 MB — on a card whose entire texture budget is ~1.1 GB, over 99.99% of the pinned memory is dead weight.

So the index-slot pinning is not just conservative — it is almost perfectly wrong. Nearly every texture it protects is never read through the index path at all. Meanwhile the system sits in the documented equilibrium: eviction frees 0 MB forever, admission blocks, the queue never drains.

And one more observation from the same boot that makes this hurt more: the pipeline here was flowing — uploads climbed 588 → 2693 MB in five minutes, the prologue area kept gaining detail, fps rose to 3.0 — because 0 slots were waiting for their memory. The difference from prior frozen boots is not eviction (still 0 MB freed); it is that the prologue working set at mip-256 is small enough that admission rarely blocks. The moment the scene demands more than fits (the city), the pinning wall returns in full force.

This is now three independent proofs of the same defect, easiest to hardest to collect:

  1. the arithmetic proof (part 7): accurate check says 0 in use, index check pins 14,148 of 16,742
  2. the eviction-futility proof: VICTORY_SLOT_EVICT across 65/85/40% triggers frees 0 MB in every boot
  3. the direct-observation proof (this one): sampled marks show 13,251 of 13,252 pinned textures are never sampled — 936 MB pinned for nothing

The aggressive-eviction mode proposed in part 7 remains the fix, and the sampled-marks machinery now in the tree makes it safer than when first proposed: eviction can consult actual shader sampling rather than descriptor presence. A texture whose slot is index-visible but which no shader has sampled within its idle window is exactly as safe to evict as one not visible at all — if a draw does end up needing it, the existing next_start / first_viewed / texture_slot_flip machinery handles the re-upload, as it already does for the small set eviction does manage to take.

Happy to test any experimental build with such a mode on the same hardware — this machine reproduces the pinning wall 100% of the time in the city path, so it is a perfect testbed.

**@⁠kotekompotek** on GitHub · 2026-12-04 08:02 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7405421831) **Part 8 — the smoking gun: `VICTORY_SAMPLED_MARKS` proves the shader-index pinning is 99.99% dead weight (936 MB of textures no shader ever samples)** Setup: save-load path into the prologue, `VICTORY_TEXTURE_EDGE_MAX=256`, `VICTORY_SLOT_EVICT=1`, `VICTORY_SLOT_EVICT_PERCENT=40`, pool 3072, warm cache. The machine: GTX 1050 2GB, 8GB RAM, 52GB pagefile. Two lines from the same second of the same boot, one minute apart, tell the whole story: ``` victory_gpu::host: textures let go with their slots under pressure (VICTORY_SLOT_EVICT), since the start: 0 textures (0 MB), 0 slots put back to waiting, ... the last look: evicting, of 16821 idle-looking textures 0 kept as a table showed them lately and 13248 not to be taken (a slot shaders pick by index shows them) victory_gpu::sampled: texture slots shaders sampled (VICTORY_SAMPLED_MARKS=1, VRAM): 25688 marked over the last 30 frames; slot eviction's last pass: of 13252 textures shown by a slot shaders pick by index, 13251 were marked by no shader within its idle time (936 MB) ``` Read those numbers against each other: - **16,821** textures look idle (no draw table has shown them lately — the accurate check passes them as evictable) - **13,248** of them cannot be taken because "a slot shaders pick by index shows them" — the conservative descriptor check pins them - but the sampled-marks pass then proves: of those same 13,252 index-pinned textures, **13,251 were marked by NO shader within their idle time**. Exactly **one** texture of thirteen thousand was actually sampled. The pinned mass is **936 MB** — on a card whose entire texture budget is ~1.1 GB, over 99.99% of the pinned memory is dead weight. So the index-slot pinning is not just conservative — it is almost perfectly wrong. Nearly every texture it protects is never read through the index path at all. Meanwhile the system sits in the documented equilibrium: eviction frees 0 MB forever, admission blocks, the queue never drains. And one more observation from the same boot that makes this hurt more: the pipeline here was *flowing* — uploads climbed 588 → 2693 MB in five minutes, the prologue area kept gaining detail, fps rose to 3.0 — because `0 slots were waiting for their memory`. The difference from prior frozen boots is not eviction (still 0 MB freed); it is that the prologue working set at mip-256 is small enough that admission rarely blocks. The moment the scene demands more than fits (the city), the pinning wall returns in full force. This is now three independent proofs of the same defect, easiest to hardest to collect: 1. the arithmetic proof (part 7): accurate check says 0 in use, index check pins 14,148 of 16,742 2. the eviction-futility proof: `VICTORY_SLOT_EVICT` across 65/85/40% triggers frees 0 MB in every boot 3. the direct-observation proof (this one): sampled marks show 13,251 of 13,252 pinned textures are never sampled — 936 MB pinned for nothing The aggressive-eviction mode proposed in part 7 remains the fix, and the sampled-marks machinery now in the tree makes it safer than when first proposed: eviction can consult *actual shader sampling* rather than descriptor presence. A texture whose slot is index-visible but which no shader has sampled within its idle window is exactly as safe to evict as one not visible at all — if a draw does end up needing it, the existing `next_start` / `first_viewed` / texture_slot_flip machinery handles the re-upload, as it already does for the small set eviction does manage to take. Happy to test any experimental build with such a mode on the same hardware — this machine reproduces the pinning wall 100% of the time in the city path, so it is a perfect testbed.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-04 08:14 UTC · original

Part 9 — GTA VI prologue gameplay reached on a GTX 1050 2GB, with working gamepad input

It happened. Boot config: save-load path, VICTORY_TEXTURE_EDGE_MAX=256, VICTORY_SLOT_EVICT=1, VICTORY_SLOT_EVICT_PERCENT=40, pool 3072, warm SSD cache, 52GB pagefile, --series-s --res 1080to1440 --fps 30.

  • The pipeline never deadlocked this time: uploads flowed continuously at ~400 MB/min for 20+ minutes (588 → 5009 MB delivered). The decisive difference visible in the queue stats: 0 waiting for their memory — admission never blocked, because the prologue working set at mip-256 actually fits the card. Eviction still freed 0 MB the whole boot; it turned out not to matter on this path.
  • In-world, a START press opened the pause menu — input works end-to-end through a virtual ViGEm x360 pad, and the pause menu only exists in gameplay state. Menu header confirmed ПРОЛОГ (in-mission, checkpoint options offered). Right stick input turned the in-game camera; the sunset vista panned exactly as commanded. Left stick walk produced no obvious motion yet — at ~2 fps a 6-second hold is a dozen frames, hard to tell; longer holds untested.
  • The prologue area renders as a golden savanna at sunset — acacia-like trees, animal silhouettes (a boar, deer-like shapes), 650–800 draws/frame at 1.7–3 fps. Menu fps 11.4. Textures are heavily mip-clamped (expected at 256), geometry all present.

So the end-to-end proof now exists: this 2 GB card + 8 GB RAM machine boots GTA VI, loads the prologue save, renders the world, and accepts player input. It is glacial but alive and — with the big pagefile — stable indefinitely.

Remaining walls, in order of pain:

  1. The city path still deadlocks. The prologue fits at mip-256; the city does not (boots 36/38 frozen equilibrium, documented in part 7). The city needs either the aggressive-eviction fix (parts 7/8 — now proven three ways, including sampled-marks showing 99.99% of pinned textures are never sampled) or a yet smaller mip clamp. I will try VICTORY_TEXTURE_EDGE_MAX=128 on the city path next.
  2. Render-target scissors (~700 MB at 1440p output even with series-s internal 720p) — a true-720p-output mode would still be the single biggest memory lever available.
  3. Throughput: ~400 MB/min upload is the practical ceiling here; even when memory fits, full area loads take 20+ minutes. Fine for testing, painful for play.

Posting mainly so others with weak cards know the exact working recipe: save-path + mip clamp + big pagefile + patience. New-game path still hits the city problem immediately.

**@⁠kotekompotek** on GitHub · 2026-12-04 08:14 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7405695197) **Part 9 — GTA VI prologue gameplay reached on a GTX 1050 2GB, with working gamepad input** It happened. Boot config: save-load path, `VICTORY_TEXTURE_EDGE_MAX=256`, `VICTORY_SLOT_EVICT=1`, `VICTORY_SLOT_EVICT_PERCENT=40`, pool 3072, warm SSD cache, 52GB pagefile, `--series-s --res 1080to1440 --fps 30`. - The pipeline **never deadlocked** this time: uploads flowed continuously at ~400 MB/min for 20+ minutes (588 → 5009 MB delivered). The decisive difference visible in the queue stats: `0 waiting for their memory` — admission never blocked, because the prologue working set at mip-256 actually fits the card. Eviction still freed 0 MB the whole boot; it turned out not to matter on this path. - In-world, a START press opened the pause menu — input works end-to-end through a virtual ViGEm x360 pad, and the pause menu only exists in gameplay state. Menu header confirmed **ПРОЛОГ** (in-mission, checkpoint options offered). Right stick input turned the in-game camera; the sunset vista panned exactly as commanded. Left stick walk produced no obvious motion yet — at ~2 fps a 6-second hold is a dozen frames, hard to tell; longer holds untested. - The prologue area renders as a golden savanna at sunset — acacia-like trees, animal silhouettes (a boar, deer-like shapes), 650–800 draws/frame at 1.7–3 fps. Menu fps 11.4. Textures are heavily mip-clamped (expected at 256), geometry all present. So the end-to-end proof now exists: this 2 GB card + 8 GB RAM machine boots GTA VI, loads the prologue save, renders the world, and accepts player input. It is glacial but alive and — with the big pagefile — stable indefinitely. Remaining walls, in order of pain: 1. **The city path still deadlocks.** The prologue fits at mip-256; the city does not (boots 36/38 frozen equilibrium, documented in part 7). The city needs either the aggressive-eviction fix (parts 7/8 — now proven three ways, including sampled-marks showing 99.99% of pinned textures are never sampled) or a yet smaller mip clamp. I will try `VICTORY_TEXTURE_EDGE_MAX=128` on the city path next. 2. **Render-target scissors** (~700 MB at 1440p output even with series-s internal 720p) — a true-720p-output mode would still be the single biggest memory lever available. 3. Throughput: ~400 MB/min upload is the practical ceiling here; even when memory fits, full area loads take 20+ minutes. Fine for testing, painful for play. Posting mainly so others with weak cards know the exact working recipe: **save-path + mip clamp + big pagefile + patience**. New-game path still hits the city problem immediately.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-04 11:13 UTC · original

Part 10 — VICTORY_SAMPLED_EVICT validated on the 1050: the pinning wall is gone, eviction cycles, locomotion confirmed

Following up on parts 7/8: I found VICTORY_SAMPLED_EVICT=1 already in the tree (descriptor.rs evictable_slots, sampled.rs) — exactly the aggressive mode proposed. Tested today on the GTX 1050 2GB with VICTORY_SAMPLED_MARKS=1 + VICTORY_SLOT_EVICT=1 + VICTORY_SLOT_EVICT_PERCENT=40 + VICTORY_TEXTURE_EDGE_MAX=256:

  • The pinning wall is gone: the "not to be taken (a slot shaders pick by index shows them)" count dropped from 13,248 (part 8) to 0-3 in the same workload. Eviction actually frees textures now — small amounts during the load burst (everything fresh is within the idle-time gate), but the cycling is real in steady state.
  • Reproducibility note: the first SAMPLED_EVICT boot died in ~6 minutes with a title-side access violation. Dump analysis: virtual call on a garbage object at image+0x10823c — same class as the streaming-race crash I reported from boot-30 weeks ago (title evaluating assets whose backing hasn't streamed). An exact-replica boot survived the same zone for 10+ minutes and reached the world, so the crash is probabilistic title fragility at fast streaming, NOT eviction-caused. Eviction never touches title memory — only the GPU-side copies — so it can't produce a CPU-side title crash directly. Worth knowing for anyone testing: expect occasional title crashes during heavy streaming regardless of eviction.
  • In-world with working eviction: prologue fully playable-state — pause menu, camera, and now locomotion verified (strafe input moved the player, the vista changed to new content). fps 1-3 in-world, 13-14 in menus.
  • Frame-cost breakdown for those optimizing: GPU 3D engine is only ~15% busy at 2.2fps in-world (copy engine ~9%); CPU is pegged at 100% on all 8 threads. On this class of CPU (i5-8300H) the wall is the translation/streaming CPU cost, not the GPU. Frames are ~460ms of which the GPU needs only ~70ms. Anyone with a stronger CPU but weak GPU should do much better than we do.

One operational note for weak-card users: eviction during the load burst is naturally small because freshly-uploaded textures are inside the idle-time gate. Its value shows in steady-state movement — exactly where the old deadlock lived. For the city path specifically, the deadlock texture mass was precisely the "streamed but not yet visible" population, which is unpinned now — testing that next.

Config note: VICTORY_TEXTURE_ROOM_PERCENT=100 was present in my best boots but the jury is out on whether it matters with working eviction; current boot uses the default room line and behaves the same.

**@⁠kotekompotek** on GitHub · 2026-12-04 11:13 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7409805501) **Part 10 — VICTORY_SAMPLED_EVICT validated on the 1050: the pinning wall is gone, eviction cycles, locomotion confirmed** Following up on parts 7/8: I found `VICTORY_SAMPLED_EVICT=1` already in the tree (descriptor.rs `evictable_slots`, sampled.rs) — exactly the aggressive mode proposed. Tested today on the GTX 1050 2GB with `VICTORY_SAMPLED_MARKS=1` + `VICTORY_SLOT_EVICT=1` + `VICTORY_SLOT_EVICT_PERCENT=40` + `VICTORY_TEXTURE_EDGE_MAX=256`: - **The pinning wall is gone**: the "not to be taken (a slot shaders pick by index shows them)" count dropped from 13,248 (part 8) to **0-3** in the same workload. Eviction actually frees textures now — small amounts during the load burst (everything fresh is within the idle-time gate), but the cycling is real in steady state. - **Reproducibility note**: the first SAMPLED_EVICT boot died in ~6 minutes with a title-side access violation. Dump analysis: virtual call on a garbage object at image+0x10823c — same class as the streaming-race crash I reported from boot-30 weeks ago (title evaluating assets whose backing hasn't streamed). An exact-replica boot survived the same zone for 10+ minutes and reached the world, so the crash is probabilistic title fragility at fast streaming, NOT eviction-caused. Eviction never touches title memory — only the GPU-side copies — so it can't produce a CPU-side title crash directly. Worth knowing for anyone testing: expect occasional title crashes during heavy streaming regardless of eviction. - **In-world with working eviction**: prologue fully playable-state — pause menu, camera, and now **locomotion verified** (strafe input moved the player, the vista changed to new content). fps 1-3 in-world, 13-14 in menus. - **Frame-cost breakdown** for those optimizing: GPU 3D engine is only ~15% busy at 2.2fps in-world (copy engine ~9%); CPU is pegged at 100% on all 8 threads. On this class of CPU (i5-8300H) the wall is the translation/streaming CPU cost, not the GPU. Frames are ~460ms of which the GPU needs only ~70ms. Anyone with a stronger CPU but weak GPU should do much better than we do. One operational note for weak-card users: eviction during the load burst is naturally small because freshly-uploaded textures are inside the idle-time gate. Its value shows in steady-state movement — exactly where the old deadlock lived. For the city path specifically, the deadlock texture mass was precisely the "streamed but not yet visible" population, which is unpinned now — testing that next. Config note: `VICTORY_TEXTURE_ROOM_PERCENT=100` was present in my best boots but the jury is out on whether it matters with working eviction; current boot uses the default room line and behaves the same.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-04 15:20 UTC · original

Part 11 — TDR deaths solved twice: the paging-storm mechanism, and a no-reboot mitigation (VICTORY_VRAM_BUDGET_MB)

Every long session on the 1050 used to die at 25-75 minutes. Event log finally named the killer: nvlddmkm event 153 at the exact death second, every time — Windows TDR killing the device after 2s of no response (the translation layer then dies with "device was lost before fence N"). Frame times in-world are 300-500ms, well under 2s — so why TDR? The answer: driver paging. Hydra's auto budget let the card commit 3.2-3.8GB on a 2GB card; the driver constantly pages memory to/from system RAM, and a paging storm can stall the GPU past the 2-second TDR limit. Proof: deaths happened at random load levels, always during heavy streaming bursts.

Two fixes, both verified:

  1. TdrDelay=30 in the registry (HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers) — but note it only activates at a FULL SYSTEM BOOT. Restarting the display device (Disable/Enable-PnpDevice) does NOT pick it up — dxgkrnl reads those keys only at boot. Tested: driver-restart boot died to TDR at 25min same as before.
  2. VICTORY_VRAM_BUDGET_MB=1800 — cap the card budget inside physical VRAM so the driver never needs to page. This one is already in the tree and it WORKS WITHOUT ANY REBOOT: card pressure went dead flat (2872±2MB for an hour straight, versus jittering 3226-3811 before), eviction cycles continuously in small batches, and the boot ran 2h20min in the city-path streaming grind — triple the previous record — until I killed it on purpose for other tests. It survived exactly the burst phases that killed every prior boot.

Recommended weak-card recipe so far (1050 2GB, i5-8300H, 8GB): VICTORY_SLOT_EVICT=1 VICTORY_SLOT_EVICT_PERCENT=40 VICTORY_SAMPLED_MARKS=1 VICTORY_SAMPLED_EVICT=1 VICTORY_TEXTURE_EDGE_MAX=256 VICTORY_VRAM_BUDGET_MB=1800 + large pagefile + warm BCPack cache. With this the city/new-game path streams continuously — no deadlock anywhere — and the intro cinematic renders its scenes (up to ~1500 draws/frame in the dense shots).

Honest remaining wall, measured: in-world fps is 1-3 because the CPU (i5-8300H, 8 threads) is pegged at 100% while the GPU 3D engine idles at ~15%. The translation/emulation CPU cost dominates everything — GPU has 5-6x headroom. I'm now profiling exactly where the CPU time goes with VICTORY_PROFILE (nice built-in!) — will post the hottest stacks. If the hot spots are in parallelizable streaming work, weak-CPU users would benefit hugely from tuning or upstream optimization of those paths.

**@⁠kotekompotek** on GitHub · 2026-12-04 15:20 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7415708976) **Part 11 — TDR deaths solved twice: the paging-storm mechanism, and a no-reboot mitigation (VICTORY_VRAM_BUDGET_MB)** Every long session on the 1050 used to die at 25-75 minutes. Event log finally named the killer: `nvlddmkm` **event 153 at the exact death second**, every time — Windows TDR killing the device after 2s of no response (the translation layer then dies with "device was lost before fence N"). Frame times in-world are 300-500ms, well under 2s — so why TDR? The answer: **driver paging**. Hydra's auto budget let the card commit 3.2-3.8GB on a 2GB card; the driver constantly pages memory to/from system RAM, and a paging storm can stall the GPU past the 2-second TDR limit. Proof: deaths happened at random load levels, always during heavy streaming bursts. Two fixes, both verified: 1. **TdrDelay=30 in the registry** (`HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers`) — but note it only activates at a FULL SYSTEM BOOT. Restarting the display device (Disable/Enable-PnpDevice) does NOT pick it up — dxgkrnl reads those keys only at boot. Tested: driver-restart boot died to TDR at 25min same as before. 2. **`VICTORY_VRAM_BUDGET_MB=1800`** — cap the card budget inside physical VRAM so the driver never needs to page. This one is already in the tree and it WORKS WITHOUT ANY REBOOT: card pressure went dead flat (2872±2MB for an hour straight, versus jittering 3226-3811 before), eviction cycles continuously in small batches, and the boot ran **2h20min** in the city-path streaming grind — triple the previous record — until I killed it on purpose for other tests. It survived exactly the burst phases that killed every prior boot. Recommended weak-card recipe so far (1050 2GB, i5-8300H, 8GB): `VICTORY_SLOT_EVICT=1 VICTORY_SLOT_EVICT_PERCENT=40 VICTORY_SAMPLED_MARKS=1 VICTORY_SAMPLED_EVICT=1 VICTORY_TEXTURE_EDGE_MAX=256 VICTORY_VRAM_BUDGET_MB=1800` + large pagefile + warm BCPack cache. With this the city/new-game path streams continuously — no deadlock anywhere — and the intro cinematic renders its scenes (up to ~1500 draws/frame in the dense shots). Honest remaining wall, measured: in-world fps is 1-3 because the CPU (i5-8300H, 8 threads) is pegged at 100% while the GPU 3D engine idles at ~15%. The translation/emulation CPU cost dominates everything — GPU has 5-6x headroom. I'm now profiling exactly where the CPU time goes with VICTORY_PROFILE (nice built-in!) — will post the hottest stacks. If the hot spots are in parallelizable streaming work, weak-CPU users would benefit hugely from tuning or upstream optimization of those paths.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-04 16:57 UTC · original

part-12: first CPU profiles on weak hardware (i5-8300H 4c/8t, GTX 1050 2GB) — the layer itself is the in-world wall

Using the diag build's VICTORY_PROFILE (works well once windows are short enough to end before a TDR death — the first attempt lost its profile 27 s before the write), I captured a burst window and an in-world window on the save-load path. Decoded with the frame-line anatomy:

World window (300 s, 3486 rounds), thread cpu-times:

  • victory-submit 136 s (45% of a core) — matches the code comment "the submitting thread, 50 to 54 ms of a 57 ms frame"
  • victory-wide-0/1/2 83+61+60 = 204 s combined — the parallel copy-refresh workers
  • victory-relay 59 s, victory-list-N ~170 s combined
  • The layer's own threads burn ≈570 core-seconds per 300 s window — nearly 2 full physical cores of pure translation overhead on a 4-core machine
  • title-main is not even in the top 10 — under 5% of one core. The title is not emulation-throughput-bound in-world; it is starved, waiting for the layer.

Frame anatomy (burst): a 5497 ms frame accounts for only ~350 ms in the fps line (copies 100 ms/42 MB, textures 16 ms/102 MB, GPU 1.7 ms, copyback 83 ms) — ~94% sits outside submission instrumentation, consistent with the title waiting inside its own sync code (hottest title offset +0x221c3c2, in the watchdog region you documented at 0x2215xxx, across many threads) plus kernel-page-read time unattributed.

Phase distribution in-world: phase 3 (inside submission) 49%, phase 2 (behind it) 28%, phase 0 22%.

Implications for weak-hardware ports:

  1. The shadow-copy refresh architecture — reading the title's written pages through the kernel into copies, ~60 copies per submission — scales with the title's memory volume, not with resolution or texture quality. On this machine it saturates 3 wide workers + submit + relay while the title waits. Lowering resolution/textures cannot fix frame times; only memory-volume or tracking-mechanism changes can.
  2. VICTORY_WIDE_REFRESH is already on here (8 logical cpus), TEX_REF_BUDGET_MS caps texture refresh at 4 ms — the remaining copies cost is host-memory scanning, not textures.
  3. Question for maintainers: has a write-watch-style tracking mechanism (GetWriteWatch or page-protection dirty tracking, instead of scan-and-copy) been evaluated for the refresh path? On core-starved machines the scan itself is the wall — copying only actually-dirty pages would drop the cost proportional to real dirt, which in steady-state gameplay is small.

Methodology notes for anyone reproducing: VICTORY_PROFILE=<from_s>,<to_s>,<ms>,<file>[;...] (diag build), sampler picks the 28 busiest threads each second, writes only at window end — so use several short windows rather than one long one on crash-prone runs. phase in the output is copystat's: 3 = inside submission, 2 = after it, 1 = recording, 0 = after present.

**@⁠kotekompotek** on GitHub · 2026-12-04 16:57 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7418207718) ### part-12: first CPU profiles on weak hardware (i5-8300H 4c/8t, GTX 1050 2GB) — the layer itself is the in-world wall Using the diag build's `VICTORY_PROFILE` (works well once windows are short enough to end before a TDR death — the first attempt lost its profile 27 s before the write), I captured a burst window and an in-world window on the save-load path. Decoded with the frame-line anatomy: **World window (300 s, 3486 rounds), thread cpu-times:** - `victory-submit` 136 s (45% of a core) — matches the code comment "the submitting thread, 50 to 54 ms of a 57 ms frame" - `victory-wide-0/1/2` 83+61+60 = 204 s combined — the parallel copy-refresh workers - `victory-relay` 59 s, `victory-list-N` ~170 s combined - **The layer's own threads burn ≈570 core-seconds per 300 s window — nearly 2 full physical cores of pure translation overhead on a 4-core machine** - `title-main` is not even in the top 10 — under 5% of one core. The title is not emulation-throughput-bound in-world; it is *starved*, waiting for the layer. **Frame anatomy (burst):** a 5497 ms frame accounts for only ~350 ms in the fps line (copies 100 ms/42 MB, textures 16 ms/102 MB, GPU 1.7 ms, copyback 83 ms) — ~94% sits outside submission instrumentation, consistent with the title waiting inside its own sync code (hottest title offset +0x221c3c2, in the watchdog region you documented at 0x2215xxx, across many threads) plus kernel-page-read time unattributed. **Phase distribution in-world:** phase 3 (inside submission) 49%, phase 2 (behind it) 28%, phase 0 22%. Implications for weak-hardware ports: 1. The shadow-copy refresh architecture — reading the title's written pages through the kernel into copies, ~60 copies per submission — scales with the title's memory volume, not with resolution or texture quality. On this machine it saturates 3 `wide` workers + submit + relay while the title waits. Lowering resolution/textures cannot fix frame times; only memory-volume or tracking-mechanism changes can. 2. `VICTORY_WIDE_REFRESH` is already on here (8 logical cpus), `TEX_REF_BUDGET_MS` caps texture refresh at 4 ms — the remaining copies cost is host-memory scanning, not textures. 3. Question for maintainers: has a write-watch-style tracking mechanism (GetWriteWatch or page-protection dirty tracking, instead of scan-and-copy) been evaluated for the refresh path? On core-starved machines the scan itself is the wall — copying only actually-dirty pages would drop the cost proportional to real dirt, which in steady-state gameplay is small. Methodology notes for anyone reproducing: `VICTORY_PROFILE=<from_s>,<to_s>,<ms>,<file>[;...]` (diag build), sampler picks the 28 busiest threads each second, writes only at window end — so use several short windows rather than one long one on crash-prone runs. `phase` in the output is copystat's: 3 = inside submission, 2 = after it, 1 = recording, 0 = after present.
Author
Owner

@⁠kotekompotek on GitHub · 2026-12-04 18:56 UTC · original

part-13: boot-to-world latency halved on weak hardware — VICTORY_PIPELINE_WORKERS + VICTORY_LIBRARY_SHARDS

Measured on the i5-8300H (4c/8t) + GTX 1050 2GB, save-load path, warm 19 GB bcpack cache, repeated attempts with TDR-random survival:

config time to first streamed frame time to world (draws>100)
PIPELINE_WORKERS=2, no shards ~10-12 min 15-20 min
PIPELINE_WORKERS=4, VICTORY_LIBRARY_SHARDS=6 4.5 min 8.1 min

Why it matters beyond convenience: on this machine every boot dies to TDR at random 5-60 min in (TdrDelay pending a reboot), so time-to-world is the hard budget gate on every experiment. Halving it doubles experiment throughput.

Mechanism confirmation from the log itself: title pipelines to start early pipelines=5055 — over five thousand pipelines queue at boot. With the default-scaled workers here (2), compilation is the serial gate; workers=4 doubles compile throughput and shards=6 removes the single-library lock convoy (shards made shards=6 in log). No instability observed attributable to the change across 3 attempts (all deaths were nvlddmkm-153 TDRs, same as before).

Recommendation for the weak-hardware docs/profile: workers should not be reduced below the default scaling on core-starved machines — the compile latency dominates boot, and the in-world CPU cost of idle compile workers is zero. Small-RAM machines may still want the cap for peak memory, but 8 GB here handles 4 workers + 6 shards fine (commit ~11.5 GB peak with the game).

**@⁠kotekompotek** on GitHub · 2026-12-04 18:56 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/36#issuecomment-7421135218) ### part-13: boot-to-world latency halved on weak hardware — `VICTORY_PIPELINE_WORKERS` + `VICTORY_LIBRARY_SHARDS` Measured on the i5-8300H (4c/8t) + GTX 1050 2GB, save-load path, warm 19 GB bcpack cache, repeated attempts with TDR-random survival: | config | time to first streamed frame | time to world (draws>100) | |---|---|---| | `PIPELINE_WORKERS=2`, no shards | ~10-12 min | 15-20 min | | `PIPELINE_WORKERS=4`, `VICTORY_LIBRARY_SHARDS=6` | **4.5 min** | **8.1 min** | Why it matters beyond convenience: on this machine every boot dies to TDR at random 5-60 min in (TdrDelay pending a reboot), so time-to-world is the hard budget gate on *every* experiment. Halving it doubles experiment throughput. Mechanism confirmation from the log itself: `title pipelines to start early pipelines=5055` — over five thousand pipelines queue at boot. With the default-scaled workers here (2), compilation is the serial gate; `workers=4` doubles compile throughput and `shards=6` removes the single-library lock convoy (`shards made shards=6` in log). No instability observed attributable to the change across 3 attempts (all deaths were nvlddmkm-153 TDRs, same as before). Recommendation for the weak-hardware docs/profile: workers should not be *reduced* below the default scaling on core-starved machines — the compile latency dominates boot, and the in-world CPU cost of idle compile workers is zero. Small-RAM machines may still want the cap for peak memory, but 8 GB here handles 4 workers + 6 shards fine (commit ~11.5 GB peak with the game).
This discussion has been locked. Commenting is limited to contributors.
No description provided.