Reduce bindless texture queue selection time #221
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!221
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-221"
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?
@venglov on GitHub · 2026-11-24 22:48 UTC · original
venglov:perf/bound-texture-queue-sort→main· +114 −57 · 1 files · 1 commits · openThe bindless texture pass asks for up to 4,096 uploads at a time. With a large streaming backlog, selecting that batch used to sort every due slot and then scan the queue again for the frame counters.
This change counts slots during candidate collection and selects only the entries the pass can serve. Retries still go first in newest-write order, followed by alternating newest and oldest fresh writes. A regression checks the exact selected slots, write tokens, and counters for every cap on a mixed queue.
Measurement
Optimized Windows x64 synthetic benchmark under Wine 11.21 on Apple M1 Pro. Each figure is the median of 11 batches of 40 calls to selection and counting. Slot indices were shuffled relative to write order, and the selected entries and counters matched the baseline throughout.
The production upload pass uses the 4,096-entry call. The benchmark measures CPU queue work only. In-game frame time is unmeasured.
Verification
victory-gpulibrary tests under Wine reported 111 passed by default and 118 passed with all features, with one ignored in each run. Tests that require a supported D3D12 device may skip under Wine.victory-gpuClippy passed for the Windows MSVC target with warnings denied in both feature configurations, usingblake3/purefor cross-compilation.cargo xtask policyandgit diff --checkpassed.AI-assisted with Codex. All test and benchmark inputs are synthetic.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-24 22:48 UTC · original · edited 2026-11-24 22:50 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
5c7e9c9ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
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.