GPU: avoid fully sorting due texture queues #733
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by user2949 on 2026-11-25T05:52:01Z.
Why
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
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.