Let bindless draws take the cheap check once the frame's rechecks are spent #61
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by romainhedouin on 2026-11-25T13:14:42Z.
Bindless 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
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by romainhedouin on 2026-11-26T22:24:45Z.
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