[GTX 1050 2 GB / 8 GB RAM] Death-cascade measurements + BAR-placement inversion on small-VRAM hosts #36
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ToLIManl--VIctory-Hydra#36
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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-sat 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)
Death cascade, twice reproduced (default settings)
World streaming drives
card's ownmemory from ~1 GB to 3084 MB of the 3403 MB budget over 8-10 minutes, then: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 DXGIQueryVideoMemoryInfo, 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 / budgetfromQueryVideoMemoryInfo, 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:
VICTORY_WINDOWS_BAR_MB=0 VICTORY_SEND_BAR=0The 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: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, afterpreload --used):compilememlines 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--usedlist 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 --useduntil 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 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 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_SHAREDis off; only the driver cache gets warmed). WithVICTORY_WARM_SHARED=1 preload --usedthe library grew 3.69→5.2 MB and early-boot pipelines now load from it at ~49 ms (loaded=40 made=0in the first save line). AddedVICTORY_LIBRARY_SAVE_MADE=50to 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:
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:
shared_is_smallBAR-placement inversion for asymmetric hosts (2 GB card + 8 GB RAM).And one preload-specific note: consider defaulting
VICTORY_WARM_SHARED=1when--usedis 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:35 UTC · original
Important correction to everything I posted in this issue — and possibly a usability bug report.
I discovered that
victory playsilently strips shell-set VICTORY_* environment variables before starting the title (play.rsprepare: 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 printengine ... 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 (
--setdelivery): 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
--helpnear--set. Documented in https://github.com/kotekompotek/xbox-weak-hw-notes/blob/main/ENV-PURGE-TRAP.md@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 confirmedDonein the log). Result: same spike shape, death at streaming minute ~7 — but the telemetry finally names the exact wall: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=256cuts the grid finer — potentially recovering 1+ GB, several times the overflow margin. boot-12 testing exactly that plusVICTORY_LATE_WAIT_LISTS=64now.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-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=64added. Everything else identical (verified engine patches: stream pool 1536, world dist 0.2, low shadows).Telemetry tells the story:
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: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: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.
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=50proved 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: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.
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 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: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 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 verifiedDonein 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:
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: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 03:49 UTC · original
v2.1 input regression isolated —
VICTORY_RAW_KEYS=0is a full workaroundWhile 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:
GetAsyncKeyStateexactly like physical input — Windows delivery is healthy.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=0fixes 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/missedcounters — 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 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:
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 05:05 UTC · original
Root cause of the deterministic in-world crash found: the title's streaming-progress watchdog (full disassembly analysis)
The
0x80000003breakpoint 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:int3deliberately — a small trap stub at the end of the function, same bytes every time.GlobalMemoryStatusExquery ~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_MBraised (bigger Level-3 physical pools) is in flight, and I plan aVICTORY_STREAM_POOL_MBsweep (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:20 UTC · original
Input addendum: letter keys die on non-US keyboard layouts — use
VICTORY_KEYS_FILEfor full controlFollow-up to the
VICTORY_RAW_KEYS=0report: 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 ingameinput.rs:pad_keymatches letter keys by scan code against hardcoded US-layout positions. Injected keys get scan codes synthesized withMapVirtualKeyW(MAPVK_VK_TO_VSC_EX), which is layout-dependent. On a Russian layout the Latin VKs don't exist, synthesis yields no scan code, andpad_keyexplicitly 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. MeanwhileVICTORY_KEYS_FILEis a complete workaround for scripted play.@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:
preceded by a few seconds of
no upload bufferwarnings (device instance lost mid-submission).So on this hardware there are two independent killers, and they must be fought separately:
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_MBto 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: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:
committed 7849 MB, card 2337 MB in use of budget 3403 MB, shared 622 MBcommitted 12623 MB, card 3722 MB in use of budget 3403 MB, shared 2667 MBThe 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 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_padearly-returns when no physical pad occupies slot 0. The clean fix is a virtual pad:#include <thread>for non-MSVC toolchains). Mine is 120 lines of C watching a text file for lines likeX 1.5(button + hold seconds) and callingvigem_target_x360_update— compiled with mingw gcc in one command, static, no dependencies.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 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_EVICTis 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_envreads only process env vars; theConfigfallback 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: consultConfig::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 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.rsexplain it exactly:texture queue's room):weighed = used - blocks_free + buffers_kept(438 MB) + targets_kept(230 MB)must stay undereffective_line = room_line - face_headroom(256 MB). Defaultroom_linehere computes to 3063 MB (90%), effective 2807 MB.weighed = 2941 > 2807→ "no room, new textures wait" — permanently.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.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=1with 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 MBwithhits=35500in 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 13:01 UTC · original
Part 5 — the capacity wall broken:
VICTORY_TEXTURE_EDGE_MAXcompletes 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=256changes 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-04 04:13 UTC · original
Part 6 — in-world survival 22+ minutes, the render-target scissors, and why
CARD_ROOM_FOR_TARGETS_MB=0is 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.
--rescurrently 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 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 08:02 UTC · original
Part 8 — the smoking gun:
VICTORY_SAMPLED_MARKSproves 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:
Read those numbers against each other:
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:
VICTORY_SLOT_EVICTacross 65/85/40% triggers frees 0 MB in every bootThe 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: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.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.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:
VICTORY_TEXTURE_EDGE_MAX=128on the city path next.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 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=1already in the tree (descriptor.rsevictable_slots, sampled.rs) — exactly the aggressive mode proposed. Tested today on the GTX 1050 2GB withVICTORY_SAMPLED_MARKS=1+VICTORY_SLOT_EVICT=1+VICTORY_SLOT_EVICT_PERCENT=40+VICTORY_TEXTURE_EDGE_MAX=256: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=100was 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 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:
nvlddmkmevent 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:
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.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 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-submit136 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/283+61+60 = 204 s combined — the parallel copy-refresh workersvictory-relay59 s,victory-list-N~170 s combinedtitle-mainis 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:
wideworkers + submit + relay while the title waits. Lowering resolution/textures cannot fix frame times; only memory-volume or tracking-mechanism changes can.VICTORY_WIDE_REFRESHis already on here (8 logical cpus),TEX_REF_BUDGET_MScaps texture refresh at 4 ms — the remaining copies cost is host-memory scanning, not textures.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.phasein the output is copystat's: 3 = inside submission, 2 = after it, 1 = recording, 0 = after present.@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_SHARDSMeasured on the i5-8300H (4c/8t) + GTX 1050 2GB, save-load path, warm 19 GB bcpack cache, repeated attempts with TDR-random survival:
PIPELINE_WORKERS=2, no shardsPIPELINE_WORKERS=4,VICTORY_LIBRARY_SHARDS=6Why 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=4doubles compile throughput andshards=6removes the single-library lock convoy (shards made shards=6in 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).