perf(gpu): avoid full texture pool scans on first-upload admission #4455
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4455
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4454"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@v8816 on GitHub · 2026-11-30 20:34 UTC · original
v8816:perf/texture-pool-fit→main· +824 −849 · 33 files · 11 commits · closed without mergingProblem
When the card is at or over budget, first-upload admission computes the largest free range across both texture pools for each candidate. The earlier budget guards can settle some decisions without that scan. The remaining candidates only need to know whether a single reusable range fits.
Change
Defer the range lookup until it can affect admission, and stop at the first fitting range. Keep the existing budget limits and decision counters. A new test covers fragmented ranges, the cooldown before returned pieces become reusable, and coalescing after reclaim. The admission tests also verify that guard decisions skip the lookup.
Validation
@tikD1337 on GitHub · 2026-11-30 20:51 UTC · original
Tested headlessly on
origin/main(e1251c31, Windows 11, no game run):origin/main.cargo test -p victory-gpu --lib -- pool::tests: 31 passed, 0 failed, 3 ignored (1166 filtered).cargo test -p victory-gpu --lib -- first_upload: 10 passed, 0 failed (1190 filtered), no new warnings.(AI-assisted build/unit-test check; game runtime not launched.)
@trustno1-coder on GitHub · 2026-12-01 18:41 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.
Pull request closed