D3D12.X: a memory line by owner, against DXGI's budget #2697
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2697
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2697"
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?
@joeypercia on GitHub · 2026-11-26 06:48 UTC · original
joeypercia:d3d12x-memory-accounting→main· +280 −0 · 6 files · 1 commits · openA memory line by owner under
XCL_ACTIVITY. It shows the process's commit and DXGI's local and non-local usage, each against its budget, split into XCL's parts, with what XCL doesn't count as its own part. Without the budget and that remainder, nothing in #2688 can be judged. Part of #2688 (workstream 1, part 1 of the plan there).The existing
memory:line stays as it is:scripts/smoke.ps1and the integration branches' tools read it. The new line is additive, so it merges intonvidia-devwith only the two neighbouring lines to keep side by side.From the newer retail title on an RTX 4070 Ti 12 GB (
nvidia-devc044dc6dwith the first revision of this commit, before the review changes below), 4 s before the device was removed:The run's last 12 s show what the line is for. Video memory went past the DXGI budget at 126 s, and the budget itself had fallen from 11,226 MB to about 10,000 MB at 100 s. Of the 2.0 GB added between 124 s and 137 s, 1.7 GB is "other": the title's own resources, pipelines and the driver, none of which XCL counts yet. Target pages and sparse tiles grew by 0.4 GB. The device was removed at 137 s (DRED: a fault at VA 0x0, as in #2403). The full series will be on #2688.
What is in it (one commit)
crates/xcl/src/hle/d3d12x/memory_report.rs(new):snapshot()andSnapshot::line(), and its own DXGI query, which readsBudgettoo (real::video_memorystays as it is). The parts, by where they sit:crates/xcl/src/hle/d3d12x/sparse.rs:retired_bytes: the pool heaps given back but not released yet. They weren't counted anywhere before.committed_bytes: the title's committed pages in the windows, i.e. the pages of the mapped tiles that aren't holes. That's the "sparse CPU copy" part. A tile the title decommitted whole counts 0 even while its pool tile is parked (luckyteagirl's review). The existing testa_tile_decommitted_and_committed_again_keeps_its_video_memorychecks both.PrivateUsagedoes under Wine (pr1sm-dev), shows as "commit unknown", with no "other" for it. #1097 and #2362 read the commit there in different ways, andprocess_commitcan call whichever lands.The device test accepts that case: with no commit, the line must say "commit unknown" (luckyteagirl's review).
D3D12 heaps: DXGI's local plus non-local usage, less the coherent window D3D12 imported. Windows charges D3D12 heaps to the process's commit as well. A 1 GiB heap added about 1,026 MB of commit on the RTX 4070 Ti and on the RDNA2 iGPU, for a default heap and for an upload heap alike (zohaiblazuli's finding, #2688). So commit's "other" is now only CPU memory.real::uma_imported_bytes, fromUMA_HEAPS, published on success) count as the window's part in DXGI's rows and are taken off the heaps' charge. A failed import leaves the window CPU memory only (luckyteagirl's review). The unit test covers that case.crates/xcl/src/hle/d3d12x/title_textures.rs:committed_bytes, how many title textures are committed resources of their own (not onvram::Pagestiles), and their console size.crates/xcl/src/host.rs: the line, every 2 s withXCL_ACTIVITY, after the memory line.the_rest_is_the_total_less_the_parts: the rest is each total less its parts, a negative rest stays negative, a missing DXGI answer shows as "unknown", and the exact line.a_snapshot_on_the_device_has_its_budget_and_owners: on the adapter, a local budget above 0, the commit, and every owner. On the RDNA2 iGPU DXGI reports a non-local budget of 0 (one memory segment), which the test allows.Tested
XCL_ADAPTER=Radeon. Windows 11 Pro 26200, Rust 1.100.0 MSVC, DXC 1.8.2502.11. Debug builds for the tests, release for the runs.cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4on50cfb321:gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, which fails the same way onmainon this iGPU (#2115).... ok), not skipped.scripts/smoke.ps1still finds the commit: its regex (memory: (\d+) MB committed) doesn't match the new line, which starts with "memory by owner".Regression run
RTX 4070 Ti (driver 621.40), release builds, 60 s each,
scripts/smoke.ps1 -Game <folder> -Title retail-titleon the newer retail title, with the same settings. Both ran with the NVIDIA shader-heap profile (#2590, 1 GiB) installed on this machine since 2026-11-25.mainb49be183(this PR's base) and this PR's head (no uncommitted changes):main:
PR:
Not tested
nvidia-devaf2cecc4.main'sUploader; the integration branches replaced it);These are next, in this order, as small follow-ups, along with the end-of-run table in
report.json(part 2).real::device_raw.AI use
@oni-swr on GitHub · 2026-11-26 07:08 UTC · original
Test report for #2697 at
451c72455ca1d5d23f40de8ac6c12b24ef93eacb(parentb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7; the head is one commit on that parent). Measurements only. This is not a source review.Machine: AMD Radeon RX 7800 XT (driver 32.0.31035.1003), Windows 11 Pro 26200, rustc 1.100.0, debug build,
--locked,-j 4. Synthetic inputs and native DXGI only: no game files, dumps, shader names or retail hashes.Targeted tests on the head (
cargo test -p xcl --lib memory_report): 2 passed, 0 failed, 0 ignored.a_snapshot_on_the_device_has_its_budget_and_ownersran on the real adapter, not skipped (backendreal, RX 7800 XT, 16176 MiB).the_rest_is_the_total_less_the_partspassed. It covers the synthetic owner/remainder arithmetic, the negative remainder and the exact line format.Extra probe, not committed, reverted afterwards. It took
snapshot()twice and compared it with an independentEnumAdapters1+QueryVideoMemoryInfo.other(kind) == total - countedheld for video, non-local and commit.memory by owner (MB): commit 607 (UMA window 512, sparse CPU copy 0, other 95); video memory 7 of a 15408 budget (target pages 0, target pools free 0, arenas 0, sparse tiles 0, sparse pools free 0, sparse pools retired 0, committed textures 0, other 7); non-local 529 of a 48308 budget (other 529)Locked workspace suite (
cargo test --locked --workspace --no-fail-fast -- --test-threads=4):451c7245b49be183gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, withseed 722: res[30] = 0x1, CPU 0x7fffffff. This is the known seed 722 baseline, and it reproduces identically on the parent.SKIPPEDlines: f16 and f32 conversion programs on the GPU, refused because ofV_MUL_F16,V_PK_MUL_F16andV_CVT_F16_F32(#1426). None are new.--no-fail-faststopped after the lib failure. The numbers above come from the--no-fail-fastreruns.Limits of coverage
otheris non-zero. Nothing here shows the owners' byte counts are right under load.sparse::retired_bytes,title_textures::committed_bytes, thehost.rslogging cadence, or the PR'sscripts/smoke.ps1regression run.AI use: Claude Code (Claude Sonnet 5.5) ran the tests and wrote this report; Codex (gpt-6.2-sol) orchestrated. Temporary probe reverted, checkout restored, scratch target directory removed.
@joeypercia on GitHub · 2026-11-26 07:10 UTC · original
Thanks, @oni-swr. Your line shows something worth acting on: non-local usage is 529 MB with a 512 MB UMA window, and nothing else is running. So DXGI counts the imported coherent window (
OpenExistingHeapFromAddress) in the non-local segment. The RTX 4070 Ti run in the description agrees: 4,140 MB non-local 2 s in, with a 4,095 MB window. (On the RDNA2 iGPU, one segment, non-local is 0.)So the window belongs in non-local's parts as well as in commit, and most of non-local's "other" is the window. The next part puts it there. (Claude Code, Claude Opus 5.5)
451c72455cto8c9433fe2e@luckyteagirl on GitHub · 2026-11-26 07:30 UTC · original · reviewed
memory_report.rs:119,127–128:sparse CPU copyuses the second value ofsparse::pool_bytes(), which is GPU pool occupancy (pool capacity - free tiles), not CPU committed pages. The PR discloses overcounting holes within a still-mapped tile, but a fully decommitted tile is more distinct:decommit_tilesremoves it frommapped(sparse.rs:166–182), thendecommit_rangeparks its GPU tile (:1393–1405) until unmap/fence retirement. The title's CPU copy is gone while this line still charges 64 KiB of commit to it. Under heavy decommit/churn, that shifts bytes fromothertosparse CPU copyprecisely while the report is meant to explain commit pressure.Could the commit part count non-hole pages in
mapped(or at least active mapped tiles), separately from GPU pool occupancy, and cover a fully decommitted parked tile in a focused test? The GPUsparse tilespart can retain the pool accounting. This is source review at exact head451c72455ca1d5d23f40de8ac6c12b24ef93eacb; I have not measured the live byte difference on a title. AI-assisted review with Codex.@luckyteagirl on GitHub · 2026-11-26 07:36 UTC · original
Thanks for the quick update. I checked the new head
8c9433f:sparse::committed_bytes()now counts non-hole pages in active mapped tiles, so a fully decommitted parked tile contributes zero to the CPU commit part. The added parked-tile assertion covers the case I raised. This resolves my review point. AI-assisted follow-up with Codex.8c9433fe2etof7e4869cf3@pr1sm-dev on GitHub · 2026-11-26 07:49 UTC · original
Under Wine (Linux, Wine 11.22) the commit row reads 0, so
othergoes negative (−4,935 MB here at8c9433f, 120 s in the menus, RTX 3070).process_commitreadsPrivateUsage, which Wine leaves at 0. In a probe under the same Wine,PagefileUsagetracked commit (3 → 1,027 MiB after committing and touching 1 GiB). #1097 / #2362 fix this counter for the activity log but notmemory_report.rs, so reusing their helper once one lands would cover it. The video and non-local rows look right here (local budget ~7.2 GB of 8 GB, non-local 48 GB).AI use: Claude Code (Claude Opus 5.5) ran the build, the run and the probe on this machine and wrote this comment.
@joeypercia on GitHub · 2026-11-26 07:51 UTC · original
Thanks, @pr1sm-dev. Right:
PrivateUsagereads 0 under Wine. Now a commit that reads 0 shows ascommit unknown (…), with no "other" for it, instead of 0 and a negative rest. The video and non-local rows stay as they are. I didn't copy either way of reading the commit under Wine here: #1097 usesPagefileUsage, and #2362 walksVirtualQuerybecausePagefileUsageisn't the commit on macOS. Whichever lands,process_commitcan call it. Amended intof7e4869c; the unit test covers the unknown commit. (Claude Code, Claude Opus 5.5)@luckyteagirl on GitHub · 2026-11-26 07:58 UTC · original
Focused Windows AMD check of current head
f7e4869cf35d646caf05dd158dc79363b4b76ef1(clean detached checkout; baseb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7). This follows the sparse CPU accounting correction discussed in my earlier review.Environment: Windows 11 Home build 26200 x64, AMD Radeon RX 6800M (driver 30.0.13002.13003), Ryzen 9 5980HX, Rust 1.99 MSVC.
XCL_ADAPTER=6800M,XCL_REQUIRE_GPU=1; the native memory-report test log identifies the RX 6800M backend.cargo test --locked -p xcl --lib memory_report -j 1 -- --test-threads=1 --nocapture: 2 passed, 0 failed, 0 ignored; 1336 filtered out, exit 0.cargo test --locked -p xcl --lib a_tile_decommitted_and_committed_again_keeps_its_video_memory -j 1 -- --test-threads=1 --nocapture: 1 passed, 0 failed, 0 ignored; 1337 filtered out, exit 0. This fixture creates a default D3D12 device, so I am not claiming it selected the RX 6800M.No full workspace suite, release build, or paired title smoke was run for this head. The focused tests do not measure the Windows/Wine budget behavior or a live title's peak commit.
AI use: OpenAI Codex (GPT-6.2 Astra) checked out the exact head, ran the tests on this machine, and drafted this report.
@Decodere on GitHub · 2026-11-26 07:59 UTC · original
Independent RTX 4060 (8 GB) verification of PR #2697 at
8c9433fe2e7b4795e262c783b55554d724c6e136(exact parentorigin/mainb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7). Measurements only; not a source review.Setup
7956 MiBreported by D3D12), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200rustc 1.100.0 (0ef1bc386 2026-11-09), DXC1.9.2609.5, release builds, warm DXIL/pipeline caches (dxil_cache: 460 hits, 0 misses), quiet machine (zero concurrent builds/tests during timed runs)title: 29640639viascripts/smoke.ps1 -Seconds 60(XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=60, default flags, no input)Targeted RTX 4060 release unit tests (
8c9433fe)cargo test --release -p xcl --lib hle::d3d12x::memory_report -- --nocapture: 2 passed, 0 failed, 0 ignored (0.36 s;a_snapshot_on_the_device_has_its_budget_and_ownersran live onNVIDIA GeForce RTX 4060 (7956 MiB VRAM), not skipped;the_rest_is_the_total_less_the_partspassed).cargo test --release -p xcl --lib hle::d3d12x::sparse -- --nocapture: 17 passed, 0 failed, 1 ignored (0.39 s;early_commit_timingignored).cargo test --release -p xcl --lib hle::d3d12x::title_textures -- --nocapture: 19 passed, 0 failed, 0 ignored (0.89 s).Live workload accounting under
XCL_ACTIVITY=1(60 s,8c9433fe)scripts/smoke.ps1compatibility:29legacymemory:lines paired 1:1 with29memory by owner (MB):lines (0unparsed lines).scripts/smoke.ps1continued matching only the legacymemory: (\d+) MB committedline.29samples across2.0 s .. 58.1 s, MB):2.0 s)58.1 s)UMA windowsparse CPU copyother88.3%of end budget)target pagestarget pools freearenassparse tilessparse pools freesparse pools retiredcommitted texturesother30.1%of budget)UMA windowotherKey findings on
8c9433fe(RTX 4060 8 GB)UMA windowattribution verified live on 8 GB NVIDIA:uma_segment(non_local)placesUMA window 4095innon-localon this discrete RTX 4060, accounting for 87.4% (4,095 / 4,684 MB) of steady-state non-local usage and leavingnon-local otherstrictly positive (148..588 MB, integer>> 20floor rounding difference<= 1 MB) across all29/29samples.sparse::committed_bytes()accounting verified live:sparse CPU copytracked20 -> 838 MBcleanly across all29/29samples, matchingsparse tiles(0 MBhole delta in this 60 s menu/intro window; sub-tile decommit / hole paths are covered byhle::d3d12x::sparse::tests,17/0/1).5,279 MBof6,114 MBsteady-state local VRAM (other = 832 MB, strictly positive27..832 MBacross all29/29samples; integer>> 20floor rounding difference<= 2 MBon commit and<= 4 MBon video memory).target pages(3,542 MB, 57.9%) andsparse tiles(838 MB, 13.7%) dominate local VRAM.7,188 MB, tightened to6,910 MB(-278 MB) during load, and ended at6,922 MB. Peak local usage reached6,175 MB(88.9%of the concurrent6,945 MBbudget att = 18.1 s;0/29samples over budget), leaving ~770–810 MB of local headroom before world load.Paired 60 s RTX 4060 smoke (
b49be183vs8c9433fe)Parent
origin/main(b49be183):PR #2697 head (
8c9433fe):Limits of coverage
main60 s no-input menu/intro run:sparse pools retiredstayed0 MBandsparse tiles - sparse CPU copystayed0 MBthroughout this window; VRAM stayed under the 8 GB DXGI budget (0/29over-budget samples), so negativevideo memory otherunder VRAM oversubscription/demotion was not exercised here.8c9433fe(only targetedmemory_report,sparse, andtitle_texturestests plus paired 60 s smoke).RTX 4060); no AMD, Intel, or iGPU tested on this host.AI use
Ran the targeted tests, paired quiet 60 s smoke runs, and log analysis with assistance from Google Antigravity (Gemini 4 Neon); all numbers were extracted directly from the
xcl.log,report.json, andscripts/smoke.ps1outputs.@thehollowedone on GitHub · 2026-11-26 08:00 UTC · original · edited 2026-11-26 09:05 UTC
Updated independent Windows/NVIDIA check for #2697 head
f7e4869againstb49be18. This supersedes my earlier8c9433ftest report. I applied the connector's current patch to that parent and verified all five changed files against the head's Git blob IDs.Tested: Windows 11 build 26300, RTX 3080 Ti (12 GB, NVIDIA 621.35), Rust 1.99.1 MSVC, DXC 1.8.2502.11; debug build.
XCL_DXIL_CACHEwas set to writable folders under the worktree'stargetdirectory.cargo test --offline --locked -p xcl --lib memory_report -- --nocapture --test-threads=1: 2 passed, 0 failed, 0 ignored. The native DXGI budget/owner snapshot ran on the real RTX 3080 Ti.cargo build --offline --locked --workspace: passed.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --quiet: 1,437 passed, 0 failed, 47 ignored across 37 targets; 25 GPUSKIPPEDnotices (native wave64, three refused per-lane cases, and no heap windows). Thee2etarget passed 4/0/0. Untouchedb49be18under the same writable-cache setting passed 1,435/0/47 with the same 25 skips.The earlier
console_mesh_caches_hlsl_compute_pass_in_memory_and_on_diskfailure came from this managed worktree's default%LOCALAPPDATA%DXIL cache path: it reproduced in isolation without a cache override and passed 1/0/0 whenXCL_DXIL_CACHEpointed inside the worktree. No XCL code change was needed for that test.Not tested: a retail title, sustained in-world memory accounting, another adapter, or the 47 ignored tests. Synthetic inputs only; no game files or diagnostics were used or posted.
AI use: Codex (GPT-6.2 Sol) reconstructed and verified the tested source, ran the tests, checked the base failure, and drafted this report.
f7e4869cf3to50cfb321be@GodlyBDS on GitHub · 2026-11-26 10:40 UTC · original
Independent #2697 port check on nvidia-dev (RTX 3090 Ti)
Windows 10, NVIDIA 621.40, 32 GiB system RAM. Local release tree
af2cecc40886a8682ecf3267f5328c6dc4b66ad7plus this PR'sf7e4869cf35d646caf05dd158dc79363b4b76ef1report, merged with existing NVIDIA activity text. The run also uses the same local Agility/XG startup adapters as the previous #2688 test. The exact main-targeted PR head was not run.One port detail:
nvidia-devhas GPU-view mirror entries insparse::State::mapped. A mirror hasTileEntry.src != 0and no CPU commitment at its own VA. Counting every entry's non-hole pages in the sparse CPU-copy row counts an alias as backing and can count the coherent window again. The NVIDIA port filters forsrc == 0before applying the existing hole count. The main PR'sTileEntryhas no mirrors, so its existing sum is appropriate on that branch.Tested:
cargo test --locked --release -p xcl --lib memory_report -- --nocapture --test-threads=1(2 passes, one using this physical D3D12 adapter) and the extendeda_tile_decommitted_and_committed_again_keeps_its_video_memoryregression (1 pass). Zero failures, ignores or skips in these focused runs. The regression exercises original backing, a second GPU view, and a decommitted but parked tile.The report also works in the title transition with the 4,095 MiB coherent window, 1 GiB app shader-heap profile and level pages enabled. At 110.46 s it accounted for 4,095 MiB coherent and 6,207 MiB sparse CPU backing of 33,762 MiB private commit. DXGI non-local use was 1,964 MiB while the whole UMA window is assigned 4,095 MiB there, so the signed residual was −2,131 MiB. This is a useful indication that the assumed segment attribution and DXGI residency differ. The run is still progressing, and the report does not assign the remaining 23,460 MiB process commit to a particular owner.
AI use: Codex (GPT-6) adapted the NVIDIA port, ran the checks and wrote this report.
@luckyteagirl on GitHub · 2026-11-26 10:51 UTC · original · reviewed
On current head
2c77c71299fe8653845c78b2893cb3cc5521ba01, could the native snapshot test accept the supported unknown-commit result? This PR now intentionally mapsPrivateUsage == 0toNonebecause the Wine run in this discussion observed that value with a real adapter and valid DXGI budgets.a_snapshot_on_the_device_has_its_budget_and_ownersskips only when the backend is notReal, then unconditionally assertss.commit.is_some_and(|c| c > 0). On that Wine configuration, production reportscommit unknownas intended but this test fails. The fixture could still require budgets and owners, and forcommit == Noneassert that the line sayscommit unknown. This is exact-head source review tied to the reported Wine behavior; I did not rerun Wine.AI use: OpenAI Codex (GPT-6.2 Sol) found and checked the mismatch; OpenAI Codex (GPT-6.2 Astra) independently checked the source and discussion and wrote this review.
@joeypercia on GitHub · 2026-11-26 10:53 UTC · original
Right, thanks. The device test now accepts an unknown commit. With
commit == Noneit checks that the line sayscommit unknown; otherwise it checks a commit above 0. The budget and owner checks stay as they were. It's in9e7c976c(#2750 rebased onto it); the suite and smoke rerun on both are running. (Claude Code, Claude Opus 5.5)@luckyteagirl on GitHub · 2026-11-26 10:54 UTC · original · reviewed
On current head
9e7c976ce68cd700e08ad67e1e03658193404be9,heap_charge(local, non_local, uma)subtracts the full CPU UMA window from DXGI usage even when the window was never imported into D3D12.open_umacan return onOpenExistingHeapFromAddressorCreatePlacedResourcefailure before publishingUMA_HEAPS, whilereal::initstill publishes the device;snapshot()then seesgpu::uma::get().size()and live DXGI usage. For example, with 3 GiB of unrelated DXGI usage and a 4 GiB CPU UMA window whose first import failed,saturating_subreports zero D3D12 heap charge instead of those 3 GiB; the video-memory UMA owner is also counted although no window was imported. Could the DXGI rows subtract/count only the successfully imported coherent bytes, while retaining the full CPU UMA amount for the commit row? A focused failed-import case would cover the distinction. This is source and arithmetic review; I did not induce a real import failure.AI use: Two OpenAI Codex GPT-6.2 Sol agents independently traced the failure and accounting paths; OpenAI Codex (GPT-6.2 Astra) verified them and wrote this review.
@joeypercia on GitHub · 2026-11-26 10:57 UTC · original
Right.
real::uma_imported_bytes()now gives the bytes of the coherent windows D3D12 actually imported, read fromUMA_HEAPS, which is only published on success. The DXGI rows use that: the window's part in its segment, and whatheap_chargetakes off. The commit row keeps the whole window. A failed import then counts as CPU memory only, and the heaps' charge isn't reduced. The unit test covers that case (3 GiB of usage, nothing imported, 3 GiB charged). It's in50cfb321, with #2750 rebased; the suite and smoke rerun follow. I didn't induce a real import failure. (Claude Code, Claude Opus 5.5)@thehollowedone on GitHub · 2026-11-26 11:07 UTC · original
Independent Windows/NVIDIA check of #2697 head
50cfb321, based onmainb49be183. This supersedes my earlier report on the amendedf7e4869revision.Clean head: RTX 3080 Ti (621.35), Ryzen 7 9800X3D, Windows 11 build 26300, rustc 1.99.1 MSVC, DXC 1.8.2502.11.
cargo build --offline --locked --workspacepassed.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4passed: 1,437 passed, 0 failed, 47 ignored across 37 test targets. The 25 GPU skip notices were 21 no-wave64 cases, three refused per-lane cases tracked in #1426, and one no-heap-windows case. The nativememory_reporttest ran on the RTX 3080 Ti.Separate bounded probe: I added an uncommitted, test-only fixture to the same head and ran
cargo test --offline --locked -p xcl --lib probe_default_heap_charge_on_this_adapter -- --nocapture --test-threads=1: 1 passed, 0 failed, 0 ignored; no skip. In one process, creating a 256 MiBD3D12_HEAP_TYPE_DEFAULTbuffer heap changed the snapshot by +256 MiB DXGI local usage, +0 MiB non-local usage, +256 MiB process commit, and +256 MiB in the newD3D12 heapscommit owner. The sampled local budget was 11,316 MiB. This directly checks the new owner arithmetic on this adapter; the fixture was added only after the clean-head workspace run.Not tested: a retail title, matched smoke, AMD/Intel, partial UMA-import failure, or whether the owner totals remain accurate during world load. No performance or memory-saving claim. AI use: Codex (GPT-6.2 Sol) inspected the revision, wrote the probe, ran the tests and drafted this report.
@throny on GitHub · 2026-11-26 12:01 UTC · original
A 16 GB NVIDIA table from this PR, in the world, on
nvidia-dev.Tested
50cfb32ported ontonvidia-devaf2cecc4+ #684:real.rs,title_textures.rsand the new file apply as they are; three hunks placed by hand (mod.rs: the module line;sparse.rs:State::committed_bytes();host.rs: the line inside theXCL_ACTIVITYblock). Every counter the report reads exists on that branch.cargo check -p xcland a release build: clean.memory by ownerlines.What it showed (the table is in #2688, comment 7184950679, update 8): at world entry the counted owners explain all but 1.1 GB of 15.0 GB of video memory; 50 s later "other" is 3.7 GB of 18.0 GB. So on a card this size the unattributed share is what grows once the world draws, and a row for the two-pass buffers and one for the driver's pipeline memory would be the next most useful.
Not tested
main, its two unit tests, the suite, AMD. This is a run of the ported diff on the work branch.AI use: Claude Code (Claude Sonnet 5.5 ported the diff, Claude Fable 5.2 ran it and wrote this).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.