Distinguish local GPU usage, OS budget and dedicated capacity in the HUD #348
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!348
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/348/head"
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?
@ANDREANIADS on GitHub · 2026-11-26 21:30 UTC · original
ANDREANIADS:fix-dxgi-panel-memory→a-publier· +123 −88 · 2 files · 2 commits · merged 2026-11-26 22:30 UTCThe VRAM row used to show a pair such as
0.0/6.7 GB. Its denominator is the DXGI budget for this process, which varies independently of the adapter's dedicated capacity. An unsuccessful query for either segment also made all three values appear to be zero.The panel now shows local usage and the OS budget on one line, and adapter-reported dedicated capacity and non-local usage on a second line. A missing reading displays
N/A, while a measured zero still displays0.0. The labels use GiB for the binary conversion. The existing budget warning still compares usage to the budget. The process's private committed memory is labeledCOMMIT. These are reporting changes; the runtime’s allocation and eviction decisions are unchanged.Hardware readings
I ran the panel's DXGI queries on two physical adapters in one idle process. The figures below illustrate why a budget cannot stand in for capacity. They are rounded to the HUD's precision and can vary between samples.
An isolated Windows harness passed 6/6 tests, including missing samples, real zero, adapter selection, raw DXGI sampling and the HUD bitmap. The full
victory-gpudiagnostics library passedcargo check. All 5 panel tests passed inside the real crate (0 failed, 0 ignored, 467 unrelated library tests filtered), including the two new regressions. The test filter wascargo test -p victory-gpu --lib --features diagnostics -- host::panel::tests --nocapture --test-threads=1. I used rustc 1.98.0 MSVC with the available offline dependency versions. The repository pins 1.98.1. This PR changes only the two Rust source files.Synthetic HUD preview
Both sides below use the existing panel test's synthetic snapshot. The numbers in the preview are fixture inputs.