Keep texture retry deadlines when card room returns #81

Manually merged
github merged 1 commit from gh-pr/81/head into gh-pr/81/base 2026-11-27 00:41:36 +00:00
Owner

@⁠cxy0072019-sketch on GitHub · 2026-11-26 22:55 UTC · original
cxy0072019-sketch:codex/texture-card-hold-retry → main · +41 −3 · 1 files · 1 commits · merged 2026-11-26 23:13 UTC

Summary

A texture slot can become due while it is held for card space. The next refresh can schedule a memory retry, a partial upload retry, or a fingerprint recheck. If the old card-space hold remains, TextureQueue::room makes that slot due as soon as the card has room, overriding the new deadline.

Clear the hold for the same descriptor write when any of those three retry paths schedules a new deadline. This adapts the texture queue change from Cool Fox ebf9299d.

Verification

  • The regression test fails on base 23eeb84. Returning card space wakes all four slots. The expected count is one.
  • With the change, the space hold wakes immediately and the other three slots keep their retry frames. The new regression test and both existing texture queue ordering and hold tests pass in the Windows release build.
  • The test exercises queue behavior under a simulated card-space hold.
**@⁠cxy0072019-sketch** on GitHub · 2026-11-26 22:55 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/81) `cxy0072019-sketch:codex/texture-card-hold-retry` → `main` · +41 −3 · 1 files · 1 commits · merged 2026-11-26 23:13 UTC ## Summary A texture slot can become due while it is held for card space. The next refresh can schedule a memory retry, a partial upload retry, or a fingerprint recheck. If the old card-space hold remains, `TextureQueue::room` makes that slot due as soon as the card has room, overriding the new deadline. Clear the hold for the same descriptor write when any of those three retry paths schedules a new deadline. This adapts the texture queue change from [Cool Fox `ebf9299d`](https://github.com/DoubleGhosty/cool_fox/commit/ebf9299d9222caeae9f83b33183b9653f7265e81). ## Verification - The regression test fails on base `23eeb84`. Returning card space wakes all four slots. The expected count is one. - With the change, the space hold wakes immediately and the other three slots keep their retry frames. The new regression test and both existing texture queue ordering and hold tests pass in the Windows release build. - The test exercises queue behavior under a simulated card-space hold.
Adapt the texture-queue fix from DoubleGhosty/cool_fox@ebf9299d. Cover all three retry paths with a regression test on Vice-Tay.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:41:34 +00:00
github manually merged commit 8cbd5cb2a1 into gh-pr/81/base 2026-11-27 00:41:36 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-26 23:17 UTC · original

Thanks for isolating the stale card-space hold and adding the later case to the regression test. The Windows checks passed and this is now on main. Returning card space wakes the slot that is still held and preserves the deadlines for the three rescheduled slots.

**@⁠TaynanGT** on GitHub · 2026-11-26 23:17 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/81#issuecomment-7205419297) Thanks for isolating the stale card-space hold and adding the `later` case to the regression test. The Windows checks passed and this is now on `main`. Returning card space wakes the slot that is still held and preserves the deadlines for the three rescheduled slots.
This discussion has been locked. Commenting is limited to contributors.
No description provided.