Reduce bindless texture queue selection time #221
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by venglov on 2026-11-24T22:48:14Z.
The 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.
Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T22:48:27Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.