perf(victory-gpu): optimize tile heap free-run tracking with VecDeque and in-place coalescing #414
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!414
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-414"
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?
@Lewandox on GitHub · 2026-11-26 17:57 UTC · original
Lewandox:perf/victory-gpu-merge-and-tiles→main· +173 −48 · 2 files · 1 commits · closed without mergingSummary
Rebased onto the
#409combined base (dropping themerge.rsportion, asmerge.rswas removed in#409).Optimizes
victory-gpu/src/tiles.rsfree-run tracking for levels-on-demand tile heaps:Vec<(u32, u32)>+h.free.remove(0)(O(n) shift on every exhausted run) with aFreeRunswrapper backed byVecDeque<(u32, u32)>for O(1)pop_front().free_tilesincrementally insideFreeRunsontake()andgive_back()(eliminating the O(n).iter().map(...).sum()rescan ingive_back()).make_contiguous()+sort_unstable()+ two-pointer compaction without allocating a temporaryVecon everygive_back().tiles::tests::free_runs_tracks_count_and_coalesces_in_placecovering fragmentation, multi-runtake, O(1) count tracking, and full coalescing.Verification
cargo test -p victory-gpu tiles::tests(default and--features diagnostics)484dab3243to59556ce87eperf(victory-gpu): reuse merge plan buffers and optimize tile free-run trackingto perf(victory-gpu): optimize tile heap free-run tracking with VecDeque and in-place coalescing59556ce87etoeaec92e6a0eaec92e6a0to3b368a6cae@LooperSalty on GitHub · 2026-11-26 23:09 UTC · original
Closing after #454 moved
third_party/victoryto the Vice-Tay base (TaynanGT/Vice-Tay a252348).The file does not apply to the new base any more, and the change came without a measurement (rule 2 of AGENTS.md asks for one for performance work).
Thanks for the work. If you measure a gain on the new base, a new PR against
mainis welcome.🤖 Closed by Claude Code on behalf of the maintainer
Pull request closed