@opengrip | Gripped.exe Native PC Engineering Roadmap
Live Stream: https://rumble.com/user/opengrip | Runs Logged: 719 | Textures Ready: 59.3% instant ready (150 ms avg) | Updated: 2026-12-03 01:55 UTC
Chat Commands: !commands · !roadmap · !mem · !rt · !specs
Viewer Tool (Credit @Psuedom): Rumble-Sync Auto-Refresh & Quality Addon (Chromium / Firefox / Tampermonkey)
Tech Specs: Hardware RT · DXR & Wave32 · RT & BVH Audit · Wave32 Fix · Stream UI Kit
Engineering Mission & Quality Standard
Goal: Replace every console emulation layer with Gripped.exe, a 100% native Windows DirectX 12 runtime on NVIDIA RTX 5080 (1440p, full Ultra settings, 100% Hardware Ray Tracing, zero downgraded settings).
Method: Swap out legacy translation modules (command lists, descriptors, unified memory, BVH builders, queues/fences, OS shims) one system at a time, gated by live telemetry and zero-crash verification on every commit.
Scope: Strictly live PC engineering and performance telemetry. No game files, binaries, or downloads are distributed here.
🎯 CURRENTLY CUTTING OUT RIGHT NOW: Section 2 (Memory, Buffers & Textures)
Emulation Layer Being Replaced: Cutting out Xbox unified-memory shadow copies, small buffer slab state sync, and RAM/VRAM spill in favor of native PC heaps & IoRing streaming
Live Bench Focus ([TESTING BUILD]): Checking if the updated build works (Just launched a fresh build with recent updates. Watching for any problems.)
Direct Jump: See Section 2 Breakdown & Remaining ms Cost ↓
Overall Native PC Software Conversion (65% Complete)
Status Key: 🟢 DONE · 🎯 ACTIVE CUTOUT · 🟡 PARTIAL · ⚪ QUEUED
Measures strictly how much of the software stack has moved from console translation to native PC code (auto-synced live from git HEAD a427f42). Click Details ↓ on any row to jump to its Done vs Left table and measured ms cost:
| # | Core System | Status | Progress | % | Remaining Cost | Details |
|---|---|---|---|---|---|---|
| 1 | Graphics Commands & Descriptors | 🟡 Partial | 🟩🟩🟩🟨⬜ | 79% | ~7-12 ms CPU | Details ↓ |
| ▶2 | 🎯 Memory, Buffers & Textures | 🎯 ACTIVE | 🟩🟩🟩⬜⬜ | 63% | ~8-15 ms | Details ↓ |
| 3 | Hardware Ray Tracing & BVH | 🟡 Partial | 🟩🟩🟩🟨⬜ | 68% | ~4-10 ms CPU | Details ↓ |
| 4 | Shader & Pipeline Compiler | 🟡 Partial | 🟩🟩🟩🟨⬜ | 71% | ~2.6-6.3 ms GPU | Details ↓ |
| 5 | GPU Queues, Sync & Presentation | 🟡 Partial | 🟩🟩🟨⬜⬜ | 52% | ~2-5 ms | Details ↓ |
| 6 | OS, Storage, Audio, Input & Loader | 🟡 Partial | 🟩🟩🟨⬜⬜ | 55% | ~1-3 ms | Details ↓ |
| OVERALL: EMULATION -> NATIVE PC | 🟡 Active | 🟩🟩🟩🟨⬜ | 65% | Target: 0 Xbox layers |
All 6 ↓ |
(Note: CPU and GPU timings overlap across threads, so ms costs do not add linearly, and real frame-time drops depend on whether a scene is CPU-bound or GPU-bound.)
Jump to: 1. System Breakdowns & ms Costs · 2. Live Telemetry · 3. Contributors · 4. Milestones by Era · 5. Engineering Log · 6. Technical Appendix
1. Detailed System Breakdown (Done vs Remaining + ms Cost)
Section 1: Graphics Commands & Descriptors
Section 1 Progress: 79% Native (🟩🟩🟩🟨⬜) | Est. Remaining Cost: ~7-12 ms CPU
Plain English: How the game tells your PC graphics card what to draw every frame. Replacing the Xbox "middleman" stops thousands of wasted CPU translation calls every frame.
| Status | Component | What It Does | Current Cost (ms) |
|---|---|---|---|
| 🟢 DONE | Native CoreEngine v9 Hooks #1-#6 (25 Live Hooks) |
Hooked FillGfx/CsDescriptorTable, FillTableGeneric, State Flush #2a-#2c (-41.4% calls), Indirect #3, CBV/null-SRV #4, & Hooks #5/#6 (6fed287, ae68272) directly to PC D3D12 |
Native |
| 🟢 DONE | Barrier Coalescing, Scoped UAV Barriers & 64 KiB Placed UAV Pool | Batched barriers via Rec::raw(), per-resource UAV barriers, and 64 KiB placed UAV pool (6fed287) |
Native |
| 🟡 LEFT | Replace list::thin Command-List Translator |
Route native_desc straight into direct ID3D12GraphicsCommandList draws (~14.5k calls/f still left) |
~5-8 ms CPU (heavy thread load) |
| ⚪ LEFT | Delete descriptor/host.rs Page-Mirroring & port_* |
Remove fallback descriptor byte-scanning (5k-8k slots scanned/f) + port_descriptors/port_journal/port_cbv |
~1-3 ms CPU |
Section 2: Memory, Buffers & Texture Streaming
🎯 ACTIVELY CUTTING OUT RIGHT NOW | Section 2 Progress: 63% Native (🟩🟩🟩⬜⬜) | Est. Remaining Cost: ~8-15 ms steady (cutting heavy-load spikes)
Plain English: Xbox shares one memory pool for CPU and GPU; PC splits them into System RAM and GPU VRAM. Deleting Xbox memory emulation stops double-copies, pop-in, and heavy loading stutters.
| Status | Component | What It Does | Current Cost (ms) |
|---|---|---|---|
| 🟢 DONE | Dual-Queue GPU Compute Detiler (Stage 12A) |
Unpacks >= 128 KiB streamed textures (80% of bytes) on RTX 5080 compute shaders (sr_tex max 111.7 -> 18.2 ms) |
Native |
| 🟢 DONE | Win11 IoRing v3 QD=72 + Pillar 3B Streaming (Stage 15 / Pillars 2A-3B) |
Async DirectStorage with pre-registered file handles (@Kaltaaa tip), batch coalescing, BCPack scratch reuse, lazy StagingUpload (-85% upload allocs), Pillar 3B streaming, and low-RAM gpu_detile scratch trim |
Native |
| 🟢 DONE | Zero-VirtualQuery Placeholder Sparse Copy + CARD_CPU_HEAP=1 (Pillar 2A) |
5.6x faster sparse copies + native Slice-3 dynamic CBV ring (Stage 2) |
Native |
| 🎯 ACTIVE | Delete steps_refresh Shadow Copies & Buffer Uploads (shadow.rs) |
Eliminated shadow.rs/watch.rs write-lock convoys & bake drains (19e3e6b); next move remaining buffers straight to native PC UPLOAD/DEFAULT heaps (keep Pillar 2 ReBAR strictly sequential write-only & tightly VRAM-budgeted per @Kaltaaa) |
~4-10 ms (down sharply after 5.6x copy + lock cut) |
| 🟡 LEFT | Finish FILE_FLAG_NO_BUFFERING + Tighter pool_tex Pressure Trim |
Eliminate remaining Standby-RAM double-buffering (@Kaltaaa) and cap WDDM shared-RAM spillover before free_ram drops under 2-3 GB |
Heavy-load spikes |
| ⚪ LEFT | Delete watch.rs OS GetWriteWatch Scanning |
Replace Windows page-watch scans with explicit dirty ranges on native allocators | ~4.0-7.0 ms (spikes 9.2 ms) |
| ⚪ LEFT | Delete land.rs / ws_readback.rs / texstore.rs |
Replace eager GPU->CPU copy-backs and heuristic texture refresh with native D3D12 readback heaps | ~3.2-5.0 ms |
Section 3: Hardware Ray Tracing & BVH System
Section 3 Progress: 68% Native (🟩🟩🟩🟨⬜) | Est. Remaining Cost: ~4-10 ms CPU (+ ~0.5-1.5 ms GPU)
Plain English: Running real-time ray-traced lighting, reflections, and shadows directly through Windows DXR 1.1 instead of re-parsing Xbox BVH memory structures on the CPU.
| Status | Component | What It Does | Current Cost (ms) |
|---|---|---|---|
| 🟢 DONE | 100% Native DXR 1.1 RT Shader Execution (26 / 26) |
Every active RT shader runs on NVIDIA RT cores (0% software BVH) |
Native |
| 🟢 DONE | Linear 256B RT Slabs, Batched TLAS, Exact GPU Fences & Blackwell Sync | Replaced per-mesh wrappers with linear GPU slabs, concurrent TLAS updates, Aftermath BLAS/TLAS fault fixes (6de4f4b), exact HostList + in-flight TLAS GPU fence retirement (37ecddf, 10a6ee5), serialized Blackwell BVH slab writes (eb78b14), and cut 60 ms workspace/meta alloc churn (a0d87bc) |
Native |
| 🟢 DONE | Compressed Index Buffer Decoding | Rescued 414.9M live dynamic triangles for hardware ray tracing |
Native |
| 🟡 LEFT | TLAS PREFER_FAST_TRACE + @DFrostIce / @idkmanr RT Audits |
A/B FAST_TRACE on 37 TLAS builds/f; fix skipped tlas_desc_untraced_bvh32 / unclassified_live_out, 195 EG->GS PSOs, 4 RT emitter leaks, and skinned BLAS/TLAS parity |
~0.5-1.5 ms GPU (+ visual fixes) |
| ⚪ LEFT | Delete hw_rt.rs Guest BVH Re-Parsing & XboxBvhBuilder Hacks |
Hook CoreEngine v9 grcRaytracing builders straight into native DXR 1.1 BuildRaytracingAccelerationStructure |
~4.0-8.0 ms CPU |
| ⚪ LEFT | Delete memory.rs 40-Bit Page-Fault Directory |
Remove SLOT_MEMORY / SLOT_FAULTS software fallback directory once native BVH descriptors feed DXR directly |
~2.0-4.6 ms CPU |
Section 4: Shader & Pipeline Compiler
Section 4 Progress: 71% Native (🟩🟩🟩🟨⬜) | Est. Remaining Cost: ~2.6-6.3 ms pure GPU waste (zero visual loss!)
Plain English: Converting Xbox shader code into clean NVIDIA PC shaders with zero wasted instructions and full diagnostic tools to catch visual glitches automatically.
| Status | Component | What It Does | Current Cost (ms) |
|---|---|---|---|
| 🟢 DONE | Live RDNA2 -> SM 6.6 DXIL Compiler (0 / 3,782 Faults) |
Full Wave32 folding, disk pipeline library, verified 0 dropped shaders across 19,100 loaded |
Native |
| 🟢 DONE | Major Visual Translation Fixes | Fixed beach sand, character intro hair, glowing indoor eyes, water/FFT, mangroves, and glass | Fixed |
| 🟢 DONE | Stage 14 Live Diag MCP + Built-In NVIDIA Aftermath SDK | Live bisect, nan_trap, @Kaltaaa global_uav, shader_meta, pso_audit, opt-in Aftermath .nv-gpudmp hardware crash dumps (6de4f4b), and multi-tier diagnostic HUD |
Live (0 idle cost) |
| 🟡 LEFT | Strip VIEW_TWIN_BIASES (t250 Extra Load + 5 ALU Ops) |
Removes wasted buffer-bias math injected into every raw buffer read across 19,139 shaders (zero quality loss) |
~1.5-3.5 ms GPU |
| 🟡 LEFT | Enable VICTORY_SHADER_SINK=3 & VICTORY_LDS_ORDER=1 |
Mesh/pixel load sinking for higher RTX 5080 SM occupancy + tighter LDS ordering (zero quality loss) | ~1.1-2.8 ms GPU |
| 🟡 LEFT | Full 14-Tool Diag MCP Suite + Visual Root-Cause Fixes | Land @THROWAWAYDATA's 14 tools (#1 Shader Registry first per @Kaltaaa); fix indoor ghosting/water smear, 4x4 black squares (@idkmanr), and 0x1c8/0x218 PSO gate (@DFrostIce) |
0 ms idle (visual correctness) |
| ⚪ LEFT | Delete Legacy SLOT_STRIDES / Root-Sig Workarounds |
Emit minimal compact root signatures matched to native Stage 1-3 bindings | ~0.5-1.5 ms GPU |
Section 5: GPU Queues, Sync & Presentation
Section 5 Progress: 52% Native (🟩🟩🟨⬜⬜) | Est. Remaining Cost: ~2-5 ms sync/sweep overhead + latency jitter
Plain English: Replacing Xbox's custom display and queue sync layer with standard Windows DirectX 12 command queues, native fences, and modern PC display output.
| Status | Component | What It Does | Current Cost (ms) |
|---|---|---|---|
| 🟢 DONE | Native DXGI Swap Chain + NVIDIA Streamline 2.14 / DLSS 4.5 |
100% DLSS Super Resolution presentation on Windows DXGI |
Native |
| 🟢 DONE | Async Submit Thread, Exact HostList GPU Fences & Present Pacing |
Decoupled submit path (send 2.2 -> 0.1-0.2 ms), exact per-list D3D12 GPU completion fences (37ecddf), and stable pacing |
Native |
| 🟡 LEFT | Engine-Aligned NVIDIA Reflex / PCL Markers | Wire native simulation, input, and render markers without frame-rate locks | Input latency / pacing |
| ⚪ LEFT | Delete card_steps, pre_sweep, RELAY=2 & Fence Emulation |
Direct D3D12 queues (Direct, Compute, Copy) + native ID3D12Fence signaling |
~2.0-5.0 ms (up to 8 ms on load) |
| ⚪ LEFT | Native PC Display Modes & Upscaler Options | DXGI VRR, 120 Hz+, Ultrawide (21:9/32:9), HDR10, optional DLSS FG, AMD FSR3/FSR4 |
PC feature parity |
Section 6: OS, Storage, Audio, Input & PE Loader
Section 6 Progress: 55% Native (🟩🟩🟨⬜⬜) | Est. Remaining Cost: ~1-3 ms fault bursts + 1% low CPU contention
Plain English: Stripping out fake Xbox OS shims so gripped.exe talks directly to Windows for CPU scheduling, files, raw mouse/keyboard, full audio, and clean boot loading.
| Status | Component | What It Does | Current Cost (ms) |
|---|---|---|---|
| 🟢 DONE | Native Win32 PE64 Boot, Lifecycle Exit, DirectStorage I/O, Gamepad & Core Audio | Clean Windows boot & window-close lifecycle exit (ae13a94), trimmed worker oversubscription (19e3e6b), 16-worker DirectStorage, GameInput, XMA/Opus audio |
Native |
| 🟡 LEFT | Native PC CPU Thread Scheduling (kernel.rs) |
Lift hardcoded Xbox 7-core masks (0x3F00/0x1F00) to stop core contention (@Kaltaaa catch) |
1% low stutters |
| ⚪ LEFT | Delete Legacy xmem.rs Soft-View / Page-Guard Emulation |
Remove virtual-memory traps and Xbox DLL stubs once Section 2 native heaps land | ~0.5-2.0 ms (fault bursts) |
| ⚪ LEFT | Native Raw Mouse (WM_INPUT), 82-Field Config & Audio DSP |
1:1 raw mouse aim, full graphics settings config, stereo/512-sample convolution reverb (dsp.rs) |
PC UX & audio |
| ⚪ LEFT | Single Declarative PE Loader (engine_hooks.rs) |
Consolidate all verified hooks into one clean table with zero ad-hoc byte patches | Cleanliness / stability |
2. Live Status and Best Verified Run
- BEST RUN · GRIPPED C938A17 · HIGH RT: 38.3 FPS (Steady Avg · 42+ Peak · 1%L 8.1) | 38.9 MEDIAN (Steady Gameplay · 12 Buckets) | 15.8 ms (Prep 12.4 · Copy 3.3) | 11.1 GB VRAM (11.8G Peak · 13.6G Cap) | 100% HW RT (DXR 1.1 · 0% SW BVH · 26/26) | 67.1% TEX (Instant Ready · 386 ms avg) | 0 CRASHES (No Frame Gen · 0 Refused) | 30.5 GB RAM (32G Sys · 1.5G Free · 4.3G Shared)
- Active Next Goal: Stages 1-15 + Pillars 1-3B · Zero-Crash Native PC Push (Replacing remaining Xbox emulation layers with native PC DX12, exact GPU fences, Win11 IoRing, and 100% HW RT on RTX 5080 (1440p Ultra, No FG).)
- Total Runs Logged:
719runs | Latest Texture Streaming:59.3%instant ready (150 msavg)
Currently Focused On Right Now
- Status:
[TESTING BUILD]Checking if the updated build works - What we are checking: Just launched a fresh build with recent updates. Watching for any problems.
Recent Live Steps
- [TESTING BUILD] Checking if the updated build works
- [TESTING BUILD] Running new release build
- [TESTING BUILD] Checking new performance tweaks
- [TESTING BUILD] Testing 5 native pipeline updates for stability
- [TUNING] Measuring Performance Paths
3. Community Contributors & Credits
Huge shoutout to the engineers and chat regulars helping test, debug, and push this native PC port forward:
| Contributor | Key Contributions & Catches |
|---|---|
@THROWAWAYDATA |
8 shader/PSO/DXR diagnostic prompt & reference packs, 14-tool Diag MCP suite architecture, AMD FSR3/4 prep, live test-environment bug repros |
@DFrostIce |
Deep RT & PSO audits (tlas_desc_untraced_bvh32, unclassified_live_out, 195 EG->GS PSOs, RT emitter slot leaks, 0x1c8/0x218 deferred serialized PSO equivalence gate) |
@Kaltaaa |
Global UAVBarrier(nullptr) binary-search toggle, Shader Registry-first build sequencing, Pillar 2 ReBAR sequential write-only + WDDM paging guardrail, Xbox thread-affinity catch, shadPS4 detiling ref, deterministic XInput benchmark idea |
@idkmanr |
Placed BC UAV write-drop diagnosis (4x4 black squares), temporal reprojection / DLSS-RR motion-vector & clamped hitDist checklist, skinned BLAS TLAS trace barrier & pose parity checks |
@Psuedom |
Community Rumble live-sync viewer tooling & nonstop live stream testing |
4. Major Milestones by Era (How We Got Here)
All 80+ early waves and 15 Gripped native stages organized into 4 clear chapters:
| Era | Dates | Headline Progress | Verified Speed (1440p, No FG) |
|---|---|---|---|
| Era 1: Boot & Hardware RT | Nov 27–29 | First boot -> all 26/26 RT shaders on RTX 5080 DXR 1.1 RT cores (0% SW BVH), DLSS 4.5, AVX-512 BCPack, Wave32 compute fixes |
3.9 -> 23.0 FPS avg (36+ peak) |
| Era 2: VRAM Wall & 30+ FPS | Nov 29–30 | ReBAR GDDR7 CBVs, 2.2 GB WC arena, Cold Freeze v2, 256B RT slabs, BURY_LAG=36 VRAM cliff kill, 0x887A0006 crash kill |
23.0 -> 33.1 FPS avg (44.3 peak) |
| Era 3: Visuals, Boat & Diagnostics | Nov 30–Dec 1 | Fixed beach sand, hair, indoor eyes, water/FFT & mangroves; open-world boat +80% FPS; batched concurrent TLAS; Nsight 2026 MCP |
37.9 full-loop peak, 0 crashes |
Era 4: gripped.exe Native Rebuild |
Dec 1–2 (Now) | Replaced Victory wrappers across Stages 1–15: native CoreEngine v9 table & flush hooks (-41.4% calls), GPU compute detiler (-4.9x to -17.5x stalls), DirectStorage batching, Stage 14 Diag MCP (0/3,782 faulted shaders), live Run Goal HUD |
Prison 28.2–32.7 ms (31–35 FPS) steady Ultra Dev RT (0 crashes) |
Era Details
- Era 4 (
Gripped Stages 1–15, Dec 1–2): Launchedgripped.exeto replace legacy VIctory translation wrappers with native CoreEngine v9 PC D3D12 hooks at full Ultra Dev shaders, 1440p, and 100% HW RT. Shipped Native Hook #1 (FillGfx/CsDescriptorTable+FillTableGeneric), Native Flush Hooks #2a/#2b/#2c (thin_calls-41.4%,copies_msp9027.0 -> 11.3 ms), Dual-Queue GPU Compute Detiler (CS_Detile >= 128 KiB,sr_tex_msmax111.7 -> 18.2 ms),Rec::raw()barrier coalescing, Stage 14 Diag MCP suite (0 / 3,782dropped shaders,0NaN/Inf ondlss_motion/dlss_hdr_in/water_refl), and Stage 15 DirectStorage batch coalescing + BCPack scratch reuse + inline Prelude GPU detile. - Era 3 (
Waves 47A–84, Nov 30–Dec 1): Fixed beach sand (#996+#1183), character intro hair (#4567), glowing indoor eyes (CS_RayMiss), ocean/FFT Wave64 folding (62 -> 81shaders), and neon-green mangroves. CutHW RT CPU-24%, boosted open-world boat FPS+65% to +80%(7.7 -> 16.5 FPS) while saving1.8 GBVRAM, fixed NVIDIA1Mdescriptor heap collisions (USER_TITLE_VIEWS), shipped 2-phase concurrent batched TLAS building, and integrated NVIDIA Nsight Graphics2026.4.1MCP. - Era 2 (
Waves 5B–44, Nov 29–30): Moved CBV scratch into GDDR7 ReBAR (-76.8%worst spike), mapped the2.2 GBWC arena directly into VRAM, froze2,655static RAM blocks (-42.6%write-watch overhead), rescued414.9Mdynamic RT triangles, replaced per-mesh RT wrappers with256Blinear slabs, eliminated legacy0x887A0006GPU hangs (pool.rs,#583,hw_rt.rs), droppedBURY_LAG96 -> 36(10.8 GBVRAM), and broke the30 FPSaverage barrier (33.1 FPSavg /44.3peak,0crashes, No FG). - Era 1 (
Day 1 – Step S28b, Nov 27–29): Went from3.9 FPSsoftware BVH to100%RTX 5080 DXR 1.1 Hardware RT (26/26shaders,0%SW BVH,97–99%TLAS match), wiredStreamline 2.14+DLSS 4.5, enabled AVX-512 BCPack + 16-worker DirectStorage, cut upload churn18x, and hit23.0 FPSavg /36+peak at10.7 GBVRAM.
5. Engineering Log (Auto-Synced)
(8 most recent verified engineering entries, newest first.)
- [2026-12-02 | Live Commit
a427f42]: perf: async logging, pooled texback, targeted indirect UAV barriers, and victory-sweep fix - [2026-12-02 | Live Commit
c938a17]: CoreEngine v9: sparse loose clamping + HW_RT multi-bank slab sync fix + barrier list.keep - [2026-12-02 | Live Commit
0aa04fb]: CoreEngine v9: targeted per-buffer UAV barriers (-98.4% global stalls) + parallel multi-bank HW_RT_BUILD - [2026-12-02 | Live Commit
140f602]: CoreEngine v9: push FastFullFlushGfx to 86% native (93% indirect fusion) + targeted per-resource texture UAV barriers - [2026-12-02 | Live Commit
1ba38bc]: CoreEngine v9: add native FastFullFlushGfx across all 10 gfx draw hooks + faster cutscene texture catchup - [2026-12-02 | Live Commit
28a4098]: CoreEngine v9: add Hook #8 DrawNonIndexed (31 live hooks = 100% draw/dispatch), LOOSE_POOL, dead bindless slot nulling - [2026-12-02 | Native CoreEngine v9 Hooks #3-#6 (25 Live Hooks)] 58% Native PC Milestone: 25 Live Native CoreEngine v9 Hooks (#3-#6), Offloaded Sweep & -482 MB RT VRAM Trim (6fed287, ae68272): Landed +2,791 lines of native CoreEngine v9 D3D12 hook infrastructure across 6fed287 and ae68272: Native Hooks #3 (indirect draws/dispatches), #4 (CBV/null-SRV), and #5/#6 bringing Gripped.exe to 25 live native hooks inside native_desc.rs (+1,586 lines), list/thin.rs (+382 lines), and list.rs (+254 lines). Also offloaded sweep off the main thread in host.rs, added a 64 KiB placed UAV pool, trimmed RT workspaces by -482 MB VRAM, and fixed prelude scratch.
- [2026-12-02 | DirectStorage NVMe Tuning] Restored 8 Normal-Priority DirectStorage Workers & 6 Ahead Workers for Full NVMe Streaming (a454295): Restored 8 normal-priority DirectStorage I/O workers and 6 ahead texture workers in apps/gripped/src/main.rs so NVMe asset streaming keeps full throughput without starving background texture uploads.
- [2026-12-02 | Lock Contention & Threading] Eliminated shadow.rs/watch.rs Write-Lock Convoys, Bake Drains & Thread Oversubscription (19e3e6b): Reworked 840+ lines across shadow.rs and watch.rs (+628/-310 total across 7 files) to eliminate write-lock convoys via TTAS pre-checks and lock-light lookup/eviction paths, cut redundant bake drains in draw.rs and descriptor/host.rs, and trimmed worker thread oversubscription in main.rs.
- [2026-12-02 | HW RT Alloc Churn & Cold-Start Pacing] Eliminated 60 ms Workspace/Meta Alloc Churn, Cold-Start Streaming Pacing & warm --pack (a0d87bc): Eliminated 60 ms DXR workspace and metadata allocation churn in hw_rt.rs, paced cold-start texture/asset streaming in draw.rs and main.rs to smooth opening frames, and added offline
gripped warm --packpipeline library packing in warm.rs and pipeline/known.rs.
6. Technical Reference Appendix
Deep architecture documentation, live hardware RT shader tables, memory class maps, and Windows runtime verification specs for engine developers.
Appendix Index: 6.1 Engine Architecture · 6.2 HW RT Shaders · 6.3 Pipeline & Load Order · 6.4 D3D12X Reference & Rig · 6.5 UMA Memory Map · 6.6 Subsystems Control Surface · 6.7 Runtime Gap Audit · 6.8 Windows Verification Checklist
6.1 Reference PC DX12 Engine vs Gripped.exe Architecture
(Comparing a reference native PC DX12 engine build side-by-side against the Series X target binary and our live RTX 5080 translation layer.)
| Subsystem | Reference Native PC DX12 Engine | Gripped.exe Xbox Series X & Live RTX 5080 Port | Direct Porting Target in VIctory |
|---|---|---|---|
| Graphics API | Agility SDK 611 (D3D12Core.dll 1.611.1) + DXGI.DLL + GFSDK_Aftermath_Lib.x64.dll + amd_ags_x64.dll |
d3d12_xs.dll (3 imports) + xg_xs.dll (2 imports) -> OS D3D12 (rt_tier=12 on Win11 26H2) |
Native D3D12 (victory-gpu) + DRED (VICTORY_D3D12_DRED=light) + pinned D3D12Core.dll |
| Memory & VRAM | VirtualAlloc + D3DKMTQueryAllocationResidency + D3DKMTEvict (RESIDENTINGPUMEMORY vs RESIDENTINSHAREDMEMORY) + staging textures + vram_limit_ignored |
xmem.dll (12 imports, ~13 GB UMA in 4 hardware memory classes) |
Enforce 0x2004 non-coherent GPU-only (6.27 GB) + tiles.rs sparse VRAM + SEC_COMMIT zero-copy Onion heaps |
| Ray Tracing & BVH | Native DXR 1.1 + pre-baked .ybvh BLAS + GPU bvh_skinning + per-category BVH radii (Static, Dynamic, Vehicle, HDVehicle, Tree, TreeAnim, Grass, GrassDensity) + RTGIQuality, RTAOQuality, RTX_RTReflection_Quality, ComputeRaytracedLocalShadows |
XboxBvhBuilder.dll (7 imports) + inline P3 BVH radii (0x5c13d96 600.0f, 0x5c13dd1 64.0f) -> 26/26 compiled DXR 1.1 HW RT shaders (100% HW RT, 0% SW BVH) |
bvh_builder.rs -> hw_rt.rs + expose per-category BVH radii and separate FullRes / RTGI=2 presets |
| Upscaling & Latency | Streamline 2.9.1 (sl.interposer, sl.common, sl.dlss, sl.dlss_g 2x/3x/4x MFG, sl.pcl, sl.reflex), DLSS 310.4, amd_fidelityfx_dx12.dll (6.37 MB) |
amd_fidelityfx_loader_xbox.dll (4 imports) -> Newer Streamline 2.14.16 + DLSS 310.9.16 (100% DLSS SR hit rate) + FSR3 FG + Reflex bundled |
Wire engine-aligned simulation (0x22264d0), input (0x2211b40), and render (0x28ef700) PCL markers |
| Streaming & Compression | dstorage.dll + dstoragecore.dll (DirectStorage 1.2) + oo2core_5_win64.dll (Oodle Kraken) + zlib1.dll |
XCRDAPI.dll (DStorageGetFactory, fiDeviceDirectStorage @ 0x28c9460) + AVX-512 BCPack + 16-worker DirectStorage |
Route decoded BCPack mips straight from dstorage.rs into VRAM reserved mip tiles |
| Input & Controls | USER32.dll (RegisterRawInputDevices, GetRawInputData, ClipCursor) + HID.DLL (11 imports, DualSense) + XINPUT1_4.dll |
GameInput.dll (Ordinal#1): Gamepad 0x40000 + Keyboard 0x10, zero Mouse 0x20 (Scaleform retains mouse events) |
Add WM_INPUT raw mouse capture + 1:1 camera yaw/pitch hook in gameinput.rs |
| Audio & DSP | opus.dll + opusenc.dll + DSOUND.dll + WINMM.dll + WASAPI / SpatialAudioClient + fvad.dll |
AcpHal.dll (350 XMA contexts) + chad.dll (convolution DSP) + xapu.dll (Opus) |
audio.rs (XMA) + apu.rs (Opus) + finish stereo & 512-sample convolution in dsp.rs |
| Video Playback | bink2w64.dll (21 imports, near-identical API) + MFPlat.DLL + MF.dll + MFReadWrite.dll |
Bink2Scarlett.dll (23 imports) + MFPlat.DLL + MFReadWrite.dll |
media.rs / Bink2 bridge |
| CPU Threading | GetLogicalProcessorInformationEx, GetProcessGroupAffinity, SetThreadAffinityMask, SetThreadGroupAffinity, setSystemProcessorAffinity |
CreateThread (0x1ad0fd0) + SetThreadGroupAffinity hardcoded Xbox masks (0x3F00, 0x1F00) |
Intercept SetThreadGroupAffinity in kernel.rs for hybrid Intel P+E / dual-CCD AMD CPUs |
| Settings & Config | user:/settings.xml + commandline.txt + EnumDisplaySettingsW / QueryDisplayConfig |
Compiled .data presets (GetSettings @ 0x504c1b0, applySettings @ 0x22434a0, 82 fields) |
Expose all 82 Settings fields + arbitrary PC/ultrawide res + HDR10 via config |
| Networking | libcurl.dll + XCurl.dll + WININET.dll + WS2_32.dll |
libHttpClient.GDK.dll (38 imports) + WINHTTP.dll + WS2_32.dll |
Offline/sandboxed net.rs + xnetworking.rs |
6.2 Hardware DXR 1.1 Ray Tracing Shaders
(26/26 compiled to D3D12 host PSOs | 18 firing live every frame at 18 dispatches/frame | 18 fired in run | 8 ready on standby | 100% Hardware RT, 0.0 Software BVH)
Reflections & RTGI (6 shaders: 6 live)
| Boot # | Frame # | Hash | Shader Pass Name | What It Does | Status |
|---|---|---|---|---|---|
| #6 | #1 | 36f04a4ed0ad1d9b |
CS_GatherAlphaVBuffer_WithFar |
Alpha-tested ray hits (fences, foliage, grates, glass) | LIVE (1.0/f) |
| #8 | #6 | b58eb3ca6ee46427 |
CS_IrradianceCache_GatherVBuffer_WithFar |
Surface material gather for world GI bounce light | LIVE (1.0/f) |
| #7 | #8 | f607780aa8e502d0 |
CS_IrradianceCache_ShadowTrace_WithFar |
Sun and sky visibility trace for world irradiance cache | LIVE (2.0/f) |
| #5 | #5 | 3592426e3e9142d8 |
CS_Primary_GatherVBuffer_WithFar |
Primary ray visibility-buffer material gather | LIVE (1.0/f) |
| #26 | #2 | 6d7fe7745ab9c6d8 |
CS_RaytraceVBuffer_RayBinning_ShaderBinning_Mixed_WithFar |
Main ray-traced reflection and visibility-buffer tracer | LIVE (2.0/f) |
| #4 | #7 | f22a76fcb967ee59 |
CS_ScreenProbes_TraceRays_RayBinning_BVH_Mixed_ShaderBinning_WithFar |
Screen-space GI probes for real-time bounce lighting | LIVE (1.0/f) |
| ### Sun & Local RT Shadows (12 shaders: 5 live, 7 standby) | |||||
| Boot # | Frame # | Hash | Shader Pass Name | What It Does | Status |
| --- | --- | --- | --- | --- | --- |
| #25 | #4 | 0873f80dd84a3c5c |
CS_RaytraceShadows_Mixed |
Main mixed near/far sun and local RT shadow pass | LIVE (2.0/f) |
| #23 | #9 | 96ccb14ef981fd85 |
CS_TraceShadowRays_Eighth |
Eighth-rate wide-area RT shadow trace | LIVE (1.0/f) |
| #24 | #17 | dbdbf36298727135 |
CS_TraceShadowRays_FullAdaptive |
Full-adaptive near-camera RT directional and local shadows | LIVE (1.0/f) |
| #22 | #15 | 002e93a6cc2aa355 |
CS_TraceShadowRays_Half |
Half-rate mid-range RT shadow trace | LIVE (1.0/f) |
| #21 | #13 | 0e64f14fae060d04 |
CS_TraceShadowRays_Quarter |
Quarter-rate mid/far RT shadow trace | LIVE (1.0/f) |
| #14 | - | ffd9788ba9fec033 |
CS_RTShadowTrace32TemporalHQ_OneOver2RPP_Tiled |
Temporal HQ RT shadows at 1/2 ray per pixel | Standby (Compiled PSO) |
| #16 | - | a41f0b553a07e79d |
CS_RTShadowTrace32TemporalHQ_OneOver2RPP_TiledFarOnly |
Far-only BVH fallback for 1/2 RPP temporal shadows | Standby (Compiled PSO) |
| #13 | - | 693d1d787d4a22eb |
CS_RTShadowTrace32TemporalHQ_OneOver4RPP_Tiled |
Temporal HQ RT shadows at 1/4 ray per pixel | Standby (Compiled PSO) |
| #18 | - | 22f3f0f74693bff9 |
CS_RTShadowTrace32TemporalHQ_OneOver4RPP_TiledFarOnly |
Far-only BVH fallback for 1/4 RPP temporal shadows | Standby (Compiled PSO) |
| #15 | - | 7ec122fc9eedf367 |
CS_RTShadowTrace32TemporalHQ_OneOver8RPP_Tiled |
Temporal HQ RT shadows at 1/8 ray per pixel | Standby (Compiled PSO) |
| #17 | - | 221925bf9ed4e06e |
CS_RTShadowTrace32TemporalHQ_OneOver8RPP_TiledFarOnly |
Far-only BVH fallback for 1/8 RPP temporal shadows | Standby (Compiled PSO) |
| #20 | - | 559d9f0184e15fe3 |
CS_TraceShadowRays_Checkerboard |
Alternate checkerboard shadow mode (replaced by adaptive passes) | Standby (Compiled PSO) |
| ### Distant & LOD RT Shadows (5 shaders: 5 live) | |||||
| Boot # | Frame # | Hash | Shader Pass Name | What It Does | Status |
| --- | --- | --- | --- | --- | --- |
| #19 | #11 | b0f711280e298008 |
CS_RTDistantLODLightShadow |
RT shadows from distant street and building LOD lights | LIVE (0.8/f) |
| #10 | #10 | a1b20bc47e3c9597 |
CS_RTDistantShadowTrace32_Tiled |
Base distant-vista RT shadow pass | LIVE (0.2/f) |
| #11 | #16 | e8c962358d862e3f |
CS_RTDistantShadowTraceLeakPlug32_Tiled |
Light-leak plug pass for distant RT shadows | LIVE (0.2/f) |
| #12 | #18 | afeea48bbb9913ad |
CS_RTDistantShadowTraceLeakPlugTemporalUpsample4X32_Tiled |
Temporal upsample for distant shadow leak-plug pass | LIVE (0.2/f) |
| #9 | #14 | 17829ac71aab4e8d |
CS_RTDistantShadowTraceTemporalUpsample4X32_Tiled |
Temporal 4x upsample for distant RT shadows | LIVE (0.2/f) |
| ### Special FX & Depth Helpers (3 shaders: 2 live, 1 standby) | |||||
| Boot # | Frame # | Hash | Shader Pass Name | What It Does | Status |
| --- | --- | --- | --- | --- | --- |
| #2 | #3 | 02737aba304c298a |
CS_ComputeClosestDepth |
Closest ray-hit depth prepass for RT denoisers | LIVE (1.0/f) |
| #1 | #12 | 32ed072b9f845048 |
CS_LaserLightShadowRaytracing |
Tight beam and laser-light RT shadows (clubs, spotlights) | LIVE (1.0/f) |
| #3 | - | caf96a3229145fa6 |
CS_CollisionRaytraced |
GPU ray-traced collision check for particles and debris | Standby (Compiled PSO) |
6.3 Shader Load Order and Frame Pipeline
Boot & PSO Startup Sequence (Legacy Stack vs Reference Native PC DX12)
Both titles share the same CoreEngine startup philosophy: warm the compiled PSO cache from disk up front so shader compilation finishes during boot, and only spin up live BVH/TLAS hardware RT dispatches once the 3D scene starts rendering.
Gripped.exe on VIctory (Live RTX 5080 Startup Timeline):
Streamline& DLSS Init (t+0s): Loadssl.interposer.dll(2.14.16) +nvngx_dlss.dll(310.9.16), hooks the DXGI swap chain proxy (VICTORY_STREAMLINE_PRESENT=1), and intercepts the title's FidelityFX (ffxCreateContext/ffxDispatch) calls into DLSS Super Resolution.- Host Disk Pipeline Library (
t+3s): Memory-maps the314-318 MBID3D12PipelineLibrarycache from disk (3,483precompiled host PSOs loaded immediately across 8 background workers; typically only<20new PSOs compile on a warm boot). - 3-Batch HW RT Shader Identification & Translation (
t+4stot+9s): All26console RDNA 2 inline-RT compute shaders translate to DXILRayQueryand compile into D3D12 host PSOs in 3 sequential waves:- Wave 1 (
#1-#8): Closest depth prepass, laser light shadows, screen probe RTGI, world irradiance cache trace/gather, alpha/primary VBuffer gathers, and RT collision. - Wave 2 (
#9-#13): Distant vista RT shadows (Tiled,TemporalUpsample4X32,LeakPlug) plus distant LOD light shadows. - Wave 3 (
#14-#26): Multi-rate shadow pyramid (Checkerboard,Quarter,Half,Eighth,FullAdaptive), Temporal HQ shadows (1/2,1/4,1/8 RPPin bothTiledandTiledFarOnlyvariants),CS_RaytraceShadows_Mixed, and the mainCS_RaytraceVBuffer_RayBinning_ShaderBinningreflection tracer.
- Wave 1 (
- Native DXR 1.1 Runtime Activation (First Gameplay Frame): Initializes D3D12
rt_tier=12, builds/updates~250kTLAS instances (98-99%match,ALLOW_UPDATE+PERFORM_UPDATE+ALLOW_COMPACTION), and begins live19-20HW RT dispatches/frame (0.0SW BVH).
Reference PC DX12 (Official PC DX12 Startup & Drawlist Sequence):
- Agility SDK & Dynamic GPU Bind: Exports
D3D12SDKVersion = 611(D3D12-REDIST/D3D12Core.dll1.611.1.0), loadssl.interposer.dll(2.9.1.0),nvapi64.dll(nvapi_QueryInterface), and links DirectStorage1.2(DStorageGetFactory) + Oodle LZ (oo2core_5_win64.dll). - Dual Disk PSO Caches: Restores
.d3d12WarmupCacheWindowsand.d3d12PipelineCacheWindowsalongside NVIDIA's driverDXCache. - Shader Archive Mount Order: Calls
CShaderLib::LoadAllShaders, mountingcommon:/shaders/,common:/shaders/db/, andcommon:/shaders/fxdb, overlaid byupdate2:/common/shaders(psofixup/psosig/PostPsoPlace). - Macro Frame Drawlist Flow:
DL_BUILD_BVH(pre-baked.ybvhBLAS + GPUbvh_skinningintoShadowBvhBuf/SecondaryBvhBuf)DL_GBUFDL_RT_REFLECTION_MAP(ComputeRaytracedReflections)DL_LIGHTING(ComputeShadowRaytraceIncoherent,ComputeRaytracedLocalShadows,ComputeRaytracedIndirectDiffuse+SecondBounce, RTAO, plus customTemporalAccumulationLitColor_Compute+DenoiseBilaterialSeparableX/YPass+Denoisepoisson)DL_FRAMEGEN(sl.dlss_g2x/3x/4x MFG +slReflexSleep).
Why the Engine Split Monolithic Passes Into 26 Specialized RT Shaders
- Ray Binning + Shader Binning (
CS_RaytraceVBuffer_RayBinning_ShaderBinning_Mixed_WithFar&CS_ScreenProbes_TraceRays...): Instead of tracing incoherent reflection/GI rays in one pass and stalling warps on divergent materials, Gripped.exe sorts rays by direction and material bucket first so NVIDIA Wave32 warps stay coherent across hardware RT cores. - Persistent World Irradiance Cache + Screen Probes: Reference PC DX12 traces 1st and 2nd bounce diffuse GI directly per screen pass (
ComputeRaytracedIndirectDiffuse+SecondBounce). Gripped.exe splits GI into persistent world-space irradiance cache cells (CS_IrradianceCache_ShadowTrace+GatherVBuffer) combined with screen-space probes (CS_ScreenProbes_TraceRays), cutting raw ray counts per frame while keeping multi-bounce lighting stable across camera motion. - Multi-Resolution + Temporal HQ Shadow Pyramid: Instead of one heavy sun shadow pass, Gripped.exe dynamically tiers shadow rays across screen distance (
FullAdaptive,Half,Quarter,Eighth) and temporal sample budgets (1/2,1/4,1/8 RPP), leavingCheckerboardandTiledFarOnlycompiled on standby as alternate quality/distance paths.
Live Gameplay Per-Frame Bind Order (18 Active HW RT Shaders, Auto-Synced)
(Exact first-bind execution order captured on the opening gameplay frame of the latest run.)
| Frame # | Hash | Shader Pass Name | Role in Frame | Live Rate |
|---|---|---|---|---|
| #1 | 36f04a4ed0ad1d9b |
CS_GatherAlphaVBuffer_WithFar |
Alpha-tested ray hits (fences, foliage, grates, glass) | 1.0/f |
| #2 | 6d7fe7745ab9c6d8 |
CS_RaytraceVBuffer_RayBinning_ShaderBinning_Mixed_WithFar |
Main ray-traced reflection and visibility-buffer tracer | 2.0/f |
| #3 | 02737aba304c298a |
CS_ComputeClosestDepth |
Closest ray-hit depth prepass for RT denoisers | 1.0/f |
| #4 | 0873f80dd84a3c5c |
CS_RaytraceShadows_Mixed |
Main mixed near/far sun and local RT shadow pass | 2.0/f |
| #5 | 3592426e3e9142d8 |
CS_Primary_GatherVBuffer_WithFar |
Primary ray visibility-buffer material gather | 1.0/f |
| #6 | b58eb3ca6ee46427 |
CS_IrradianceCache_GatherVBuffer_WithFar |
Surface material gather for world GI bounce light | 1.0/f |
| #7 | f22a76fcb967ee59 |
CS_ScreenProbes_TraceRays_RayBinning_BVH_Mixed_ShaderBinning_WithFar |
Screen-space GI probes for real-time bounce lighting | 1.0/f |
| #8 | f607780aa8e502d0 |
CS_IrradianceCache_ShadowTrace_WithFar |
Sun and sky visibility trace for world irradiance cache | 2.0/f |
| #9 | 96ccb14ef981fd85 |
CS_TraceShadowRays_Eighth |
Eighth-rate wide-area RT shadow trace | 1.0/f |
| #10 | a1b20bc47e3c9597 |
CS_RTDistantShadowTrace32_Tiled |
Base distant-vista RT shadow pass | 0.2/f |
| #11 | b0f711280e298008 |
CS_RTDistantLODLightShadow |
RT shadows from distant street and building LOD lights | 0.8/f |
| #12 | 32ed072b9f845048 |
CS_LaserLightShadowRaytracing |
Tight beam and laser-light RT shadows (clubs, spotlights) | 1.0/f |
| #13 | 0e64f14fae060d04 |
CS_TraceShadowRays_Quarter |
Quarter-rate mid/far RT shadow trace | 1.0/f |
| #14 | 17829ac71aab4e8d |
CS_RTDistantShadowTraceTemporalUpsample4X32_Tiled |
Temporal 4x upsample for distant RT shadows | 0.2/f |
| #15 | 002e93a6cc2aa355 |
CS_TraceShadowRays_Half |
Half-rate mid-range RT shadow trace | 1.0/f |
| #16 | e8c962358d862e3f |
CS_RTDistantShadowTraceLeakPlug32_Tiled |
Light-leak plug pass for distant RT shadows | 0.2/f |
| #17 | dbdbf36298727135 |
CS_TraceShadowRays_FullAdaptive |
Full-adaptive near-camera RT directional and local shadows | 1.0/f |
| #18 | afeea48bbb9913ad |
CS_RTDistantShadowTraceLeakPlugTemporalUpsample4X32_Tiled |
Temporal upsample for distant shadow leak-plug pass | 0.2/f |
Exact Boot Identification Order (All 26 HW RT Shaders, Auto-Synced)
(Chronological order in which the engine registers and compiles each RT compute shader during boot.)
| Boot # | Hash | Shader Pass Name | Subsystem | Gameplay Status |
|---|---|---|---|---|
| #1 | 32ed072b9f845048 |
CS_LaserLightShadowRaytracing |
Special FX & Depth Helpers | Frame #12 |
| #2 | 02737aba304c298a |
CS_ComputeClosestDepth |
Special FX & Depth Helpers | Frame #3 |
| #3 | caf96a3229145fa6 |
CS_CollisionRaytraced |
Special FX & Depth Helpers | Standby |
| #4 | f22a76fcb967ee59 |
CS_ScreenProbes_TraceRays_RayBinning_BVH_Mixed_ShaderBinning_WithFar |
Reflections & RTGI | Frame #7 |
| #5 | 3592426e3e9142d8 |
CS_Primary_GatherVBuffer_WithFar |
Reflections & RTGI | Frame #5 |
| #6 | 36f04a4ed0ad1d9b |
CS_GatherAlphaVBuffer_WithFar |
Reflections & RTGI | Frame #1 |
| #7 | f607780aa8e502d0 |
CS_IrradianceCache_ShadowTrace_WithFar |
Reflections & RTGI | Frame #8 |
| #8 | b58eb3ca6ee46427 |
CS_IrradianceCache_GatherVBuffer_WithFar |
Reflections & RTGI | Frame #6 |
| #9 | 17829ac71aab4e8d |
CS_RTDistantShadowTraceTemporalUpsample4X32_Tiled |
Distant & LOD RT Shadows | Frame #14 |
| #10 | a1b20bc47e3c9597 |
CS_RTDistantShadowTrace32_Tiled |
Distant & LOD RT Shadows | Frame #10 |
| #11 | e8c962358d862e3f |
CS_RTDistantShadowTraceLeakPlug32_Tiled |
Distant & LOD RT Shadows | Frame #16 |
| #12 | afeea48bbb9913ad |
CS_RTDistantShadowTraceLeakPlugTemporalUpsample4X32_Tiled |
Distant & LOD RT Shadows | Frame #18 |
| #13 | 693d1d787d4a22eb |
CS_RTShadowTrace32TemporalHQ_OneOver4RPP_Tiled |
Sun & Local RT Shadows | Standby |
| #14 | ffd9788ba9fec033 |
CS_RTShadowTrace32TemporalHQ_OneOver2RPP_Tiled |
Sun & Local RT Shadows | Standby |
| #15 | 7ec122fc9eedf367 |
CS_RTShadowTrace32TemporalHQ_OneOver8RPP_Tiled |
Sun & Local RT Shadows | Standby |
| #16 | a41f0b553a07e79d |
CS_RTShadowTrace32TemporalHQ_OneOver2RPP_TiledFarOnly |
Sun & Local RT Shadows | Standby |
| #17 | 221925bf9ed4e06e |
CS_RTShadowTrace32TemporalHQ_OneOver8RPP_TiledFarOnly |
Sun & Local RT Shadows | Standby |
| #18 | 22f3f0f74693bff9 |
CS_RTShadowTrace32TemporalHQ_OneOver4RPP_TiledFarOnly |
Sun & Local RT Shadows | Standby |
| #19 | b0f711280e298008 |
CS_RTDistantLODLightShadow |
Distant & LOD RT Shadows | Frame #11 |
| #20 | 559d9f0184e15fe3 |
CS_TraceShadowRays_Checkerboard |
Sun & Local RT Shadows | Standby |
| #21 | 0e64f14fae060d04 |
CS_TraceShadowRays_Quarter |
Sun & Local RT Shadows | Frame #13 |
| #22 | 002e93a6cc2aa355 |
CS_TraceShadowRays_Half |
Sun & Local RT Shadows | Frame #15 |
| #23 | 96ccb14ef981fd85 |
CS_TraceShadowRays_Eighth |
Sun & Local RT Shadows | Frame #9 |
| #24 | dbdbf36298727135 |
CS_TraceShadowRays_FullAdaptive |
Sun & Local RT Shadows | Frame #17 |
| #25 | 0873f80dd84a3c5c |
CS_RaytraceShadows_Mixed |
Sun & Local RT Shadows | Frame #4 |
| #26 | 6d7fe7745ab9c6d8 |
CS_RaytraceVBuffer_RayBinning_ShaderBinning_Mixed_WithFar |
Reflections & RTGI | Frame #2 |
Historical Baseline Bottleneck Profile (Wave 8 -> Wave 9B, Pre-Gripped)
- GPU RT cores are NOT the bottleneck: Wave 8 measured 21.6 ms median GPU work (56% GPU busy) while running
20.0HW RT dispatches/frame (100%DXR 1.1 HW RT,0.0SW BVH) at 11.6 GB peak VRAM (3.6 GB free). That puts the pure RTX 5080 GPU ceiling at ~40-46 FPS sustained in normal city gameplay (~50-55 FPS indoors, No FG). - Where frame time actually goes right now (100% CPU-bound):
hw_rt_cpu(21.6 ms/frame): per-mesh D3D12 BLAS resource wrappers triggering WindowsCreateHeap/SetResidencyPrioritystorms (6.7-10.4 ms/frame) + starved 3-slot workspace ring + TLAS setup (3.5 ms).- Unified-memory CPU traffic cop:
steps_refresh(14.5 ms) +copies(12.4 ms) +watch_ask(5.4 ms) + texture staging backlog (137 due,6,069 waiting).
- What Wave 9B targets: Direct 256B linear GPU slabs in
hw_rt.rs+ 16-slot workspace ring + CPU submit/texture lock fixes (~15-25 ms/framesaved), pushing RTX 5080 utilization from 56% toward 80-90% and live median FPS into the 26-34 FPS range (38-45 FPS in lighter scenes) while streaming on OBS.
6.4 D3D12X Platform Reference and Test Rig
Test Hardware
- GPU: NVIDIA RTX 5080 16 GB | CPU: Ryzen 7 9800X3D (8c/16t) | RAM: 32 GB
Core Differences: PC D3D12 vs Console D3D12.X
| Area | PC D3D12 | Xbox D3D12.X (Series X|S) |
|---|---|---|
| Driver model | Single vendor driver with JIT shader compile & runtime checks | Retail (zero checks), Instrumented (PIX), or Debug |
| Swap chains & Present | IDXGISwapChain::Present |
No DXGI swap chain. Uses a direct display buffer pool via PresentX across up to 2 hardware planes |
| Command queues | Thread-safe, arbitrary counts | Not thread-safe. 1 graphics queue (CPG), up to 4 compute pipes x 8 queues (CPC), and 3 hardware DMA engines |
| Copy / DMA | ID3D12GraphicsCommandList (COPY) |
Dedicated ID3D12XboxDmaCommandList (memory copy, LZ/BCPack decompress, JPEG decode) |
| PSOs & Shaders | Runtime DXIL JIT compile | Offline precompiled RDNA 2 ISA + offline serialized PSOs + derived PSOs |
| Alignment | 256B CBV, 512B texture row pitch | 16B CBV alignment, 1024B texture row pitch, relaxed buffer alignment |
| GPU contexts | Hidden in driver | 7 title contexts (+1 system). Exhausting 7 in-flight contexts stalls the CP |
| Sync & Caches | Driver-managed flushes | Explicit PM4 packets (ACQUIRE_MEM, RELEASE_MEM, WAIT_REG_MEM) across L0/L1/L2/CB/DB caches |
Unified Memory (Garlic, Onion & Virtual Address Space)
Xbox shares one physical memory pool across CPU and GPU (no separate VRAM/PCIe bus, so CPU pointers and GPU virtual addresses are identical values):
- Series X:
10 GBGPU Optimal (560 GB/s) +3 GBStandard (336 GB/s). - Series S:
7.8 GBGPU Optimal (224 GB/s) +0.5 GBStandard (56 GB/s). - Garlic (
WRITECOMBINE): CPU write-combined + GPU non-coherent at full bandwidth. Default for textures, vertex/index buffers, render targets, and BVHs. - Onion (
CACHEABLE): CPU cached + GPU hardware-coherent (snooped). Safe for shared CPU/GPU read-write at lower bandwidth. - Cached Garlic: CPU cached + GPU non-coherent. The title must flush 64-byte cache lines manually.
- Zero-overhead placement:
CreatePlacedResourceXbinds resources directly to a raw GPU VA without heap wrappers, andXGcomputes swizzled tile layouts (64 KB/2 MBpages) so assets stream straight from NVMe into GPU-ready memory.
Hardware Ray Tracing (XDXR on RDNA 2)
- Fixed-function ray intersection units sit inside each WGP's Texture Data (
TD) blocks (26 WGPs/52 TDson Series X =379.6GAABBs/sec &94.9Gtris/sec,10 WGPs/20 TDson Series S =125GAABBs/sec &31.3Gtris/sec). image_bvh_intersect_ray/image_bvh64_intersect_ray: Fuses memory fetch + intersection math in one instruction (11 VGPRs + 4 SGPR BVH descriptor -> 4 output VGPRs).- AABB nodes return up to 4 closest-to-farthest child pointers (
0xFFFFFFFFon miss). - Triangle nodes return
(t_num, t_denom, triangle_id, hit_status)or barycentrics(t_num, t_denom, i_num, j_num).
- AABB nodes return up to 4 closest-to-farthest child pointers (
- BVH4 Node Formats (64B aligned, low 3 bits select type): FP16 AABB (
64 B, type 4), FP32 AABB (128 B, type 5), Triangle leaf (64 B, types0..3, storing up to 2 quad-paired triangles + metadata at~120-140 B/triangletotal footprint). - Builders & Traversal: LBVH + TR7 runtime builder (batched builds are
10x-25xfaster), offline Embree builder with3.5x-6.6xBVH compression, TAPU (TLAS pull-up) + k-DOP apex point maps. Inline traversal (XDXRStandaloneTraverse*.hlsli/XboxRayQuery) runs in regular compute shaders with zero DXR scratch buffer.
Wave64 vs Wave32 Shader Execution
- Native RDNA 2 SIMD width is SIMD32 (Wave32) (
4SIMD32 units per WGP), but Wave64 is the Xbox compiler default (executing as two Wave32 halves in lockstep with half-skip when a 32-laneexecmask is zero). - Wave64:
512logical VGPRs/SIMD (blocks of 4),2-20waves/SIMD, strong for 64-lane wave intrinsics, 8x8 reductions without LDS, and halving scalar SALU/SMEM work. - Wave32:
1,024VGPRs/SIMD (blocks of 8),4-20waves/SIMD, 2x wave launch rate, cuts branch divergence in half, best fit for graphics stages and divergent compute/raytracing shaders. - Xbox selects wave size via compiler flags (
-D__XBOX_ENABLE_WAVE32=1, not SM 6.6[WaveSize(N)]) and supports offline precompiled ISA (dxcompiler_xs/newbe_xsoraco_xbox), LDS register spilling, and FP16 auto-vectorization.
6.5 Unified Memory (UMA) to Native PC Memory Architecture
(Grounded in read-only PE static analysis of the Series X binary 1.0.2.1, ImageBase 0x140000000, 299,257 .pdata functions, 95.2 MB .text, and verified Wave 38D live telemetry. Almost all ~13 GB of Xbox UMA flows through fewer than 20 CoreEngine functions and 15 centralized import thunks at 0x5f3fcc0..0x5f3ff80.)
Live Virtual Address & Hardware Memory-Class Map
Every major GPU allocation requested through XMemVirtualAlloc (xmem.rs) falls into 4 hardware memory classes:
| Guest VA Base | Size | Protection | Kind / Flags | Xbox Memory Class | Native PC Target |
|---|---|---|---|---|---|
0x001afc0000 |
185 MB |
0x1 (NOACCESS reserve) |
0x42000 / 0x7 (32BIT) |
32-Bit Low Heap (Descriptors / Shaders / Rings) | ReBAR / SEC_COMMIT + OpenExistingHeapFromFileMapping |
0x0100000000 |
24,576 MB |
0x4 (RW) |
0x42000 / 0x21 |
CPU-Only Virtual Placeholder Pool | Pure System RAM (zero GPU sync) |
0x0700000000 |
24,576 MB |
0x801 (GPU_NOACCESS) |
0x42000 / 0x3 |
Graphics Virtual Placeholder Pool | Sparse tile / physical-page views |
0x0d00000000 |
1,172 MB |
0x22004 (RW \| GPU_RW \| COHERENT) |
0x203000 / 0x183 |
Onion Coherent Heap #1 | True CPU/GPU shared (1,735 MB Onion total = only 13.7% of GPU memory) |
0x0d49400000 |
2,199 MB |
0x2404 (RW \| WC \| GPU_RW) |
0x203000 / 0x283 |
Garlic WC Primary Heap | Direct VRAM / ReBAR (CPU never reads back) |
0x0dd2b00000 |
64 KiB |
0x42404 (WC \| GPU_RW \| NOCACHE) |
0x203000 / 0x283 |
GPU-Uncached Fence / Cmd Ring | Dedicated low-latency fence/signal ring |
0x0dd2c00000 |
563 MB |
0x22004 (RW \| GPU_RW \| COHERENT) |
0x203000 / 0x183 |
Onion Coherent Heap #2 | True CPU/GPU shared |
0x0e1b400000 |
20 MB |
0x4 (RW) |
0x203000 / 0x181 |
CPU-Only Private Heap #1 | Pure System RAM |
0x0e1c800000 |
8.75 MB |
0x2004 (RW \| GPU_RW, non-coherent) |
0x203000 / 0x283 |
Small Non-Coherent GPU Heap #1 | GPU-only VRAM unless explicitly promoted |
0x0e1d0c0000 |
13 MB |
0x4 (RW) |
0x203000 / 0x181 |
CPU-Only Private Heap #2 | Pure System RAM |
0x0e1de00000 |
32 MB |
0x2004 (RW \| GPU_RW, non-coherent) |
0x203000 / 0x283 |
Small Non-Coherent GPU Heap #2 | GPU-only VRAM unless explicitly promoted |
0x1d00000000 |
6,236 MB |
0x2004 (RW \| GPU_RW, NO 0x20000) |
0x42000 / 0x23 |
Main Non-Coherent Streaming Arena | GPU-only VRAM (DEFAULT) + sparse tiles (no auto copy-back) |
0x1e85c00000 |
2,420 MB |
0x2404 (RW \| WC \| GPU_RW) |
0x42000 / 0x23 |
Garlic WC Streaming Arena (4,619 MB Garlic total) |
Direct VRAM / ReBAR (zero copy-back) |
- Biggest UMA discovery: Only
1,735 MB(13.7%) carriesPAGE_GRAPHICS_COHERENT(0x20000).6,276 MB(49.7%) is non-coherent0x2004, while4,619 MB(36.6%) is write-combined Garlic (0x2404).
Complete CoreEngine Memory Allocator, Scatter-Map & Readback Catalog
0x1e1cf60..0x1e1d5ed(MasterVM_Init,1,677 B): CallsD3D12ConfigureVirtualMemoryX+ 6xXMemVirtualAlloc(creates the 2x 24 GB placeholders,1,735 MBOnion,2,199 MBGarlic).0x1e6c110..0x1e6c4c7(StreamingPool_AllocMap,951 B): Creates the6,236 MB0x2004and2,420 MB0x2404streaming pools.0x1e86440..0x1e868f0(Heap32_5WayMap,1,200 B): Maps the185 MB32-bit low heap (0x1afc0000).0x2473090..0x24731bf(Heap32_4WayUnmapFree,303 B): 4-way teardown unmapper (hook point to retire dead transient aliases immediately).0x2240da0..0x2241aa0(SharedPools_Mgr,3,328 B): Controlled by+enableSharedPools/+disableSharedPools->0x22163d0(XMemAllocatePhysicalPages).- Only 2
XMemMapPhysicalPagesScatterfunctions in the entire binary:0x0f2c470..0x0f2cd18(2,216 B) and0x0b18dc0..0x0b18df4(52 B, callers0xb18ce0,0x2216b20,0x2216b60). Hooking both catches 100% of sparse physical-page remaps. - Exported
__XMemAllocationHooks__(RVA 0x6844380):Alloc @ 0x4deb420(XMemAllocDefault @ 0x4deb540),Free @ 0x4e38ec0(XMemFreeDefault @ 0x4e38fa0), carryingdwObjectTypetags. - Texture Layout & DirectStorage:
DStorageGetFactory @ 0x1d8e4d0,fiDeviceDirectStorage @ 0x28c9460..0x28c960c,XGCreateTextureComputer(4 callers:0x3441f0,0x979c40,0x16f7100,0x5121980),XGSuggestSwizzleMode(2 callers:0xc4b030,0x4ecc940). - Whitelisted GPU->CPU Readbacks:
BatchReadback(0x4f43aa0..0x4f43acc),DeepOcean(0x1e49230..0x1e49b36),OceanWaveSim(0x1fe2d90..0x1fe2e30), matching38,016livetexback32 KiB/256 KiBocean height readbacks.
Top 9 Hot CPU Write-Fault Functions & Zero-Copy Heaps
Over 90% of watch.rs read-only page faults (230 faults/frame, 3.5 ms lock wait in Wave 38D) come from 9 functions; the top 3 account for ~88%:
0x5574d60..0x5575165(1,051hits): 96-byte AVXvmovupswrites (called from0x10642a0).0x4d9f200..0x4d9f3b2(885hits): AVXvmovupswrites sitting directly between already-hooked graphics descriptor filler0x4d9efd0and frame allocator0x4d9f400.0x0188430..0x018857d(521hits): Core CoreEngine ring/buffer writer with 52 direct callers (includingFfxDispatchWrap @ 0x28f03ad).- Secondary 6 functions (
182combined hits):0x4e9b480(67),0x35a3b80(42),0x061bbb0(25),0x29266f0(19),0x0124760(18),0x0cc0f80(11,atMemoryPool).
- Proven zero-overhead fix (
descriptor_sites.rs): Apply the byte-verified inline dirty-bitmap trampoline already handling73,966descriptor slots/frame at0.1-0.2 mswait. - Zero-copy CPUGPU heaps (
inplace.rs+xmem.rs:L905):** SwitchSEC_RESERVESEC_COMMIT+ID3D12Device3::OpenExistingHeapFromFileMapping(256 MiBopened in0.2 ms, zero locked working set) for0x1afc0000(185 MB) and0xd00000000(1,735 MBOnion). Hard safety rule:** never callUpdateTileMappingson anOpenExistingHeap*heap (DXGI_ERROR_DEVICE_REMOVED).
6.6 Non-Memory PC Porting Subsystems Control Surface
CPU Threading & Hardcoded Console Core Affinity (kernel.rs Gap)
All thread creation and core pinning in the entire binary flow through 3 functions:
sysIpcCreateThread(0x01ad0fd0..0x01ad1135,357 B): 6 direct callers + 22 named callers via0x01ad0ef0; callsCreateThread,SetThreadPriority,GetThreadGroupAffinity,SetThreadGroupAffinity, and optional override hookg_ThreadOverrideCb(0x071be5b0->0x01b67cd0).SetThreadAffinityHelper(0x019afcc0..0x019afcf9,57 B): 3 callers (0x22411e7,0x577fa9b,0x57f5f2e).GetLogicalProcInfoWrapper(0x01f67680..0x01f67754,212 B): 1 caller total; storesg_PhysCores(0x071be5c0) andg_LogicalCores(0x071be5c4).- Active PC CPU bottleneck:
sysIpcCreateThreadpasses hardcoded Series X 7-core SMT bitmasks0x3F00(CPUs 8..13, used byprio=15real-time audio/APU threads0x43adb20/0x43adbc0and0x5cb1740) and0x1F00(CPUs 8..12,0x43c38a0). Becausevictory-hle/src/modules/kernel.rsdoes not interceptSetThreadGroupAffinity, those Xbox masks pin game threads onto Intel E-cores or AMD non-V-Cache CCD1 cores and collide withvictory-gpu's submit thread. InterceptingSetThreadGroupAffinityinkernel.rsis a ~20-line fix.
Full 82-Field Settings Struct & Engine Configuration Knobs
GetSettings (0x0504c1b0/c1c0, 90 callers) and applySettings(Settings* rcx, bool dl) (0x022434a0, 765 B) expose 82 distinct struct offsets (only 8 are currently touched by ps5pro_rt.rs + frame_rate.rs):
- Already hooked (8 fields):
+0x58RTGI (0..3),+0x74RT Reflections (0..3),+0xA8BVH Quality (0..4),+0x138/+0x13C/+0x140/+0x141RT Shadows,+0x210Target FPS. - Untapped high-value fields (70+ offsets):
+0xD8..+0x10C(13 x f32): Master LOD / distance / population scaling float bank AVX-copied into[0x147453E20..0x147453E54].+0x204,+0x208(u32,u32): Live viewport width & height (call 0x2478130-> resize trigger0x0D8C3A0).- Tier & toggle setters:
+0x44([0x148FCFA2C]),+0x60/+0xD0(0x59D8FC0),+0x68(>=3toggle0x5EDEB90),+0x70/+0x128(0x5A82130,[0x14690BFC8]),+0x80/+0xB8(0x2607A00),+0xA4(0x58A5900),+0xAC/+0xB0([0x1499F6FC0],[0x14A49EC7C]),+0xD4([0x14A15E200]),+0x10C/+0x110/+0x114([0x14684984C],[0x146849848],0x21F9650),+0x144(0x5EB77A0),+0x154(0x58CB810),+0x16C(0x3289530),+0x178/+0x17C/+0x180/+0x184(4-field cluster0x5EB7870/0x5EBB980/0x5EB78D0/0x5EBB990/0x5EEF340),+0x190/+0x194(0x5ED7BB0/0x5ED7BA0),+0x1F4/+0x1F8(0x5EA7450/0x5A7C3D0),+0x20C([0x14A94390C]).
- Retail
.rdataCLI flags & URIs:+enableSharedPools,+disableSharedPools,+randomDebugMemoryFilling,-forcepack,-skipToIIS, andcustom launch URI flags.
Upscaler, Camera, FOV, Ultrawide, HDR10 & Frame Pacing / Reflex
- FidelityFX / DLSS Cluster (
0x028ef1d0..0x028f0668): 1 caller each forffxCreateContext(0x28ef1d0),ffxDestroyContext(0x28ef470), andffxDispatch(0x28ef700,3,850 B).FfxDispatchWrappopulatesDispatchUpscaledirectly fromrbx+0x38(frame_time_delta),rbx+0x40(camera_near,camera_far),rbx+0x48(camera_fov_angle_vertical),rdi+0x118/+0x120(jitter_x/y), andrdi+0x130(sharpness). - Display Mode Table (
0x0615c0c0..0x0615c10f): 5 entries{W, H, 60, 1}(720p,936p,1080p,1440p,4K) plusgrcDeviceParams(0x1e0fb30, 4K Scaleform UI overlay plane). Extends cleanly to21:9(3440x1440),32:9(5120x1440), and120 Hz. - HDR10 (
HDR_PROVIDER @ 0x05f41020): Single caller0x055dcdfc(127 B); currently stubbed OFF (2) invictory-hle/src/modules/display.rs. - 60+ FPS & Reflex (
frame_rate.rs+streamline.rs):Settings+0x210drivesframe_us(0x98f84ac),min_sim_step(0x6849844),SetFrameIntervalX(0x247ab10, table0x61ece60), QPC limiter (0x120530), 7 timers (0x22264d0/0x2226040), and the engine's built-in 40/60 FPS rate scaler (0x234490:1.0/0.7/0.5). Hooking0x22264d0(sim start),0x2211b40(input poll), and0x28ef700(render submit) wires engine-accurate NVIDIA Reflex PCL markers.
Input (Mouse + Keyboard), Audio (SHAPE/Opus/DSP) & GPU Queues
- Input (
GameInputInit @ 0x059258a0, 10 callers): CallsGameInputKindGamepad (0x40000)(0x2211b40,0x2211be0,0x59257e0) andGameInputKindKeyboard (0x10)(0x43a0f00,0x43a1c30), with 0GameInputKindMouse (0x20)polls. Scaleform UI retains full PC mouse events (mouseMove,mouseDown,mouseWheel,setMouseCursorType). AddingWM_INPUTraw mouse delta capture ingameinput.rs+ a camera yaw/pitch accumulator hook replaces the currentI/J/K/Lkeyboard-as-stick fallback. - Audio:
AcpHalInit(0x43aec40) allocates 350 SHAPE XMA contexts (0x15E,2.24 MBAPU heap),xapu.dllhandles Opus (4 enqueue callers), andchad.dll(XDspSubmitCommand @ 0x4e5b200) runs hardware convolution reverb. Completing stereo + 512-sample convolution indsp/convolve.rsfixes silent stereo reverb and in-world speakers. - GPU Queues & Video:
DeviceInit_sga(0x2478440) createssgaWindowClass(CreateWindowExA @ 0x247853a),D3D12XboxCreateDevice(0x24785b7), 6 command queues (vtable+0x48x6: Direct, Async Compute, Copy), andXboxBvhBuilder(0x247944f). Mesh shaders (DispatchMeshslot127,DispatchMeshXslot98) are bridged inlist.rs; video runs onBink2Scarlett.dll(23 imports,BinkOpenWithOptions @ 0x442ea70/0x442efe0) +MFPlat.DLL(6 imports).
6.7 Runtime Implementation and Gap Audit
Static & Dynamic Platform DLLs & API Surfaces (70 DLLs, 88 API Surfaces)
Every runtime API string in .rdata maps cleanly into 7 buckets:
- Graphics & Memory:
d3d12_xs.dll(3),xg_xs.dll(2),XboxBvhBuilder.dll(7),xmem.dll(12),amd_fidelityfx_loader_xbox.dll(4). - Storage & Media:
XCRDAPI.dll(DStorageGetFactory),Bink2Scarlett.dll(23),MFPlat.DLL(6),MFReadWrite.dll(1). - Audio Hardware:
AcpHal.dll(9),chad.dll(5),xapu.dll(5). - Input & Windowing:
GameInput.dll(Ordinal#1),ext-ms-win-rtcore-ntuser-window/message(7). - GDK Runtime / Live / Commerce (
xgameruntime.dll, dynamic):XUser*,XGameUi*,XStore*(12 APIs),XNetworking*(2),XblAchievements*,XblPresence*,XblPrivacy*,XblStringVerify*,XGameSave*,XPackage*,XSystem*,XAsync*. - HTTP / Sockets:
libHttpClient.GDK.dll(38),WINHTTP.dll(15),WS2_32.dll(25). - Core OS / CRT / Threading:
api-ms-win-core-*(CreateThread,SetThreadGroupAffinity,GetLogicalProcessorInformation,QueryPerformanceCounter,PSMlifecycle),MSVCP140,VCRUNTIME140,bcrypt,ADVAPI32.
Legacy Translation Shortcuts Being Replaced
victory-hle(36 modules):kernel.rs: MissingSetThreadGroupAffinity&GetLogicalProcessorInformationoverrides (top CPU priority).xmem.rs: Native Windows usesSEC_RESERVE(blockingOpenExistingHeapFromFileMapping), partial reservation commits unimplemented,0x2004non-coherent class not yet skipped from default readback hashing.gameinput.rs: NoWM_INPUTraw mouse support, keyboard acts as fallback stick, reading callbacks stubbed.display.rs: HDR10 stubbed OFF (try_enable_hdr -> 2), screenshot capture stubbed.dsp.rs&audio.rs&apu.rs: Stereo & 512-frame convolutions zeroed; SHAPE non-XMA units (SRC/EQ/flowgraphs) and APU rate-conversion unimplemented.files.rs,xpackage.rs,speech.rs,net.rs: Async overlapped read edge cases, package uninstall/DLC selectors, silent TTS speech, dual-stack IPv6[::]binding shortcut.
victory-gpu(78shortcut:markers):dxgi.rs: Fixed display mode/refresh list instead of querying host monitor modes/120Hz/ultrawide.frame.rs: Frame event offsets ignored (every event fires at tick).host.rs/queue.rs: Submission overlap & true multi-queue async compute scheduling limited (6guest queues serialized onto fewer host paths).descriptor/host.rs&draw.rs: Barrier states tracked per entire texture (without subresource granularity on some paths), root CBVs assumed 64 KiB, UAV outputs from shaders kept on the host unless explicitly tracked.
victory-shader(56shortcut:markers):- Wave64-to-Warp32 lowering (
v_readfirstlanelane divergence assumptions,v_cndmask_b32carry masks, no SM 6.6 wave-size hint on mesh shaders, LDS dword alignment assumptions,f16FMA lowered throughf32, approximate reciprocal/denormalMODEregister omissions).
- Wave64-to-Warp32 lowering (
Engine Boundary & Remaining Runtime Probes
Remaining Live-Runtime Probes
- Human Names for All 70+ Untapped
SettingsOffsets: Static analysis gave every offset and setter RVA (applySettings @ 0x22434a0); labeling each remaining offset (volumetric clouds, grass density, shadow cascade res, crowd density) requires reading the 15 setter functions or dumping the liveSettingsstruct in memory while toggling Console Quality/Performance mode. - Exact CoreEngine Camera Yaw/Pitch Accumulator RVA (for 1:1 Raw Mouse Aim): Static analysis proved
GameInputpolls gamepad at0x02211b40; tracing right-stickright_x/right_yinto camera rotation takes a quick live watch while moving the stick in-game.
Native Compiler & Asset Boundaries
- **Native HLSL NVIDIA Blackwell DXIL compilation** (removing Wave64Warp32 translation and adding native SER / OMM).
- Deep 30 Hz script/physics edge cases beyond the global
0x2226040/0x234490clocks. - Uncompressed PC-tier asset packs & in-game PC settings menu UI (external
victory.toml/ overlay covers the controls without modifying Scaleform). - Whole-program PC compiler optimization (PGO / AVX2 / AVX-512 across all 299k functions).
Historical 5-Step UMA Execution Blueprint
- Step 1 (Enforce Non-Coherent
0x2004+ Fix Xbox Thread Affinity): Skip default readback hashing across6.27 GBof non-coherent GPU memory inxmem.rs/shadow.rs+ interceptSetThreadGroupAffinityinkernel.rs. - Step 2 (Inline Dirty-Mark Stubs on Top 3 Fault Writers): Patch
0x5574d60,0x4d9f200, and0x0188430with the provendescriptor_sites.rstrampoline (~88% fault drop). - Step 3 (Kill Shared-RAM VRAM Spill): Keep
BURY_LAG=36under 85% VRAM, re-testVICTORY_LEVELS_ON_DEMAND=1(tiles.rs), and hook the only 2 scatter mappers (0xf2c470,0xb18dc0) + 4-way unmapper (0x2473090). - Step 4 (Zero-Copy Onion/32-Bit Heaps + Direct VRAM Streaming): Move
0x1afc0000and0xd00000000toSEC_COMMITOpenExistingHeapFromFileMapping+ routefiDeviceDirectStorage(0x28c9460) decoded mips directly to reserved VRAM tiles. - Step 5 (Native PC Experience Polish): Expose all 82
Settingsfields in config, addWM_INPUTraw mouse + camera aim hook, extend the 5-mode display table to Ultrawide/120Hz/HDR10, wire engine-aligned Reflex PCL markers, and finish stereo/512-sample convolution indsp.rs.
6.8 Windows Runtime Behavior and Verification Checklist
Initialization and Shutdown
- Loading a DLL establishes symbol resolution, while the first runtime call depends on
XGameRuntimeInitializesucceeding and matchingXGameRuntimeUninitializeat shutdown. Keep the runtime alive while outstanding async work or completion callbacks remain pending. - Port check: Test initialization from both the main executable and dependent modules, verify failure handling, and confirm shutdown frees only initialized state.
Asynchronous Calls and Task Queues
- Check both the immediate start return value and the async completion status/result. Keep
XAsyncBlock, its context, and target buffers alive until completion; query required buffer sizes first for variable-size results. - A task queue separates work and completion ports. Manually dispatched completion ports require a thread pumping
XTaskQueueDispatch(never block that same thread waiting on its own callback).XAsyncCancelcan race with normal completion, so never free the block until completion runs. - Port check: Run the same operation under both manual and thread-pool dispatch; test immediate error, completion, cancellation mid-flight, and shutdown with queued completions.
Account State, Game Saves & Licensing
- Keep controller lifetime, signed-in user identity, and services context separate; a controller reconnect does not redefine save ownership or active entitlements.
- Game Saves groups blobs inside named containers under a user/SCID provider; batch related writes into one container update and verify synchronization and quota errors before reporting success.
- Package presence, install progress, and user license status answer separate questions; re-evaluate access on user change.
- Port check: Switch between two users with different saves/entitlements while a write is pending and verify account selection, saved blobs, and content availability independently.
Input Devices & HDR Presentation
GameInputreadings identify both input kind and device; preserve device identity across disconnect/reconnect and interpret keyboard keys, relative mouse deltas, and analog sticks separately even when driving the same camera.- Console HDR requests can express a preference between HDR and high refresh when a display cannot support both. On Windows, enumerate the active monitor's supported format/color space, re-evaluate when moving windows across monitors, and keep user preference separate from the currently active mode.
- Port check: Test SDR, HDR, refresh-rate tradeoffs, and dragging the window across monitors while presenting.
Streaming and GPU Memory Lifetimes
- Track address reservation, physical backing, and residency separately from upload completion. Reserved GPU virtual ranges can contain unmapped tiles, and CPU visibility/write-combining never guarantees a producer has finished.
- Preserve synchronization dependencies between storage completion, copy work, and the first graphics/compute consumer; keep every staging allocation alive until its final consumer retires.
- Port check: Stream into a partially mapped resource, recycle staging memory under pressure, and read on a different queue to expose early-reuse races.