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

Closed
v8816 wants to merge 1 commit from upstream-pr/4768 into main
v8816 commented 2026-12-01 06:41:01 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by v8816 on 2026-12-01T06:41:01Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5580519522 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4768). Originally posted by [v8816](https://github.com/v8816) on 2026-12-01T06:41:01Z. --- ## 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.
trustno1-coder commented 2026-12-01 18:32:50 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:32:50Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321118453 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4768#issuecomment-7321118453). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-12-01T18:32:50Z. --- 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

Sign in to join this conversation.
No reviewers
No labels
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.

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