Texture read-backs: buffers kept by size and used again (VICTORY_TEXBACK_POOL=1) #371
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound!371
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-371"
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?
@yagizakkaya01 on GitHub · 2026-12-01 19:36 UTC · original
yagizakkaya01:pr/texback→main· +42 −2 · 2 files · 1 commits · closed without mergingRequested by yağız akkaya · project thread
For #361.
Every texture copied back into title memory (the water maps) made a new committed read-back buffer on a list thread and dropped it after landing, about 13 a frame. With
VICTORY_TEXBACK_POOL=1the buffers are kept by size (at most 64) and used again once their list has run. Off by default.Machine 1: RTX 4070 Laptop 8 GB, Ryzen 9 7940HS 8C/16T, 32 GB. Series S, DLSS Performance, 30 fps. Same street, standing still, medians after minute 4.
CreateCommittedResourcefromtexback::record) was ~11% of the list threads' CPU.list calls translated … in … ms): 9.1 → 8.0 µs. This run also hadSPARE_MOST_MB=512, your two later commits and atarget-cpu=nativebuild, and it was night in game, so it is not this change alone.preparing per frame: 52 → 68 ms on that night run (heavier scene: GPU busy 55 → 73%).Machine 2: RTX 4060 Ti 16 GB desktop. Series S, DLSS Performance, FG on. Free play, whole-session medians, all four changes plus
WIDE 4, THIN 5, UNDER 4, VIEW 4, LAND 2against the release defaults:A clean A/B of this switch alone (same build, only
TEXBACK_POOLchanged) is still to come. I'll add it here.🤖 Generated with Claude Code
@readmet3xt-lab on GitHub · 2026-12-01 21:09 UTC · original
Thank you. A read-back buffer pool doing the same job is already in the build and on by default (
VICTORY_READBACK_POOL, from #116), so we won't take this one as well. If your numbers show a case the existing pool misses, please tell us here.@yagizakkaya01 on GitHub · 2026-12-01 21:47 UTC · original
Thanks, that makes sense. I checked #116: it does the same as mine (same keying by size, same limit, returned after the list has run), and my ~13 buffers a frame were measured on v0.8.2, before it. I found no case it misses, so I'm closing this one.
Pull request closed