perf(gpu): deduplicate and parallelize texture readback landing across flight lists #4683
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!4683
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4682"
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?
@YounesAH15 on GitHub · 2026-12-01 01:42 UTC · original
YounesAH15:perf/cpu-wall-copyback→main· +112 −8 · 2 files · 1 commits · openSummary
Part of #2415 (CPU wall): deduplicates superseded full-overwrite texture readbacks within a completed flight and parallelizes mutually disjoint
texback::landwork across the existingvictory-landthread pool.Changes
crates/victory-gpu/src/texback.rs:TICKETSfromMutextoRwLock(write()intrack/invalidate,read()inland) so concurrentlandcalls do not serialize on the ticket list while still excluding allocation invalidation.keep_latest_full_overwrites,ranges_disjoint, andland_batch(backs: &[Back])to drop earlier entries superseded by a later valid full-overwrite of the exact same(at, end)range and run mutually disjoint readbacks in parallel viacrate::land::each.keep_latest_full_overwrites_drops_superseded_duplicatesandranges_disjoint_detects_overlaps.crates/victory-gpu/src/host.rs:read_back_rowsout ofread_backsand batchedtexture_backsacrossflight.orderinLate::Runviatexback::land_batch, recycling them immediately afterward.Verification
cargo test -p victory-gpu texback— 8 passed, 0 failed (includinggpu_texback_and_read_backs_bit_exact_and_pool_benchmarkand the 2 new unit tests), 0 new compiler warnings.raw view clamp: [0, 0, 0, 0],binds dropped: 0.00/frame). Note: when a scene's readbacks are spread 1 per flight across separateLate::Runitems, per-flight batching is a no-op; the win applies whenever a single flight or list accumulates >=2 texture readbacks.099ef02d93to2575e99c78@tillo88 on GitHub · 2026-12-01 12:07 UTC · original
I queued this PR on my replay bench, but it does not merge on top of v2026.11.30.03, the latest release (merge conflict), so there are no numbers from it yet. I'll try again on the next release.
Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.