Use one DXGI sample for VRAM budget diagnostics #384

Closed
github-bot wants to merge 0 commits from github-bot/gh-384 into main AGit
Owner

@⁠Excaliburcccc on GitHub · 2026-12-01 21:08 UTC · original
Excaliburcccc:perf/reuse-dxgi-budget-snapshot → main · +27 −35 · 2 files · 72 commits · closed without merging

Use the same local and non-local DXGI memory sample for the budget-change message and its detailed breakdown. Previously the breakdown queried the adapter again, so the two lines could disagree about the budget that triggered the event. The diagnostics build now also derives the periodic memory summary and its detailed log from the same query pair. The configured VRAM cap applies to the value returned to callers. The detailed line reports the raw system budget.

On Windows with an RTX 5080, I replayed the same startup into the game world at 2560×1440, DLSS Quality, frame generation off. Both gameplay builds included #378. On the baseline, 611 of 1,420 unambiguously paired budget reports disagreed, by up to 1,298 MiB. With this change, all 1,500 unambiguous pairs matched across 1,546 budget-change events. Overlapping reports from different threads were excluded from both comparisons. Each successful budget-change event now uses two DXGI calls instead of four.

The candidate reached the game world and exited with status 0, with 4,255 DLSS evaluations and no device-removal error. Four existing VRAM budget and residency tests passed with the diagnostics feature enabled.

**@⁠Excaliburcccc** on GitHub · 2026-12-01 21:08 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/384) `Excaliburcccc:perf/reuse-dxgi-budget-snapshot` → `main` · +27 −35 · 2 files · 72 commits · closed without merging Use the same local and non-local DXGI memory sample for the budget-change message and its detailed breakdown. Previously the breakdown queried the adapter again, so the two lines could disagree about the budget that triggered the event. The diagnostics build now also derives the periodic memory summary and its detailed log from the same query pair. The configured VRAM cap applies to the value returned to callers. The detailed line reports the raw system budget. On Windows with an RTX 5080, I replayed the same startup into the game world at 2560×1440, DLSS Quality, frame generation off. Both gameplay builds included #378. On the baseline, 611 of 1,420 unambiguously paired budget reports disagreed, by up to 1,298 MiB. With this change, all 1,500 unambiguous pairs matched across 1,546 budget-change events. Overlapping reports from different threads were excluded from both comparisons. Each successful budget-change event now uses two DXGI calls instead of four. The candidate reached the game world and exited with status 0, with 4,255 DLSS evaluations and no device-removal error. Four existing VRAM budget and residency tests passed with the diagnostics feature enabled.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 21:13:11 +00:00
github-bot closed this pull request 2026-12-02 07:54:25 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.