Log memory budgets at GPU buffer allocation failures #4879

Open
github-bot wants to merge 1 commit from github-bot/gh-4878 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 12:34 UTC · original
andrewpozdnakov7-jpg:codex/diagnostics-4844-buffer-oom → main · +37 −3 · 2 files · 1 commits · draft

Refs #4845

What it changes

A terminal E_OUTOFMEMORY from an upload or shared GPU buffer now records local and non-local DXGI usage and budgets, available RAM, and available commit when those counters can be read. The two failure paths share one sample per second. The existing warnings, retry behavior, and allocation policy are preserved.

The courtyard trace reached 99–103% of the non-local budget with 77 MiB of physical memory free. It needed VICTORY_MEMORY_TRACE=1 to collect those counters. The new sample captures them at the refusal in an ordinary play log.

How it was tested

  • Windows synthetic harness compiled the exact diagnostic method with Rust and tracing. The first shared-buffer refusal captured all six counters. It skipped 999 upload refusals within the same second. Eight simultaneous failures at the next interval emitted one sample and queried each source once. Other HRESULTs and unavailable counters were covered.
  • Staged asset policy passed for both changed files. No game run or forced driver allocation failure was performed.
  • The Windows check on this draft reported the same five Clippy findings as clean main. The fix for those findings is #4708.

Checked for overlap

  • Searched open and closed reports and PRs, and reviewed open changes to the affected files. #3869 adds per-heap live-buffer counts, #4871 changes how the existing OOM retry drains its idle buffers, and #4806 covers command-list Close() diagnostics. The new sample is tied to the buffer allocation refusal.

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 12:34 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4878) `andrewpozdnakov7-jpg:codex/diagnostics-4844-buffer-oom` → `main` · +37 −3 · 2 files · 1 commits · draft Refs #4845 ## What it changes A terminal `E_OUTOFMEMORY` from an upload or shared GPU buffer now records local and non-local DXGI usage and budgets, available RAM, and available commit when those counters can be read. The two failure paths share one sample per second. The existing warnings, retry behavior, and allocation policy are preserved. The [courtyard trace](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/4845) reached 99–103% of the non-local budget with 77 MiB of physical memory free. It needed `VICTORY_MEMORY_TRACE=1` to collect those counters. The new sample captures them at the refusal in an ordinary play log. ## How it was tested - Windows synthetic harness compiled the exact diagnostic method with Rust and `tracing`. The first shared-buffer refusal captured all six counters. It skipped 999 upload refusals within the same second. Eight simultaneous failures at the next interval emitted one sample and queried each source once. Other HRESULTs and unavailable counters were covered. - Staged asset policy passed for both changed files. No game run or forced driver allocation failure was performed. - [The Windows check on this draft](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46647549770/job/142642707147) reported the same five Clippy findings as [clean main](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46563306780/job/142355972539). The fix for those findings is #4708. ## Checked for overlap - [x] Searched open and closed reports and PRs, and reviewed open changes to the affected files. #3869 adds per-heap live-buffer counts, #4871 changes how the existing OOM retry drains its idle buffers, and #4806 covers command-list `Close()` diagnostics. The new sample is tied to the buffer allocation refusal. AI-assisted with OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 12:37:35 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/4879/head:github-bot/gh-4878'
git switch 'github-bot/gh-4878'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4878'
git switch 'github-bot/gh-4878'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4878'
git switch 'github-bot/gh-4878'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4878'
git switch 'main'
git merge --squash 'github-bot/gh-4878'
git switch 'main'
git merge --ff-only 'github-bot/gh-4878'
git switch 'main'
git merge 'github-bot/gh-4878'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4879
No description provided.