Avoid unnecessary first-upload pool scans and report the VRAM reserve #4769

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

@⁠v8816 on GitHub · 2026-12-01 06:41 UTC · original
v8816:perf/first-upload-reserve-diagnostics → main · +57 −38 · 2 files · 1 commits · closed without merging

What changed

First-upload admission now probes the texture pool for a reusable range only when the whole-card check actually depends on reuse. A request accepted by normal room, rejected by a stricter ceiling, or too large for aggregate free space can be decided without a range scan. The existing byte thresholds and accepted requests stay the same.

The frame-rate log reports the dynamic VRAM reserve separately from the explicit texture budget. One local Series S run on an 8 GiB card reported about 70,000 first-upload refusals in the explicit-limit bucket with no explicit texture budget configured. The new counter makes it possible to measure the reserve's effect without guessing from that bucket.

Verification

  • Ran the 11 first-upload unit tests, including the new check that the range probe runs only when it can affect the decision.
  • Compared old and new whole-card decisions over 32,768 combinations, including zero and saturating arithmetic boundaries.
  • The two staged source files passed the asset-policy check.

The change has unit coverage. Its effect on gameplay FPS has yet to be measured with a matched run.

**@⁠v8816** on GitHub · 2026-12-01 06:41 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4768) `v8816:perf/first-upload-reserve-diagnostics` → `main` · +57 −38 · 2 files · 1 commits · closed without merging ## What changed First-upload admission now probes the texture pool for a reusable range only when the whole-card check actually depends on reuse. A request accepted by normal room, rejected by a stricter ceiling, or too large for aggregate free space can be decided without a range scan. The existing byte thresholds and accepted requests stay the same. The frame-rate log reports the dynamic VRAM reserve separately from the explicit texture budget. One local Series S run on an 8 GiB card reported about 70,000 first-upload refusals in the explicit-limit bucket with no explicit texture budget configured. The new counter makes it possible to measure the reserve's effect without guessing from that bucket. ## Verification - Ran the 11 first-upload unit tests, including the new check that the range probe runs only when it can affect the decision. - Compared old and new whole-card decisions over 32,768 combinations, including zero and saturating arithmetic boundaries. - The two staged source files passed the asset-policy check. The change has unit coverage. Its effect on gameplay FPS has yet to be measured with a matched run.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 06:42:52 +00:00
github-bot closed this pull request 2026-12-01 18:36:37 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:32 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:32 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4768#issuecomment-7321118453) 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!4769
No description provided.