Repository navigation
gpu: 8 GB over-budget guard, profile and page-pool prototype - #2658
olgundemirkan wants to merge 1 commit into
Conversation
|
I reviewed
Win64 probes under Wine 11.22 and launcher dry runs under PowerShell 7.4.21 with synthetic inputs. AI-assisted with OpenAI Codex. |
|
Follow-up on the F1 loss of the 8 GB profile's MEASURED. The regression failed at both restart stages in all three runs on main and passed all three on the fixed branch. In local integration tree PowerShell 7.4.21 on CachyOS, mocked CIM/SDK presence, dry runs only. AI-assisted with OpenAI Codex. |
|
Native Windows follow-up for the 8 GB F1 restart with the
The test combined this PR with #2626, #2647, and the fix above. It exercised the restart command and environment handoff on native Windows using a synthetic executable path in DryRun mode. |
aslan2142
left a comment
There was a problem hiding this comment.
Thanks for the 8 GB prototype and measurements. This PR is still a draft and currently has merge conflicts with main; as @merzleckeier also measured, d3d12/crates/leonida-gpu/src/inplace.rs:323 no longer compiles against main's BTreeMap-based sections, and the F1 restart -More preservation issue needs to be addressed. Please rebase onto main, fix the inplace.rs compilation against BTreeMap, ensure the new d3d12 (windows-latest) CI check passes, and mark ready when finalized.
(AI-assisted review.)
Claimed in coordination issue as: n/a — draft for review; I can split it if the page-pool prototype should be separate.
Depends on: none.
Fixes: none.
What and why
This is the 8 GB memory work from testing the D3D12 runtime on an RTX 3060 Ti
8 GB / 16 GB RAM PC. It has four parts, and only the first two are meant for
play today:
resource.rsover-budget guard.room()now refuses new host copieswhile Windows reports the card over its DXGI budget, even when a
LEONIDA_TEXTURE_BUDGET_MBis set. The 8 GB profiles set that budget, so theold order kept adding copies at 7.8 GB of a 7.25 GB budget until the driver
faulted.
scripts/play-8gb.ps1. The measured 540p profile: title upscaler, noDLSS and no frame generation, texture budget 4000 MB, staging 1024 MB, card
buffers 1024 MB, 512 MB of title-memory windows, page writes 262, heap
recheck 120.
LEONIDA_PRELOAD_DLLS(preload.rs+ loader/app call). Loadsuser-supplied DLLs before the GPU is made. Off unless set; no DLLs are in
the repository.
inplace.rs,port.rs,shadow.rs).LEONIDA_PORT_CONSTANTS=2, off by default, gathers the 64 KiB pages of apage-pool window into one view of ours and opens it as a host heap, so the
card reads the title's bytes without a PC copy. This is the part that needs
review: it is not ready — the gathered view currently fails with
MapViewOfFile3os error 487 on many windows, and only 4 MB of 4,780 MB ofwindows were placed in the test run. The usable parts are 1 and 2.
The full measurements and the failed paths are in
d3d12/docs/8gb-memory-2026-11-30.md.Tested
The remaining crash is the 8 GB VRAM + WDDM shared-memory wall, not a missing
HRESULT check. A debug-layer/full-DRED run found no failed
Create*and noseverity=3message before the device was removed.GPUs tested: NVIDIA RTX 3060 Ti 8 GB, driver 621.40, Windows 11 26H2, Ryzen 5
5600, 16 GB RAM.
AI-assisted: yes — the code changes, the measurements and this text were done
with an AI agent and checked by hand. No game data or DLLs are included.
Checklist
main(c139ba1c8) and merges cleanly.split into a separate PR if preferred.