tooling: summarize startup GPU memory budget pressure #2510
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2518"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-25T19:29:54Z.
Change
Refs #2379 and #870. Summarize the opt-in
x2w-budgetsamples in startup triage. The report counts complete samples above the local DXGI budget and shows two observations: the highest local usage-to-budget ratio and the largest retained-texture allocation. Each row keeps the budget and texture counts from that same heartbeat. Unavailable or zero budgets still contribute to the texture observation. The report copies only the aggregate fields it needs.Verification
Windows 11 x64 build 26300.10075, Python 3.12, base
bfba03c9.All passed. With the parser from
mainthe new regression check fails six assertions. The covered cases include a highest ratio reached at a lower absolute usage, a separate retention peak, unavailable and zero budgets, mirrored lines and malformed rows.I also confirmed that the CLI parsed both native heartbeat lines from the source-built indexed-draw fixture, one each on in-box WARP and RTX 4070. I temporarily held that fixture across the five-second heartbeat interval to obtain the lines and restored it afterward.
I used Codex to implement the change and ran the checks on my Windows workstation.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T19:38:45Z.
Review: COMMENTED
Review of head
aff1371c(comment only, no approval).Code: sound.
RE_GPU_BUDGETmatches the producer,report_budget()insrc/startup_stubs/d3d12_xs_device.cpp:5077(local=%s nonlocal=%splusname=live/objs+held/objsper category, thenunmeasured=).n/abudgets still feed the retained-texture peak, as the body says.Commands run in a worktree at this head (Linux):
tests/startup_triage_run_check.py: 0 failed.tests/startup_archive_requests_check.py: passed.tests/docs_links_check.pyandtests/bidi_controls_check.py: passed.git diff --check origin/main...HEAD: clean.startup_triage_run_check.pyfail (then reverted):>changed to>=for "above budget"; the ratio peak replaced by a plain usage compare.tests/startup_live_view_check.pyfails on Linux with a Windows path expectation (G:\...file opens). It fails the same way on current main, so it is not caused by this PR.Notes:
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T19:39:40Z.
Win2025 WARP receipt for head
aff1371c.Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
aff1371ce310d165d01d6ff62a4167e4dee43c21:--preset dev):cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim startup_memory_srv_census_check startup_stub_xcrdapi -- -j 2):1.37s(configure3.18s)/O2(--preset release):cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim startup_memory_srv_census_check startup_stub_xcrdapi -- -j 2):2.10s(configure3.37s)tests/startup_buffer_address_check.pyok (0.7s),tests/startup_triage_run_check.pyok (0.6s)sccache: 23/82 hits; wall19.3sAI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T19:41:11Z.
Win2025 WARP receipt for head
aff1371c.Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
aff1371ce310d165d01d6ff62a4167e4dee43c21:--preset dev):cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim startup_memory_srv_census_check startup_stub_xcrdapi -- -j 2):3.53s(configure0.00s)ctest --preset dev -R 'startup_triage_run|startup_live_view|startup_archive_requests' --parallel 2 --no-tests=error --output-on-failure): 3/3 passed (8.32s:startup_archive_requests1.17s,startup_triage_run0.67s,startup_live_view8.18s)/O2(--preset release):cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim startup_memory_srv_census_check startup_stub_xcrdapi -- -j 2):8.33s(configure0.00s)ctest --preset release -R 'startup_triage_run|startup_live_view|startup_archive_requests' --parallel 2 --no-tests=error --output-on-failure): 3/3 passed (8.14s:startup_triage_run0.45s,startup_archive_requests1.02s,startup_live_view8.02s)tests/startup_buffer_address_check.pyok (0.5s),tests/startup_triage_run_check.pyok (0.4s)sccache: 4/4 hits; wall28.7sAI-assisted; commands listed were executed locally.