Activity: the local video memory budget, and a warning within XCL_VRAM_HEADROOM_MB of it #1515
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!1515
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1515"
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?
@oishigeso on GitHub · 2026-11-24 17:10 UTC · original
oishigeso:vram-budget-log→main· +20 −5 · 2 files · 1 commits · draftThe activity memory line showed local video memory in use but not the budget DXGI gives the process, so going past it (the driver then moves resources to system memory, and frames slow down) did not show. The line now carries
(budget N MB), and a warning is logged, at most once a minute, when use comes withinXCL_VRAM_HEADROOM_MB(default 1024) of the budget. Related: #646.What is in it
crates/xcl/src/host.rs: the budget in the memory line, the warningcrates/xcl/src/hle/d3d12x/real.rs:video_memoryalso returns the local budget (DXGI_QUERY_VIDEO_MEMORY_INFO::Budget)Tested
Regression run
main:
PR (this PR's head commit; the title is run through a folder named RetailTitle):
Not tested
AI use
🤖 Generated with Claude Code
@DavidM1911 on GitHub · 2026-11-24 18:53 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@rrrarrra9 on GitHub · 2026-11-24 19:31 UTC · original
A second data point for the budget field from a Windows GTX 1650 (4 GB). With local logging at e1c920e6c5b759e06ea2d9e26c6b78fdd0cfab58 (based on
b7aa9f3), the DXGI local budget was 3,344 MiB while sampled local usage reached 13,876 MiB shortly before 0x887a0005. The same sample showed 4,969 MiB non-local usage against a 15,289 MiB non-local budget. Logging both segment budgets helped compare the runs in #1702, which moved texture heaps to system memory.Not tested This PR head and its warning threshold. These measurements come from the independent local logging build.
AI use OpenAI Codex with GPT-6.2-Sol summarized the local logs.
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.