perf(gpu): bound small-texture growth work per pass #4746
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!4746
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4745"
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-12-01 04:45 UTC · original
v8816:perf/bound-small-texture-growth→main· +83 −57 · 1 files · 1 commits · closed without mergingProblem
The small-texture upgrade pass runs while recording a frame. Once it has exhausted its byte budget, it still takes and walks the entire pending queue under the texture-table lock. One Series S session on an RTX 4060 Ti had 47,345 pending upgrades.
Change
Take a window of at most 512 entries per call and stop visiting it as soon as the byte budget is spent. Leave the unvisited entries in front of newer arrivals, and retry entries whose resource lock was busy at the back. The existing upgrade byte budget and texture-residency rules stay in effect.
Validation
@trustno1-coder on GitHub · 2026-12-01 18:33 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