[TRACKING & ARCHITECTURE] Master Breakthrough Audit: 30-60+ FPS Pipeline, 6-8 GB Low-End RAM/VRAM Compression, NVIDIA Zero-Crash Stability & Native PC Control #3715
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?
Imported from ivall/xcl. Originally posted by hyperland956-lgtm on 2026-12-02T18:48:52Z.
Master Breakthrough Audit: 30–60+ FPS Pipeline, 6–8 GB Low-End RAM/VRAM Compression, NVIDIA Zero-Crash Stability & Native PC Controls
Executive Diagnosis — Why XCL Is Stuck at 1–4 FPS & 27–50 GB Memory
XCL has cleared the hardest correctness milestone: large retail workloads reach the world with accurate colors and lighting. Yet
mainstill runs at 1–4 FPS while consuming 16–27 GB local VRAM and 36–50 GB committed RAM (#2688,#1773,#646), and NVIDIA GPUs continue hitting silent0x887a0005removals (#2403,#1452), multi-minutenvgpucomp64stalls (#156,#2088), or silent present freezes.Line-level auditing of
xcl/crates/xcl/src/(Cargo.toml,vram.rs,sparse.rs,pso_async.rs,present.rs,title_textures.rs,list_x.rs,bind.rs,real.rs,submit_cost.rs,ram_budget.rs,dstorage.rs,gameinput.rs,kbm.rs,playstation.rs) and full deduplication against all 3,775+ XCL issues, PRs, and code-review comments isolate six structural walls that surface micro-patches cannot solve:xcl/Cargo.tomlrelease builds still omit Thin LTO andcodegen-units = 1(leaving 1.5–2× submission-path speed on the table); the recording thread still suffers per-draw heap allocations, redundant constant/descriptor copies, unbatched mesh/indirect draws, write-combined (WC) console-heap scans, andPAGES.lock()contention (including newly merged#3553holdingPAGESduringQueryInterface/allocations).GetWriteWatch1.5 GiB Pre-Submit Tax & Full-Texture Detiling:GetWriteWatchburns 26–35 s per 200 s (#582) scaling with watched address space; write-watched textures detile whole textures instead of only written mip levels; read-only root UAVs trigger multi-GB unnecessary guest-memory comparisons per frame; andSTREAM_RECHECKleaks retired entries (#2578).D3D12_HEAP_TYPE_DEFAULT(sparse.rs:3536, 3714), placed textures are duplicated (#1773), 64 MiB pool heaps trap 1.5–2.0 GB in wholly free 4 MiB chunks (#1773),vram.rs:135–150confirmsXCL_TEXTURE_BUDGET_EVICT=1tracks SRV metadata only without evicting anything, and#3587's fixed 2,048 MiB margin permanently traps 6–8 GB GPUs in Over-Pressure!#2403):pso_async.rs:495hardcodesis_evictable()toPipelineKind::Computeonly (Graphics PSOs are never evicted, and the eviction stage is still#[allow(dead_code)]). Even raising the driver heap to 2,048 MB did not prevent silent present freezes on RTX 5070 Ti driver610.88after 1,800 frames (#2403), proving Graphics+Compute LRU PSO eviction + persistent pipeline libraries (#3633) are mandatory.ffxCreateContext/ffxDispatchupscaler calls (which already provide jittered color, depth, and motion vectors) into NVIDIA Streamline DLSS Super Resolution + DLSS-G Frame Gen + Reflex or AMD FSR 3.1 FG, andpresent.rs:1661still callssc.Present(0, DXGI_PRESENT(0))withoutALLOW_TEARING(#2756).kbm.rswhips the camera after >100 ms poll gaps (#963), ignores absolute mice (#962), and has no mouse-wheel bindings;playstation.rs:111hardcodes a 128-byteReadFilebuffer that fails immediately on 547-byte DualShock 4 Bluetooth reports (#2465);gameinput.rshits0x80000003on device callbacks (#3583); andpresent.rsuses jagged DWM bilinear scaling (#554) with no live F1/F3 tuning HUD.Proven Dead-Ends & Measured Traps (Do Not Repeat!)
GetWriteWatchresets (#582): Measured on Ryzen 7 9800X3D — sibling threads contend on the kernel page-table lock, making each reset 2.5–3× slower. Win by eliminating/narrowing watched ranges (XCL_SPARSE_DIRECT, refused-range caching, VEH read-only physical blocks, written-mip-only detiling).cached_watch_rangesrebuilds (#582): Costs 0.2 µs; 99.7% of wall time is insideGetWriteWatch.#1566,#2639): A 13,824 MB cap refused required startup texture pages and killed the title at 11.7 s. Reduce XCL-owned mirrors/pools/staging and report truthfulXMemheadroom instead.#3535): Shrinking 301 of 1,714 pixel shaders on an RTX 4090 left world FPS frozen at ~0.2 FPS. The bottleneck is CPU submission, write-watch/memory traffic, VRAM thrashing, and missing upscaling/FG.CLZEROloop AOT patching (#2892),XCL_UMA_DRIVER=mixed(#3005–#3007), NVIDIA driver-heap UMA windows (#2844),XCL_RESIDENCY_PRIORITY(#3156),DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE(gpu/adapter.rs:129), and cursor release while dragging (#176) are already onmain.Master Workstream Matrix & Agent Claim Board (28 Deduplicated Workstreams)
How to claim: Comment
Claiming <ID> — <branch/PR> — <GPU / RAM>(e.g.,Claiming PERF-02 — pr/zero-alloc-submit — RTX 4050 6GB / 16GB RAM). Include before/after telemetry fromsubmit_cost.rs,XCL_GPU_PROFILE=1, and DXGIQueryVideoMemoryInfo.PERF-01codegen-units = 1default release profile (1.5–2× submit win)Cargo.toml#3604PERF-02CBV_ONCE, lockless desc heap &InitHeadersreplayhle/d3d12x/{list_x.rs,bind.rs,real.rs}#2688,#3222PERF-03hle/d3d12x/{list_x.rs,barrier_groups.rs,indirect_guard.rs}#2688(net-new)PERF-04hle/d3d12x/{console_heap.rs,bind.rs,real.rs}#2688(net-new)PERF-05GetWriteWatchtax (refused cache, VEH RO blocks, interval-skip, AVX2 merge)hle/d3d12x/{watch.rs,sparse.rs,title_textures.rs}#582, open#3649,#3677PERF-06EnqueueMakeResident&Wait64elisionhle/d3d12x/{queue_submit.rs,real.rs,fence_x.rs}#2688,#505, open#2523PERF-07UpdateTileMappingshle/d3d12x/{sparse.rs,texture_upload.rs}#2688, open#3651,#3701PERF-08ffxCreateContext/ffxDispatch→ DLSS SR + DLSS-G / FSR 3.1 FG + Reflexhle/d3d12x/present.rs, newgpu/upscale.rsPERF-09ALLOW_TEARING(#2756) + 3-buffer waitable flip-discard + QPC frame pacinghle/d3d12x/{present.rs,frame.rs}#2756,#554PERF-10XCL_RAYTRACING=offBVH bypass, Intel P-core/CCD0 affinity, DirectStorage & XMA speedgpu/bvh.rs,hle/{kernelx.rs,dstorage.rs,xma2/mod.rs}#2688(net-new)MEM-01hle/d3d12x/{sparse.rs,title_textures.rs,uma_driver.rs}#1773,#2825,#646, open#3695MEM-02XCL_TEXTURE_BUDGET_EVICT(vram.rs:135) perform monotonic, fence-safe LRU evictionhle/d3d12x/{vram.rs,bind.rs,late_release.rs}#1773,#2688MEM-03#35876–8 GB Over-Pressure trap, dynamic RT reserve & 85% empty-block pool caphle/d3d12x/{vram.rs,memory_report.rs,alloc_pool.rs}#3587,#1773MEM-04#3553PAGESlockhle/d3d12x/{sparse.rs,vram.rs,sharded.rs}#1773,#3553,#3593,#3011MEM-05XMemstatsram_budget.rs,hle/d3d12x/alloc_pool.rs,hle/kernelx.rs#2639,#646,#2688MEM-06#2578/#1049leakshle/d3d12x/{title_textures.rs,uma_driver.rs},hle/dstorage.rs#2578,#1049,#2639NV-01pso_async.rs:495) + 610.88 guardhle/d3d12x/pso_async.rs,shaders/pipeline_library.rs#2403,#1452, open#3633NV-02nvgpucomp64stalls, prune unused compute PSOs (#3442) & persist libraries (#3633)hle/d3d12x/pso_async.rs,gpu/recomp/{dxc.rs,pso.rs}#156,#2088,#2595,#3633NV-03#3561(IO_LOOP_BUDGET),#3591(HLSLexecz),#3549gpu/dxil/{kernel.rs,lower.rs},hle/d3d12x/sparse.rs#3561,#3591,#3549,#3553NV-04Wait64BitValueXhangs, panic-stuck PSO queues & watchdog killshle/d3d12x/{fence_x.rs,gpu_awake.rs,pso_async.rs}#505,#1452, open#3670NV-05uma_coherent.txt(#3568), GPU indirect validation, shared-tex size &0xC0000005hle/d3d12x/{uma_driver.rs,indirect_guard.rs,guard.rs}#3568,#675,#846,#662NV-06dred.rswith automatic root-cause classification & light-DRED diagnostic defaulthle/d3d12x/dred.rs,stall.rs#2403,#1452CTRL-01kbm.rs>100 ms camera whip (#963), absolute mouse (#962) & wheel/deadzone/GTA presethle/kbm.rs#963,#962CTRL-02playstation.rs:111128B→547B DualShock 4 BT crash (#2465) & callback trap (#3583)hle/playstation.rs,hle/gameinput.rs#2465,#3583CTRL-03hle/gameinput.rs,hle/playstation.rs#692CTRL-04#554), DPI awareness & Alt+Enter borderless fullscreenhle/d3d12x/present.rs,hle/kbm.rs#554, open#3672CTRL-05xcl.toml)hle/d3d12x/present.rs,config.rsCTRL-06hle/xaudio2.rs,hle/xma2/mod.rs,hle/opus.rs#1728,#926Track A — Aggressive FPS Architecture (Target: 3–4 FPS → 30–60+ FPS)
PERF-01— Promote Thin LTO +codegen-units = 1to Default Release ProfileP0| Files:Cargo.toml| Related: Open PR#3604Cargo.tomlcurrently sets onlydebug = 2under[profile.release], leaving defaultcodegen-units = 16and no LTO. Cross-module hot calls acrosslist_x.rs,bind.rs,real.rs,sparse.rs, andvram.rslose inlining opportunities worth 1.5–2× on the CPU submission path.#3604and makelto = "thin"+codegen-units = 1(retainingdebug = 2for crash symbolication) the standard release profile.submit_cost.rswith zero debug-symbol loss.PERF-02— Zero-Alloc Per-Draw Submission,CBV_ONCE, Lockless Descriptor Heap &InitHeadersReplayP0| Files:crates/xcl/src/hle/d3d12x/{list_x.rs,bind.rs,real.rs,alloc_pool.rs}| Related:#2688,#3222Vecallocation and mutex lock on the per-draw path inlist_x.rsandbind.rs(10,000+ draws/frame).Reset().CBV_ONCE& unaligned root-CBV dedup: Reuse a single upload copy for all draws in a list referencing identical unchanged CBV bytes until next written; copy unaligned root constant buffers once per list; reuse own-byte copy buffers across descriptor binds.ID3D12DescriptorHeapexists, return it lock-free; cache rebuilt descriptor tables by fast 64-bit hash + exact compare.< 1 KiBupdates, and batchInitHeaderstitle-memory stores from a compact record.PERF-03— Per-Draw Parameter SRV Mesh Batching & Indirect Draw Barrier BatchingP0| Files:crates/xcl/src/hle/d3d12x/{list_x.rs,barrier_groups.rs,indirect_guard.rs}| Related:#2688(Net-new — 0 open PRs)ExecuteIndirect/ multi-draw — proven in synthetic D3D12 benchmarks on RTX 5070 Ti (4,096 mesh draws) to cut CPU recording ~70× (0.118 → 0.0016 ms) and GPU execution ~2× (0.068 → 0.035 ms).barrier_groups.rs): Coalesce per-draw resource barriers across compatible indirect draw sequences into single batched barrier submissions — proven on 3,200 indirect draws to cut barrier overhead ~48× (30.54 → 0.64 ms).≤ 65,535groups) through the plain direct signature without extra indirection.list_x.rsdraw/barrier submission overhead on dense city scenes.PERF-04— Host-RAM Bitset for Live Console-Heap V# Slots & Read-Only Root UAV Write-Back ElisionP0| Files:crates/xcl/src/hle/d3d12x/{console_heap.rs,bind.rs,real.rs},crates/xcl/src/gpu/recomp/| Related:#2688(Net-new)console_heap.rs): Track live console-heap V# slots in a compact host-RAM bitset instead of linearly scanning write-combined (WC) heap copies — eliminates 100% of catastrophic WC CPU reads (~65× faster,60.30 µs → 0.93 µs).12.8 GB → 2.7 GB/frame).PERF-05— Escape the 1.5 GiBGetWriteWatchStorm & Lock-Free Watch/Refresh Hot PathsP0| Files:crates/xcl/src/hle/d3d12x/{watch.rs,sparse.rs,title_textures.rs,submit_cost.rs}| Related:#582, open PRs#3649,#3677#582measured 35,369 ms ofGetWriteWatchper 200 s on RTX 5080 (still 26,190 ms withXCL_WATCH_HOT=1). Do NOT multithreadGetWriteWatch(proven 2.5–3× slower in#582).#3649/#3677(2–4 MiB watch-range blocks + adaptive hot-block retention) and cache kernel-refused ranges soGetWriteWatchis never re-called on rejected view memory; eliminateVirtualQueryin write-fault waits.RangeSet) & coalesceVirtualProtectruns (~5.9× faster on sparse views) + O(1) envelope fast path ontitle_textures::refresh_once(~8× faster on localized dirty ranges).PAGE_READONLYwith a lock-free VEH dirty-bitset handler (0.00 µs/submit when untouched) + AVX2 fast-path skip-unchanged writes (~1.7× faster,6.8 GB/s) + incremental card hashing for ≥ 64 KiB hot buffers.used_journal.rs/view_want.rs).write-watch+chunk scandrops ≥ 10× (to < 12 ms/s insubmit_cost.rs).PERF-06— Async GPU Submission Relay, Non-Blocking Mip Uploads,EnqueueMakeResident&Wait64ElisionP0| Files:crates/xcl/src/hle/d3d12x/{queue_submit.rs,real.rs,texture_upload.rs,fence_x.rs}| Related:#2688,#505, open PR#2523ExecuteCommandListshand prepared lists to a dedicated high-priority sender thread and return immediately, overlapping next-frame recording with upload/dispatch execution.NO_WAIT+UPLOAD_AHEAD): Never stall the direct graphics queue waiting for a streamed mip to detile/upload; bind the next-lower resident mip and atomically swap the SRV once the copy-queue fence completes (verifying fence completion before publication!).ID3D12Device3::EnqueueMakeResident: Replace synchronous CPU-blockingMakeResidentcalls with asyncEnqueueMakeResidentwaited on by the GPU queue before first use.Wait64BitValueXWaits & Track Cross-Queue Wakeups: Check CPU-visible fence state before emitting GPUQueue::Wait— proven up to 26× faster (eliding ~1,000 redundant fences) with 5.8× faster cross-queue wakeups.PERF-07— Coalesced Dirty Copy Ranges, Written-Mip-Only Detiling & ThreadedUpdateTileMappingsP0| Files:crates/xcl/src/hle/d3d12x/{sparse.rs,texture_upload.rs,title_textures.rs}| Related:#2688, open PRs#3651,#370154–66 µsvs385–496 µs), paired with landing#3651(GPU compute 2D detiling) and#3701(direct-upload volume-mip detiling).CopyBufferRegion/CopyTextureRegion+ one barrier) and parallelize independent small copy runs.UpdateTileMappings(sparse.rs:3636–3702): Merge contiguous tile coordinates into multi-range calls on a dedicated mapping thread outsidePAGES.lock().Copy*andUpdateTileMappingsD3D12 calls/frame; 7–12× faster partial texture updates.PERF-08— Native Upscaler & Frame-Generation Bridge atffxCreateContext/ffxDispatch(DLSS SR + DLSS-G / FSR 3.1 FG + Reflex)P0| Files:crates/xcl/src/hle/d3d12x/present.rs,crates/xcl/src/gpu/adapter.rs, newcrates/xcl/src/gpu/upscale.rs| Related: Net-new (0 open PRs in all 3,775 XCL items!)ffxCreateContext,ffxDestroyContext,ffxDispatch,ffxQuery): Console titles already pass jittered low-res color, depth, motion vectors, exposure, reactive mask, and camera constants straight intoffxDispatch.PERF-09— LandALLOW_TEARING(#2756), 3-Buffer Waitable Flip-Discard & QPC Frame PacingP1| Files:crates/xcl/src/hle/d3d12x/{present.rs,frame.rs}| Related: Open PR#2756,#554present.rs:1661callssc.Present(0, DXGI_PRESENT(0)).ok()withoutDXGI_PRESENT_ALLOW_TEARING.#2756, upgrade to 3-bufferDXGI_SWAP_EFFECT_FLIP_DISCARDwithDXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT(max latency 2–3), add a hybrid sleep+spinXCL_FPS_CAP, and holdSetThreadExecutionState(ES_DISPLAY_REQUIRED)during play so gamepad-only sessions never trigger sleep/screensaver.PERF-10— Zero-CostXCL_RAYTRACING=offBVH Bypass, Intel P-Core/CCD0 Affinity & DirectStorage/XMA SpeedP1| Files:crates/xcl/src/gpu/bvh.rs,crates/xcl/src/hle/{kernelx.rs,dstorage.rs,xma2/mod.rs}| Related:#2688XCL_RAYTRACING=offBVH Bypass: When RT is disabled, elide batched BVH build/rehydrate/copy dispatches cleanly (returning minimal prebuild sizes and advancing fences immediately) to reclaim both GPU frame time and hundreds of MB of BVH scratch VRAM.kernelx.rs): TranslateSetThreadGroupAffinity/SetThreadAffinityMaskviaGetSystemCpuSetInformationso title render/submit/audio threads stay on P-cores / CCD0, while XCL's background PSO-compile and detile workers run on E-cores / secondary CCD.DecompressorOxide+ scratch buffers indstorage.rs(~1.74× faster decompression, zero per-request heap churn), add sorted 3-worker read scheduling for HDDs, and add a single-packet fast path inxma2/mod.rs(2–11× faster XMA frame extraction).XCL_RAYTRACING=off; zero E-core preemption spikes on Intel 12th–14th Gen HX/desktop CPUs.Track B — Aggressive RAM & VRAM Compression (Target: 27 GB VRAM / 50 GB Commit → ≤ 6–8 GB VRAM / ≤ 16 GB RAM)
MEM-01— Eliminate VRAM Double-Mirroring: Default Lazy Tiles, L0/L1 Tiering & Idle CPU Mirror DropP0| Files:crates/xcl/src/hle/d3d12x/{sparse.rs,title_textures.rs,uma_driver.rs}| Related:#1773,#2825,#646, open PR#3695D3D12_HEAP_TYPE_DEFAULT(sparse.rs:3536, 3714), placed textures are duplicated (#1773), and idle CPU tile copies stay committed (#2825). On RTX 3080 10 GB, evenXCL_TEXTURE_LEVEL_PAGES=1still sits at 15.9 GB local VRAM against a 9.0 GB budget (#1773); meanwhile, placing title GPU heaps in local VRAM and cold sparse buffers/streamed levels in system memory (L0) let RTX 3080 10 GB run 900 s crash-free (#1452/#2688).XCL_SPARSE_LAZY=1andXCL_TEXTURE_LEVEL_PAGES=1to safe defaults.L1; automatically place cold sparse buffers, coherent windows, and non-hot streamed mips inL0(D3D12_HEAP_TYPE_CUSTOM/MEMORY_POOL_L0) when DXGI local budget ≤ 10 GB.#2825): Reclaim redundant sparse tiles once detiled andVirtualFree(MEM_DECOMMIT)idle CPU tile mirrors (reading back only on rare CPU touch). Land#3695(coherent window sized by live GPU heaps).MEM-02— TurnXCL_TEXTURE_BUDGET_EVICT(vram.rs:135–150) Into Real, Monotonic, Fence-Safe LRU EvictionP0| Files:crates/xcl/src/hle/d3d12x/{vram.rs,bind.rs,late_release.rs}| Related:#1773,#2688vram.rs:135–150explicitly statesXCL_TEXTURE_BUDGET_EVICT=1tracks SRV metadata only — it does zero actual eviction or safe descriptor replacement.IDXGIAdapter3::QueryVideoMemoryInfo(Local & Non-Local) every ~100 ms; trigger soft trim at 82% ofBudgetand aggressive LRU eviction at 90% ofBudget.last_used_frameinbind.rs; evict coldest top-mip textures viaID3D12Device::Evictor fence-deferred release (late_release.rs) while atomically repointing their descriptors to a resident lower-mip / 1×1 fallback SRV (preventing GPU page faults), enforcing eviction monotonicity + a 4 MiB progress floor with a 2,000 ms cooldown to avoid thrashing (proven to cut streaming eviction stalls from 10.87 ms → 2.04 ms).CurrentUsagestabilizes ≤ 92% ofBudgetacross 30+ min of roaming with zero WDDM thrashing.MEM-03— Fix#35876–8 GB Over-Pressure Trap, Dynamic Render-Target Reserve & 85% Empty-Block Pool CapP0| Files:crates/xcl/src/hle/d3d12x/{vram.rs,memory_report.rs,alloc_pool.rs}| Related: Open PR#3587,#1773#3587):target.saturating_sub(HYSTERESIS)causes 6–8 GB GPUs to get permanently stuck in Over-Pressure and never return toRoom!local_segment()returnsNone,refresh()never resetsPRESSURE.take_tiles_with_fallback's L0 path never falls back toDEFAULTwhen L0CreateHeapfails.sweep_and_reclaimclearsvram_oom_untilwhen reclaiming L0 (system-RAM) heaps that freed 0 bytes of VRAM.#3587defects; scale render-target headroom reserve proportionally to DXGI budget (e.g., 512 MiB–1.5 GiB on 6–8 GB cards instead of a fixed 2–3 GiB reserve); and cap retained empty texture-pool blocks strictly under the 85% budget line (reclaiming ~512 MB at peak on 8 GB cards).MEM-04— 4 MiB Sparse Pool Chunks (Reclaim 1.5–2 GB), 64 MB Section Split & Fix#3553PAGESLockP0| Files:crates/xcl/src/hle/d3d12x/{sparse.rs,vram.rs,sharded.rs,console_heap.rs}| Related:#1773,#3553,#3593,#3011(C115)#1773(@imnicho): 64 MiB sparse pool heaps trap 1.5–2.0 GB of VRAM and commit after the title frees tiles, with most free space sitting in wholly free 4 MiB pieces!#3011(C115): Lazily committed allocations in one giant section caused 225 per-page lock waits taking 342 of 367 ms; splitting into ≤ 64 MiB sections eliminates the lock bottleneck.#3553(just merged Dec 2, flagged by@bmjask):live_reserved_forrunsQueryInterface/allocations inside the globalPAGESmutex, and timed-outwait_new_placementreturns an unready texture anyway!PAGES.lock()by 64 MiB buckets (sharded.rs); movelive_reserved_for, COMRelease,UpdateTileMappings, and zero-fills (#3593) strictly outside all page locks; and fix timed-outwait_new_placementhandling.refresh lock wait< 0.1 ms/submit; zero AB-BA deadlocks.MEM-05— Host-Memory Admission Control, Indirect Scratch Pooling, Working-Set Trim Protection & TruthfulXMemStatsP0| Files:crates/xcl/src/ram_budget.rs,crates/xcl/src/hle/d3d12x/alloc_pool.rs,crates/xcl/src/hle/kernelx.rs| Related:#2639,#646,#2688alloc_pool.rs,ram_budget.rs): Pool indirect-batch scratch buffers back on list completion (unpooled indirect scratch has been measured leaking 3.2 GB VRAM and spiking GPU time 4×!). Enforce commit headroom floors (e.g., 512 MiB for speculative uploads, 1 GiB for fresh 64 MiB upload-block growth) so speculative prefetch yields to mandatory game allocations without refusing title commits (#1566).ram_budget.rs): Prevent Windows from abruptly trimming XCL's working set from ~15 GB → 2 GB under momentary RAM pressure (which tanks FPS by 50–70% for minutes while paging back in).XMemGetWorkingSetStatistics(kernelx.rs): Scale reported working-set capacity to the host PC's actual RAM/VRAM tier (especially 16 GB RAM / Lockhart mode) so the game's own streamer naturally evicts distant LODs.MEM-06— File-Backed Cold Shadow Memory, DirectStorage Cap & Fix#2578/#1049P1| Files:crates/xcl/src/hle/d3d12x/{title_textures.rs,uma_driver.rs},crates/xcl/src/hle/dstorage.rs| Related:#2578,#1049,#2639title_textures.rs:994–1009(#2578):retire_overlappingnever removes retired entries fromSTREAM_RECHECK, leaking CPU re-hash work and memory over long sessions.#1049: UI glyph atlases inXCL_UMA_DRIVER=mixed's unwatchedGPU_UPLOADsegment miss updates after first upload, dropping menu letters and drawing black HUD blocks.STREAM_RECHECKinretire_overlapping(#2578); re-check dynamic glyph/UI atlases inGPU_UPLOADsegments (#1049); add opt-in sparse temporary file backing (FILE_ATTRIBUTE_TEMPORARY) for cold >4 MiB shadow buffers on 16 GB RAM hosts; and enforceXCL_DSTORAGE_MEMORY_BUDGET_MIBas a strict semaphore on in-flight decompression scratch.STREAM_RECHECKover multi-hour runs; zero missing UI glyphs; zeroERROR_COMMITMENT_LIMIT (1455)crashes on 16 GB RAM.Track C — NVIDIA Compatibility & Zero-Crash Stability
NV-01— Break the 512 MB NVIDIA Shader-Code Heap Wall (pso_async.rs:495) &610.88Silent FreezeP0| Files:crates/xcl/src/hle/d3d12x/pso_async.rs,crates/xcl/src/shaders/pipeline_library.rs| Related:#2403,#1452, open PR#3633#2403):pso_async.rs:495hardcodesfn is_evictable(&self) -> bool { self.kind == PipelineKind::Compute }, leaving Graphics PSOs pinned forever while the eviction/rebuild stage remains#[allow(dead_code)](pso_async.rs:142).0x887a0005for 600 s+ on RTX 4080/5080/GTX 1650 — but on RTX 5070 Ti driver610.88, even a 2,048 MB reserve still silently froze presents after 1,800 frames (#2403,@brainhay5).is_evictable()to BOTH Graphics AND Compute PSOs (pso_async.rs:495).GetCachedBlob/ calibrated estimator) and evict coldest completed-fenceID3D12PipelineStateobjects whenever resident code crosses ~384–416 MiB (scaling with detected heap profile), retaining their recipe + persistentID3D12PipelineLibraryentry (#3633) for <1–2 ms re-hydration (or 1-frame safe async rebuild).610.88silent present freeze (#2403): Add a 10-second present-stall detector that dumps live PSO count, resident shader-code MB, pending queue fences, and driver version.0x887a0005removals and zero silent present freezes across 60-min retail runs on 6–16 GB NVIDIA GPUs (drivers610.88&621.40+).NV-02— Killnvgpucomp64Multi-Minute Stalls, Prune Unused PSOs & Persist Pipeline LibrariesP0| Files:crates/xcl/src/hle/d3d12x/pso_async.rs,crates/xcl/src/gpu/recomp/{dxc.rs,pso.rs},crates/xcl/src/shaders/pipeline_library.rs| Related:#156,#2088,#2595, open PRs#3633,#3442,#3670nvgpucomp64for 951 s (#2088); half of cold compute compile time goes to unused builds (#3442); 80k+ queued graphics PSOs starve 8 GB Ampere / RTX 3070 into black screens (#2595,#2688); and minor runtime rebuilds invalidate warm pipeline libraries (#3633).#3633(cross-buildID3D12PipelineLibrarypersistence) keyed by(adapter_luid, driver_version, dxil_blake3, root_sig_hash, pso_state_hash).#3442(prune unused compute PSOs) and#3670(fault-tolerant preload workers); add a reserved fast worker lane for small/medium foreground draws (proven ~38× faster small-request completion,901 → 23.5 ms) so >1 MB compute outliers can never starve world rendering.nvgpucomp64compiles and ensure panicking builds always complete their queue entry and log to a version-scopedwarm-bad.txt.NV-03— Fix Live Dec 2 Code-Review Regressions (#3561,#3591,#3549)P0| Files:crates/xcl/src/gpu/dxil/{kernel.rs,lower.rs},crates/xcl/src/hle/d3d12x/sparse.rs| Related:#3561,#3591,#3549@bmjask, Dec 2):#3561(Critical): Lane-loop CFG walk drops the per-dispatchIO_LOOP_BUDGETloop-pass cap (kernel.rs:558), re-exposing infinite GPU loops / TDR hangs.#3591(High): The NVIDIAexeczmiscompile workaround exists only in the direct DXIL pixel path, leaving the HLSL fallback path broken on NVIDIA, andflat_skipsdoes not reject regions modifyingHW_REG_MODE(s_round_mode/s_denorm_mode).#3549(Medium): Permanently skippingMEM_RESERVE/MEM_FREEpages drops GPU results if the title commits that page concurrently.NV-04— Eradicate ProducerlessWait64BitValueXHangs &"GPU Loc Sig"Watchdog KillsP0| Files:crates/xcl/src/hle/d3d12x/{fence_x.rs,gpu_awake.rs,watch.rs,real.rs}| Related:#505(573 comments),#1452(77 comments)fence_x.rs): Track every queuedSignal/WriteValueImmediateVA + value across all queues; if a producer was skipped (uncompiled PSO or RT-off bypass), never emit an unfulfillable GPUQueue::Wait— log once and resolve safely.gpu_awake.rs+ bounded frame-hold timeout: Keep GPU heartbeat timestamps advancing during bounded PSO waits, and stop waiting on slow pipelines once a frame has waited past a configurable threshold so the title's"GPU Loc Sig"watchdog never kills an actively progressing run.Wait64BitValueXhangs and zero false"GPU Loc Sig"watchdog terminations over 60-minute runs.NV-05— Fix Series Suma_coherent.txt(#3568), GPU Indirect Validation, Shared-Texture Sizing &0xC0000005P1| Files:crates/xcl/src/hle/d3d12x/{uma_driver.rs,indirect_guard.rs,guard.rs,vram.rs},crates/xcl/src/hle/xg.rs| Related:#3568,#675,#846,#662,#232#3568: Keyuma_coherent.txtby(title_id, console_profile, adapter_luid)and bounds-check before mapping so Series X sizes never crash Series S (lockhart) runs at ~37 s.indirect_guard.rs): Clamp indirect draw counts/offsets via lightweight compute beforeExecuteIndirectso malformed indirect buffers never page-fault NVIDIA GPUs (#675).0xC0000005ABI traps (#662,#846,#232).lockhart) and Series X (anaconda) profiles.NV-06— Actionable NVIDIA DRED Correlation & Automatic Crash Root-Cause ClassifierP1| Files:crates/xcl/src/hle/d3d12x/dred.rs,stall.rs| Related:#2403,#14520x887A0005/0x887A0006/watchdog exit print a 10-line Pre-Crash Classifier Banner: (1) resident NVIDIA shader-code MB & live PSO count, (2) DXGI Local/Non-Local Usage vs. Budget, (3) pending producerlessWait64BitValueXentries, (4) last 16 submitted PSO hashes + list types, and (5) explicit root-cause class (NVIDIA_SHADER_HEAP_EXHAUSTION|VRAM_BUDGET_OOM|PRODUCERLESS_FENCE_HANG|GPU_PAGE_FAULTwith owning resource).Track D — PC Controls, Windowing & Windows UX
CTRL-01— Fixkbm.rs>100 ms Camera Whip (#963), Absolute Mouse (#962) & Wheel/Deadzone/GTA KeymapP0| Files:crates/xcl/src/hle/kbm.rs| Related:#963,#962#963: Expire stale accumulated mouse deltas wheneverdt > 50 msor across focus/menu transitions so camera whip cannot happen.#962: ConvertMOUSE_MOVE_ABSOLUTEWM_INPUTcoordinates cleanly into per-frame deltas (RDP, VMs, tablets).WheelUp/WheelDownand side buttons (XBUTTON1/XBUTTON2, currently 0 hits in XCL), configurable inner-deadzone compensation, separate X/Y & ADS sensitivity multipliers, optional GTA V PC-style default keymap preset inxcl.toml, and crash-safeClipCursorrelease on Alt-Tab / panic.CTRL-02— Fixplaystation.rs:111128B→547B DualShock 4 BT Crash (#2465) & Callback Trap (#3583)P0| Files:crates/xcl/src/hle/playstation.rs,crates/xcl/src/hle/gameinput.rs| Related:#2465,#3583playstation.rs:111hardcodeslet mut buf = [0u8; 128];while DualShock 4 over Bluetooth requires a 547-byteHIDP_CAPS.InputReportByteLengthbuffer (#2465), andgameinput.rshits0x80000003onRegisterDeviceCallback(#3583).HidP_GetCapsdynamically inplaystation.rs(buffer ≥max(caps.InputReportByteLength, 547)), ensure NUL-terminated HID paths forCreateFileW, decode both BT (0x11) and USB (0x01) DualShock 4 / DualSense reports, and fixRegisterDeviceCallback+ COMQueryInterface(IID_IUnknown+ own IID) ingameinput.rs.CTRL-03— Modern Multi-Controller Backend (SDL3 / Native HID, Hotplug, Ghost-Pad Filter & Trigger Rumble)P1| Files:crates/xcl/src/hle/gameinput.rs,crates/xcl/src/hle/playstation.rs| Related:#692#692) replacing slow empty-slotXInputGetState(0..3)polling (gameinput.rs:149–193), filter all-zero wireless receiver ghost pads, support mid-session hotplug/reconnect, impulse trigger rumble, DualSense/Switch Pro/generic pads, and seamless Controller ↔ KB+M auto-switching.CTRL-04— High-Quality Present Scaling (#554), DPI Awareness & Alt+Enter Borderless FullscreenP1| Files:crates/xcl/src/hle/d3d12x/present.rs,crates/xcl/src/hle/kbm.rs| Related:#554, open PR#3672#3672, enablePER_MONITOR_AWARE_V2DPI awareness, add freeze-free Alt+Enter Borderless Fullscreen, and replace DWM's single bilinear tap (#554) with a lightweight bicubic/Lanczos or CAS-sharpen blit pass wheneverwindow_size != render_size.CTRL-05— Built-In Lightweight F3 Telemetry HUD & F1 Live Settings MenuP1| Files:crates/xcl/src/hle/d3d12x/present.rs,crates/xcl/src/config.rs| Related: Net-newXCL_FPS_CAP, VSync/Tearing, Mouse Sensitivity/Deadzone, and VRAM Budget Target — saved directly toxcl.toml.CTRL-06— Time-Critical Audio Thread Priority & XMA2/Opus Stutter ImmunityP2| Files:crates/xcl/src/hle/xaudio2.rs,crates/xcl/src/hle/xma2/mod.rs,crates/xcl/src/hle/opus.rs| Related:#1728,#926THREAD_PRIORITY_TIME_CRITICALso heavy shader-compile or streaming bursts never starve audio buffers, and treatPacketSkipCount == 0xffcleanly as end-of-stream.Verification & Benchmarking Standard (Required for Every PR)
XCL_GPU_PROFILE=1/present.rssubmit_cost.rslook< 0.2 ms)QueryVideoMemoryInfoGetProcessMemoryInfopso_async.rs(#2403)0x887a0005removals)[NOTE: You may go with your own open-ended proper tested solutions. The starting hypotheses provided are just for initial test runs]