bug-journal.md 10 KB

GPU residency bug journal

2026-11-25, Pacific time

  • 15:38, source verification. The default Play-VIctory.cmd and its fast selector use the same local release. Its SHA-256 matches the build from pareto-rtx-fast at fabb872. The live window showed 81.4 ms/frame for an interval with 4,463 draws/frame. This observation has no controlled scene match.
  • 15:39, descriptor lifetime and idle pools. Moved the bindless buffer sweep and its previous ranges onto their owning host heap. A list holds each stride buffer it uses. A deferred sweep verifies the stride buffer identity before reading a heap. The periodic budget check can now drain expired pieces and trim completely free blocks from the texture and upload pools. Busy allocators retry on their next opportunity.
  • 15:41-15:42, initial comparison. Both releases used fresh copies of the same opening save and warmed cache. The first comparison stopped each process when Windows commit headroom dipped below 2 GiB. Neither reached the 1,000 draws/frame threshold. The baseline reported 4,241 MiB of live texture staging, 277 MiB of commit headroom and 7,648 MiB of free physical memory in its pressure log. The first candidate reported 2,870 MiB of staging when it first signaled pressure, at a different frame. Those samples cannot quantify memory savings.
  • 15:45, staging admission. The pressure cap had applied before catch-up tripled the budget, and early prefetch could add its own allowance. On auto settings, the final shared budget now limits speculative staging to 16 MiB/frame under pressure or 32 MiB/frame on a limited-RAM host with at least 1 GiB of live staging. A single texture can cross the limit. Required material bakes keep their existing budget and explicit stage-budget overrides take precedence. The maintenance pass also releases all eligible spare staging blocks under host pressure. Release GPU suite: 329 passed, 34 ignored.
  • 15:46-15:48, release comparison on the RTX 5090. Repeated from the same copied save and the same initial cache with the normal Pareto rendering settings. Allowed transient Windows commit dips and stopped after 15 distinct title-bar intervals with at least 1,000 draws/frame. Baseline median 64.2 ms/frame, candidate 54.8. Both reached 50 ms or better in four intervals. Median draws/frame were 2,868 and 2,839. Peak process commit was 27.15 and 26.12 GiB. Sampled peak whole-adapter use was 18.67 and 17.45 GiB. The two runs progressed at different rates and window capture overlapped part of the baseline, so this pair is directional.
  • 15:49-15:50, visual verification. Window capture confirmed the candidate renders the opening street and characters with textures and colored lighting. In this longer capture run the median was 57.7 ms/frame over 23 heavy caption intervals, six at or below 50 ms. The slowest interval was 566 ms, peak process commit was 28.74 GiB, and sampled whole-adapter use peaked at 19.12 GiB. The original GDI captures returned white surfaces; Windows Graphics Capture returned the game image. PresentMon produced no events in this session, so there is no individual-present latency distribution. The two controlled releases used the same general shader and material paths. Wave64-to-Wave32 translation warnings remain in the logs. Sustained 50 ms/frame and full material coverage remain open.
  • Local build. The optional launcher selector is pareto-residency. SHA-256 4d5f1e9a0aa6d13c96dfdf69526c3128077588ed4f18df81f16bf3c8b3afc191. Comparison receipts and window captures are under ../XCL-frame-timing/pareto-residency-comparison relative to the checkout.
  • 15:53, manual run. Windows returned E_OUTOFMEMORY (0x8007000E) for a series of 64 MiB pool requests and individual uploads as small as 24,080 bytes. Rust subsequently aborted on a 786,432-byte allocation. The pasted log does not identify the Rust allocation site or a particular resource as the initial cause.
  • 15:56–15:59, reproducer and repair. Replayed eight reported upload sizes through the release pool with a failing block allocator. The unpatched test made eight block creation attempts in one burst. Each pool now backs off growth for 500 ms after a failed creation while still reusing space in its existing blocks. An out-of-memory return from host upload or texture allocation interrupts the descriptor texture sweep, leaving interrupted work eligible for retry. The sweep checks available Windows commit at most once per 32 ms, including during a long pass. It defers ordinary prefetch below 4 GiB and bake prefetch below 2 GiB; explicitly bound textures can still request upload memory. GPU unit and device suite: 331 passed, 34 ignored.
  • 16:00–16:03, first opening-save retest. Windows Graphics Capture showed a character, textured buildings and street lighting. The log contained no failed upload-buffer allocations or Rust allocation aborts. The harness timed out during shutdown and lost its timing receipt. The renderer logged a dropped draw due to exhausted dynamic descriptor slots.
  • 16:04–16:07, confirmation and install. From a fresh copy of the opening save, the release ran 135 seconds after the first interval above 1,000 draws/frame and remained live until the harness closed it. Peak process commit was 34.42 GiB; the lowest sampled Windows commit headroom was 1.30 GiB. Zero E_OUTOFMEMORY returns and zero Rust allocation aborts appeared in the log. Across 120 high-draw caption intervals the median was 54.3 ms/frame, with 39 at or below 50 ms. The descriptor-slot warning recurred. Installed and hash-verified the release behind the existing pareto-residency selector. SHA-256 d580328bf90fe54e643dad60c04481d7e4b0d7134b9b6ce70c5e0f5c77ff3cf1. Receipt and log: ../XCL-frame-timing/pareto-residency-comparison/oom-confirm/.
  • 16:50–18:20, facial deformation & wrapped meshes (d16 + table strides). Added zero-sweep table view-kind lookup (SLOT_TABLE_STRIDES = 252, heap_strides) and dynamic descriptor slot stride population in descriptor/host.rs, plus NVIDIA-valid typed integer lowering (bufferLoad.i32/bufferStore.i32 on VIEW_INTEGER/VIEW_SIGNED). Initially applying typed integer branching to non-d16 typed loads caused shader regressions; restricting integer branching to buffer_load_format_d16_* and buffer_store_format_d16_* restored clean shading while keeping VICTORY_TRANSLATOR cache-compatible with tools/cache-pareto (made=0).
  • 19:15–20:30, commit-gate starvation & synchronous bake uploads. Lowered commit reserves (has_upload_reserve: 256 MiB bake / 512 MiB non-bake; has_growth_reserve: 256 MiB bake / 1024 MiB speculative bindless; pressure entry 3 GiB RAM / 4 GiB commit, recovery 5 GiB / 6 GiB), scoped 64 MiB staging-block growth gating in pool.rs (REST = 2500 ms) to speculative bindless only, expanded bake detection (BAKE_GEOMETRY_SHADERS, ahead::drain, BAKE_PAGE_WRITTEN), and routed one-shot ped/decoration bake uploads through a dedicated synchronous host list (BAKE_UPLOAD / execute_sync_internal) with post-upload descriptor publication (prepare_bake_slot / publish_uploaded_slot). GPU suite: 335 passed, 34 ignored.
  • 20:50–21:10, alias-flood experiment reverted & clean release built. Propagating aliased view maps/unmaps into REMAPPED and widening bake lookahead caused 2–4 GiB bake-pass truncations on frames 1368–1369 (cap_alias_fix_rel, median 70.5 ms in diagnostics capture, face-mask/shorts regression) and was reverted. Rebuilt clean release binary target/release/victory.exe without the alias flood (SHA-256 38e99f1b1d6bafda2ff8de74d6566af06bc7e8cab70594d841af01752e501d73); installation into Downloads/leonida/victory-3d-rtx-pareto-residency.exe deferred while user-launched PID 13544 holds the file open.
  • 21:30–22:28, transmission prefilter Wave32 recovery, texture-starvation & scene-blinking fixes. Diagnosed four linked regressions on RTX 5090 (32 GiB RAM): (1) alphaResolve:CS_AlphTransmissionPrefilterMip_610a2fad (2da4beb386509b77) was dropped under Wave32 without_early_outs because resource::Tracer::descriptor() and live() omitted per-instruction lanes.guards[b][i] when pruning dead join edges, leaving transmission buffer 0x17dff443d70 zeroed and causing ptfx_PS_Transmission_aba1527f (dual-source blend) and transmissive eye/alpha shaders to output black squares / corrupted blending; fixed in crates/victory-shader/src/resource.rs (VICTORY_WAVE_WIDE intentionally kept off due to known loop-widening TDR risk). (2) Completed submissions kept Detached._state dynamic descriptor slots pinned across bury_lag() (16 submissions) in host.rs (relay_land, settle), exhausting NVIDIA's 262k dynamic slot pool and dropping draws; added Detached::release_tables() right on GPU completion plus a settle_for_fence() retry in draw.rs, and defaulted VICTORY_INDIRECT_REST=0 in indirect.rs so one oversized indirect record does not zero out subsequent draws. (3) Split residency throttling into mild pressure vs. critical_commit() (< 1536 MiB commit or upload refusal) across residency.rs, texture/ahead.rs, and pool.rs so VICTORY_UPLOAD_AHEAD, 64 MiB/frame prefetch, and one spare staging block stay active under mild 32 GiB pressure instead of stalling tens of thousands of textures on neutral(); fixed descriptor/host.rs (prepare_bake_slot, publish_uploaded_slot) and draw.rs (flush_for_bake) so pending bake slots are never prematurely overwritten with neutral() or silently dropped on defer/unmapped pages, and removed false address=0x0 unordered-SRV warning spam. (4) Scoped VICTORY_AMBIENT_AIR=1.5 to pareto-residency in Downloads/leonida/Play-VIctory.cmd to clear milky indoor ambient haze. Verification: victory-shader lib suite 281 passed, 0 failed, 4 ignored (including new a_guarded_access_excludes_dead_lane_edges_at_a_join); targeted victory-gpu suite 20 passed, 0 failed; RTX 5090 translate --jobs 1 --validate --pipelines on 154 VFX/particle/eye shaders emitted & validated 43/43 graphics + 96/111 compute pipelines (recovering CS_AlphTransmissionPrefilterMip, 0 regressions). Deployed release binary to Downloads/leonida/victory-3d-rtx-pareto-residency.exe, SHA-256 37a410b13fcd5ef4cecfe2c27761b7132af64b00019a07c9256529b96892d7da.