Credit the texture budget only for reusable pool ranges #1436
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!1436
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1436"
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?
@ghptc on GitHub · 2026-11-28 19:51 UTC · original
ghptc:fix/texture-pool-budget-credit-current→main· +59 −5 · 1 files · 1 commits · merged 2026-11-29 00:24 UTCTexture budget credit
This replaces #1214 on current
main(923e38cc), as requested after the original branch conflicted. The current budget calculation subtracts live COM-owned bytes from retained block capacity. Final release removes bytes fromHELDimmediately. The allocator returns the range after its 2,500 ms rest, so the budget can credit space that placement still cannot reuse. A failed placement can also leave a resting reservation without creating a live COM owner. Maintainer request on #1214Track reusable bytes under the pool lock that protects the free ranges. Successful cuts debit the range, block insertion credits its capacity, reclaim credits matured ranges, and trimming debits the removed block. This covers current main's block creation outside the pool lock, make-ahead path, and ripe or oldest-block cuts. The live-resource telemetry remains separate.
Evidence
923e38ccreproduced the old budget credit of 64 MiB with only 48 MiB in free ranges. The independent free-range census measured the difference.Run the retained regression from a Windows shell.