Reuse automatic texture readbacks after list retirement #27
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/DoubleGhosty--cool_fox!27
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/27/head"
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?
@rafaconvaitis on GitHub · 2026-11-26 18:05 UTC · original
rafaconvaitis:fix/reuse-fenced-texture-readbacks→main· +398 −12 · 2 files · 1 commits · closed without mergingWhat changes
Reuse the automatic texture readback destinations acquired by
texback::record. Each device keeps its own bounded set of idle readback buffers. A closed recording retains exclusive use of its destination across executions. A completed fence and list reset or retirement are required before the resource can be acquired for another recording. Buffers outside the size classes and failed rounded allocations take the original exact-size path.Enable with
VICTORY_READBACK_POOL=1. Set the idle width cap in MiB withVICTORY_READBACK_POOL_MB. The default is 256 MiB once enabled. Creation, reuse, allocation duration, active widths, idle widths, and successful landings have separate counters.This addresses the automatic path discussed in fxceless/victory-fork#1340. Marvisak/VIctory#2818 covers the explicit readback path and is a reference for list-owned lifetimes.
Validation
Boat comparison
The same Windows RTX 4070 Series S executable and checkpoint reached the bridge at the start of Follow the plane in both runs. Both runs used the async logger and loaded a warm host pipeline library. Over roughly 60 seconds, each logged 14,208 completed reads. The 128 MiB pool arm recorded 14,208 reuses and zero new allocations. The disabled arm recorded 14,200 new allocations and zero reuses. No allocation failed in either interval.
Median frame rates were 15.35 and 14.90 FPS. The draw counts and input timing differed slightly. Both captures showed the flat water, missing clouds, and a dark sun reflection. The shared visual defect still needs investigation. These results establish the lower allocation count. A reliable frame-rate comparison and a visually correct path remain open, so this PR is in draft.
fxceless/victory-fork#1359 now addresses the same class of allocation. The separate Windows live comparison and repeated-list test add validation for that approach.
@DoubleGhosty on GitHub · 2026-11-26 22:55 UTC · original
Cherry-picked onto main in commit
67028e21. Verified with workspace clippy (-D warnings) and all 6 readback/pool tests passing. Thanks @rafaconvaitis!Pull request closed