Let bindless draws take the cheap check once the frame's rechecks are spent #61
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/Belobug--VIctory-Belobug-AMD!61
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-61"
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?
@romainhedouin on GitHub · 2026-11-25 13:14 UTC · original
romainhedouin:perf/bindless-recheck-early-return→main· +10 −1 · 1 files · 1 commits · closed without mergingBindless draws start with a cheap check ("anything to do for this heap?") and return at once when there is nothing. One of its conditions is the frame at which queued texture rechecks are next due. Once a frame's recheck quota (32) was used up, that value was still set to a due frame (≤ the current one), so the cheap check never passed again for the rest of the frame: every later bindless draw took the recording flag, read the clock twice and tried the heap's lock, only to find it could not recheck anything. Now, when the quota is spent, the next due frame is set to the next frame. Which textures are rechecked, and when, is unchanged.
The model is a standalone re-implementation of this state machine; over 300 frames and 12 configurations it gave identical uploads, rechecks and queues for the old and new code. Type-checked for Windows (
cargo clippy --target x86_64-pc-windows-msvc, with and without--all-features, no new warnings); not run.Separate finding, not changed here: the recheck pop loop can pop more entries than the remaining quota, and the extra ones are dropped without being re-queued (
descriptor/host.rs~1439 and ~1579), so such a texture is not rechecked again until a slot reaches it or it is rewritten.🤖 Generated with Claude Code
@romainhedouin on GitHub · 2026-11-26 22:24 UTC · original
Closing: the recheck quota this PR fixed (
recheck_at,RECHECKS) doesn't exist ona-publier, whose texture queue is a different design (texture_slots_due, descriptor/host.rs:1939).Pull request closed