GPU: avoid fully sorting due texture queues #733
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/fxceless--victory-fork!733
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-733"
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?
@user2949 on GitHub · 2026-11-25 05:52 UTC · original
user2949:codex/texture-queue-partial-selection→main· +91 −11 · 1 files · 1 commits · openWhy
TextureQueue::duesorts every due slot, though it returns at most 4,096. The code documents backlogs of 25,000–40,000; sorting entries that cannot be served this pass adds CPU work before the upload budget starts.What changed
Partial selection preserves the existing priority and newest/oldest alternation while sorting only entries returned. A regression test compares the selection with the previous full-sort behavior across a large mixed backlog.
Reported performance
User-reported current test: about 0.5 FPS on an Intel Core i7-14700F, AMD Radeon RX 6600 XT, and 32 GB DDR5 RAM; the game remains unplayable at that speed. This is not a controlled before/after measurement, so it does not establish how much this change affects FPS.
Tested
cargo test --workspace --locked -- --test-threads=4passed on Windows.cargo clippy -p victory-gpu --all-targets --lockedpassed with existing warnings.-D warningsClippy remains blocked by existing main-branch warnings.Assisted by ChatGPT Codex (GPT-6).
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.