D3D12 in-place title memory on NVIDIA: what OpenExistingHeap* accepts (measurements for zero-copy attempts) #1387
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#1387
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?
@MKmajster on GitHub · 2026-11-26 22:17 UTC · original
Several forks are trying to let the card read title memory in place instead of copying it every frame. These are measurements from one machine (RTX 3070 8 GB, driver 617.42, Windows 11, Resizable BAR off for 1–3, on for 4) that may save others the same experiments. The tests are synthetic (our own sections and views, no title data).
OpenExistingHeapFromAddress1takes one view, not several. One 64 KiB view of a pagefile-backed section opens, and the card reads and writes it. Two adjacent views — even of the section's next pages, in order — are refused withE_INVALIDARG; so are 8 views in reverse order, 8 views of two sections, and 256 scattered views. A range the title maps page by page cannot be one heap this way.VirtualProtectfails with error 87. Write tracking that makes views read-only cannot cover memory that is in place.OpenExistingHeapFromFileMappingon aSEC_COMMITsection works, but the driver pins the whole section. Opening a 3,977 MB section took 4.2 s and raised "shared with the card" usage by about 4.3 GB at once; on a 16 GB PC the run then failed with0x8007000E. Cutting the pool into 64 MiB sections and opening at most 1 GB of them was stable, but buffers placed there are read across PCIe, and the frame got slower (176 → 189 ms here).Vulkan's
VK_EXT_external_memory_hostimports a virtual range, which is how some PS5-side projects avoid point 1; we found no D3D12 equivalent.AI-assisted (Claude Code). No game data attached.