Distinguish local GPU usage, OS budget and dedicated capacity in the HUD #348

Manually merged
github merged 2 commits from gh-pr/348/head into gh-pr/348/base 2026-11-27 00:58:10 +00:00
Owner

@⁠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 UTC

The 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 displays 0.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 labeled COMMIT. 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.

Adapter Local process usage Local OS budget Adapter-reported dedicated capacity Shared process usage
GeForce RTX 3070 0.0 GiB 6.7 GiB 7.8 GiB 0.0 GiB
Intel UHD Graphics 630 0.0 GiB 15.2 GiB 0.1 GiB 0.0 GiB

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-gpu diagnostics library passed cargo 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 was cargo 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.

memory-hud-synthetic
**@⁠ANDREANIADS** on GitHub · 2026-11-26 21:30 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/348) `ANDREANIADS:fix-dxgi-panel-memory` → `a-publier` · +123 −88 · 2 files · 2 commits · merged 2026-11-26 22:30 UTC The 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 displays `0.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 labeled `COMMIT`. 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. | Adapter | Local process usage | Local OS budget | Adapter-reported dedicated capacity | Shared process usage | |---|---:|---:|---:|---:| | GeForce RTX 3070 | 0.0 GiB | 6.7 GiB | 7.8 GiB | 0.0 GiB | | Intel UHD Graphics 630 | 0.0 GiB | 15.2 GiB | 0.1 GiB | 0.0 GiB | 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-gpu` diagnostics library passed `cargo 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 was `cargo 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. <img width="1140" height="434" alt="memory-hud-synthetic" src="https://github.com/user-attachments/assets/e57cab1e-df74-463e-b1e6-8ed64af763de" />
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:58:09 +00:00
github manually merged commit 2f5aa980da into gh-pr/348/base 2026-11-27 00:58:10 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.