Repository navigation
D3D12.X: warn when the title's memory budget is larger than the GPU's (#1337) - #1595
Gruzzberry wants to merge 1 commit into
Conversation
…xcl-dev#1337) With `title_memory_mb = 0` the title is given the console's budget (13,824 MiB Series X, 8,192 Series S). On a GPU with less dedicated video memory its streaming manager plans against more than fits, and the failure shows up as a runtime death a minute or more after the start, with nothing in the log. Log one startup warning naming the budget, the adapter's DedicatedVideoMemory and the `title_memory_mb` setting. Nothing is clamped. A budget the user set (anything but the console default), an unknown VRAM (WARP) and enough VRAM do not warn. The decision is a pure function with unit tests. Part of xcl-dev#1337. Assisted-by: Claude Code (Claude Sonnet 5.5)
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
Hardware test report — commit
|
|
Test report on an 8 GB NVIDIA card, head Tested
Regression run main: this PR's head: Not tested
AI use: Claude Code (Claude Opus 5.5) built the PR, ran the tests and both smoke runs, read the logs and wrote this report; I checked it before posting. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Data from a 12 GB card, where this warning fires (RTX 3080 Ti, 12084 MiB dedicated, driver 621.24, Ryzen 5 7500F, Windows, release builds). I did not run this PR's head; this is about what the warning suggests, lowering I have a branch that does the lowering automatically (standard budget = dedicated VRAM − 1536 MiB, here 10548 instead of 13824, worked out when the host starts): https://github.com/nikitronick-crypto/xcl/tree/title-memory-fit Same binary, same title,
Runs were done on my PC; Claude Code (Claude Fable 5.2) analysed the logs and wrote this text, which I reviewed. |
XCL PR #1595 — Windows verificationHead Tested STOR-WINLAB, AMD Ryzen 7 3800X, Intel Arc A770 with driver 32.0.101.9175, Windows 11 Enterprise Evaluation x64 build 26200. Rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). DXC 1.9.2609.5 verified with
The four fixtures check that the Series X warning includes the 13,824 MiB budget, the 12,282 MiB adapter value, and the Not tested Only the focused PR tests and full workspace compilation ran. The full GPU workspace suite was omitted. The fixtures pass numeric inputs directly to the helper, so they leave config-to-warning wiring, real DXGI adapter detection, startup logging, and retail-title smoke tests unverified. AI use T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against |
|
Same issue (#1337) as #1450 (README: documents AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Logs one startup warning when the console's default title memory budget (
title_memory_mb = 0: 13,824 MiB Series X, 8,192 MiB Series S) is larger than the adapter's DXGIDedicatedVideoMemory, naming both numbers and thetitle_memory_mbsetting. Nothing is clamped. Today the over-planning shows up only as a death a minute or more into the run (see pickles976's comment, point 2, on #1337).Part of #1337.
What is in it
crates/xcl/src/hle/d3d12x/real.rs:title_memory_over_vram_warning(budget, vram, explicit) -> Option<String>, called once frominit()with the VRAM of the chosen adapter; 4 unit tests. No warning for an explicit budget, enough VRAM, or unknown VRAM (WARP).crates/xcl/src/config.rs:Config::console_title_memory_mb()(the 13,824 / 8,192 choice, moved out oftitle_memory_budget_mb(), same values).Config::resolve()writes the budget intotitle_memory_mb, so the host cannot see whether it was set; "explicit" means "differs from the console default". Someone who sets exactly the default value is warned too.Tested
b7aa9f3.cargo test -p xcl --lib title_memory: 6 passed, 0 failed. Without the function the new tests do not compile (E0432 / E0425).cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4on this commit: 774 passed, 0 failed, 41 ignored (mainb7aa9f3: 770 passed, 0 failed, 41 ignored). A first full run hade2e::test_title_runs_and_game_folder_is_untouchedfail while other processes were using the machine; it passes alone and the full run was repeated cleanly (the numbers above).SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64,SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64.xcl.logshows the new line:[WARN ] title memory budget 13824 MiB (the console's) is larger than the GPU's 12010 MiB of dedicated video memory: the title may plan its streaming beyond what fits; set title_memory_mb in xcl.toml (e.g. 9007) to lower itRegression run
scripts/smoke.ps1 -Game '<game folder>'(60 s, same title and warm shader/driver cache for both).main
b7aa9f3:this PR's head:
Not tested
DedicatedVideoMemorywith large shared memory would also warn.AI use
🤖 Generated with Claude Code