Platform & HLE notes for 1:1 console parity and 30 FPS pacing: XMem split mappings, 4 MiB loose CBV inflation, watchdog contracts, and sync bottlenecks #38
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#38
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?
@owsware on GitHub · 2026-11-25 23:57 UTC · original
Sharing sanitized platform/HLE findings (no title binaries, symbols, offsets, or local paths) gathered while comparing console runtime contracts against our RTX 5080 (
32 GBRAM, Ryzen 7 9800X3D) profiling on0a43566.1. Memory Mapping (
XMem) & Virtual Address Space ContractsXMemVirtualAlloc, splits them into multiple distinct protection regions (5 contiguous slices observed per block with mixedPAGE_READWRITE | PAGE_WRITECOMBINE/ guard protections) backed by oneXMemAllocatePhysicalPagesallocation, and maps each slice individually viaXMemMapPhysicalPages. Returning0(NULL) triggers an immediate debug break, and coalescing caller-split placeholders corrupts subsequent slice mappings (confirming the need for open PR #14's placeholder boundary preservation).XMemUnmapwithpage_array = null: Console callers invoke unmap with a null page array pointer expecting actual unmapping rather than a silent no-op.4 GiB(< 0x1_0000_0000) 32-bit reservations: Reserving headroom below4 GiBat startup (~185 MiBbudget) prevents high-address/sparse allocations from starving 32-bit address space allocators later.2. Host RAM Pressure (
~29 GBCommit) &4 MiBLengthless Root-View Inflation0a43566), working set reached22.9–25.1 GBand private commit reached28.6–29.9 GBon a32 GBhost — dangerously close to OOM/thrashing on16–32 GBsystems.shadow::find(addr, 1)calls fromroot_viewallocate up to4 MiBloose shadow windows even for small root constant buffers (<= 64 KiBD3D12 CBV maximum). In dense world scenes,470+lengthless windows (~1.88 GBof loose shadows alone) accumulate alongside ~8 GBof WC staging allocations.64 KiBrange instead of allocating4 MiBloose shadow buffers (without truncating legitimate large lengthless SRVs/UAVs).3. Render Watchdog Contracts & Optional D3D12.X Pre-Warm Slots
30 s/300 s): Console runtimes poll the GPU heartbeat QPC every1000 ms(ignoring >2 shost pause/debugger gaps) and force a deliberate null-address fault after30 swithout render progress (extended to300 sacross tracked blocking sections). Any crash log showing that sentinel null-dereference means the render queue stalled30 searlier (DXGI_ERROR_DEVICE_REMOVED,E_INVALIDARG, or blocked PSO/fence wait) — always inspect the earliest failure before the watchdog fires.0x1b8,0x1c8,0x218): ReturningE_NOTIMPLis confirmed benign; callers checkHRESULT >= 0before caching pre-warmed pipeline handles and fall back cleanly to standard pipeline creation. By contrast, fixed-size internal object pools will breakpoint immediately if guest memory/aliasing corruption breaks pool headers or counts.4.
33.3 ms(30 FPS) Parity Bottlenecks & BVH/Video ContractsMeasured per-frame breakdown on RTX 5080 + Ryzen 7 9800X3D (
0a43566):THIN=1recording overhead:454.2 msacross recording threads (3.9 fps) in Default vs164.5 ms(10.9 fps) withTHIN=0onLATE_WAIT_LISTS=32.LATE_WAIT=0vs CPU/GPU overlap: Even with0dynamic slot refusals and0indirect drops (testF_late0),161.8 ms/frame(6.2 fps) is spent sequentially across35.3 msprepare (155.7 MBuploaded) +89.8 msGPU +31.9 mscopy-back (69.1 MB), plus133.2 msacross recording threads and120+ MBcompared back. Achieving<= 33.3 msrequires:DYNAMICdescriptor reclamation.is_card) minimizing PCIe forward uploads (155–182 MB/frame) and CPU readbacks (42–69 MB/frame).16x/256 Bscratch): Console BVH builders batch up to16builds/rehydrations per invocation over256-byte aligned reusable scratch buffers with UAV barrier synchronization (and64-bit Morton codes on non-compacted paths). Fixing the 3 failed compute shaders inbuilder_runskeeps all53stages active rather than dropping~1,129world dispatches/frame (3,143–6,342/frameduring scene streaming).30 fpspacing already stable in RTX 5080 tests).@j-fuxa on GitHub · 2026-11-26 01:41 UTC · original
Numbers from a different tree of the same lineage that bear on section 2 (the 4 MiB loose windows) and on the ~29 GB private commit in #38 and #61. RTX 4060 Laptop 8 GB, 32 GB RAM, Windows 11, at world entry.
window_use"ever copied" line, so compare with care). The windows barely overlap (24-48 MiB), so duplication is not what costs; the untouched part of each window is. The run-65 note in yourshadow.rs(3,236 MB of windows, 1,988 MB ever copied) has a similar shape. ShrinkingVICTORY_WINDOW_KBis not free, though: a 1 MiB grid made our world entry much slower in one run, and another tree measured about 50% more frame time with 256 KiB windows, so fetching only the touched sub-ranges looks like the better lever to test.Accounting traps we hit:
QueryWorkingSet's share count saturates at 7, so it cannot dedupe; walking the working set over the known views and counting each section page once does.Caveat: one GPU and one scene for the NVIDIA commit figure; not measured on AMD.