GPU: report ordinary texture upload room accurately #3904

Closed
github-bot wants to merge 1 commit from github-bot/gh-3904 into main AGit
Owner

@⁠Yoruiopz on GitHub · 2026-11-30 11:04 UTC · original
Yoruiopz:texture-room-log-05 → main · +104 −26 · 2 files · 1 commits · closed without merging

Related to #3829 and #3848.

What it changes

The periodic texture-room meter used a comparison of rounded memory terms to label uploads as waiting. The ordinary admission path can still admit uploads below the automatic texture floor. It can also refuse uploads near the raw DXGI budget when weighted use is below the line.

Use the exact byte counts from one meter sample, share the admission floor and raw-budget predicates, and report the ordinary upload gate with its reason. The first-upload allowance keeps its separate diagnostics. Upload and eviction policy stay the same.

How it was tested

  • Windows x64 on v2026.11.29.05.
  • The #3829 figures now report room below the floor even though weighted use exceeds the line. The tests cover one byte below the floor and the floor itself.
  • A second test checks the raw DXGI margin just below the boundary, at equality, and with the guard disabled.
  • Both new locked Windows diagnostics tests and the existing raw-budget test passed. The extracted log fixture reproduced the incorrect refusal on .05. Staged asset policy passed.

Checked for overlap

  • Checked #3848, #3631 and #3476. The change concerns the room meter's verdict and uses the existing texture-admission rules.
**@⁠Yoruiopz** on GitHub · 2026-11-30 11:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3904) `Yoruiopz:texture-room-log-05` → `main` · +104 −26 · 2 files · 1 commits · closed without merging Related to #3829 and #3848. ## What it changes The periodic texture-room meter used a comparison of rounded memory terms to label uploads as waiting. The ordinary admission path can still admit uploads below the automatic texture floor. It can also refuse uploads near the raw DXGI budget when weighted use is below the line. Use the exact byte counts from one meter sample, share the admission floor and raw-budget predicates, and report the ordinary upload gate with its reason. The first-upload allowance keeps its separate diagnostics. Upload and eviction policy stay the same. ## How it was tested - Windows x64 on v2026.11.29.05. - The #3829 figures now report room below the floor even though weighted use exceeds the line. The tests cover one byte below the floor and the floor itself. - A second test checks the raw DXGI margin just below the boundary, at equality, and with the guard disabled. - Both new locked Windows diagnostics tests and the existing raw-budget test passed. The extracted log fixture reproduced the incorrect refusal on .05. Staged asset policy passed. ## Checked for overlap - [x] Checked #3848, #3631 and #3476. The change concerns the room meter's verdict and uses the existing texture-admission rules.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 11:08:04 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-30 11:31 UTC · original

I tested a2db88a together with #3848 a9980e6, both based on 41adb551. Cherry-picking the two PRs in either order was clean and produced the same Git tree, bd16abc7d61d. The combined Windows diagnostics build ran 78 resource and pool tests successfully, including a generated integration check. Four tests were ignored.

In the #3829 example (1,238 MiB of texture copies, 6,910 MiB budget), the new meter says there is room. At one byte below the automatic floor it still says there is room, and #3848 leaves the reserves out of the eviction calculation. At the floor and one byte above, the same weighted use is over the line, so the meter says no room and #3848 counts the reserves. The separate raw-budget tests also passed.

scripts/summarize-frame-log.py still recognized the revised messages in a three-row generated log. It counted the under-floor row as admitted and both the weighted-limit and raw-budget rows as blocked.

This checks compatibility at the two current heads. The visual trade-off from the exact #3848 hardware pair is still being tracked in that PR.

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-30 11:31 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3904#issuecomment-7277159089) I tested `a2db88a` together with #3848 `a9980e6`, both based on `41adb551`. Cherry-picking the two PRs in either order was clean and produced the same Git tree, `bd16abc7d61d`. The combined Windows diagnostics build ran 78 resource and pool tests successfully, including a generated integration check. Four tests were ignored. In the #3829 example (1,238 MiB of texture copies, 6,910 MiB budget), the new meter says there is room. At one byte below the automatic floor it still says there is room, and #3848 leaves the reserves out of the eviction calculation. At the floor and one byte above, the same weighted use is over the line, so the meter says no room and #3848 counts the reserves. The separate raw-budget tests also passed. `scripts/summarize-frame-log.py` still recognized the revised messages in a three-row generated log. It counted the under-floor row as admitted and both the weighted-limit and raw-budget rows as blocked. This checks compatibility at the two current heads. The visual trade-off from the exact #3848 hardware pair is still being tracked in that PR. AI-assisted with OpenAI Codex.
github-bot closed this pull request 2026-12-01 18:51:01 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:47 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3904#issuecomment-7321565307) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

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!3904
No description provided.