WIP: Serve returned textures among unchecked retries #629

Draft
holoslicer wants to merge 1 commit from holoslicer/Darner:fix/bounded-overdue-texture-service into Main
Contributor

Tested offline on Windows x64. Gameplay A/B for this revision is pending.

Contributor role (optional)

  • Fluxer ID: 1577921940104949761. Please grant the Contributor role when eligible.

What it changes

Previously streamed-out texture slots whose backing returns go back into the retry list. The ordinary retry order can repeatedly place slots still missing their backing ahead of the returned slot. On main, one returned slot waited through 120 short passes even with no further writes arriving.

Remember the oldest returned slot awaiting its first look. Give it one ordinary unchecked retry position in the existing selection. Checked reservations, marked textures and the pass's work limits keep their current behavior. An unsuccessful first look returns the entry to normal retry ordering.

How it was tested

  • Revision: 59c47077f0784325b0bd251dfe5f4fbc846fedfb, based on c8258f95569c10fe75b5bfb785d3865b5deeefd9.
  • Seed 256 slots whose backing is absent and one previously streamed-out slot whose backing has returned. Run the actual queue with backoff capped at 16 frames and a selector limit of 4,096. For a one-entry service budget, repeat for 120 passes.
Offline result Main Candidate
First service for the returned slot Still waiting after 120 passes First productive pass
  • Two focused native tests passed. They cover flat and indexed queues, zero/one/two/eight serviced entries, stale completion, checked reservations and marked priority. The four-source comparison exercised main, #528, this branch and a local composition with #528. Both unpatched arms left the returned slot waiting through 120 passes. Both patched arms served it on their first productive pass. A zero service budget did zero work in all four arms.
  • Seven alternating measurements of the ordinary selector with no returned textures gave roughly 513 ns per call on both versions with 32 entries. With 8,192 entries and a selection limit of 64 the medians were 112.3 and 110.0 µs. At a limit of 4,096 the medians were 196.2 and 202.6 µs, with overlapping ranges. Neither a consistent speed gain nor a change in total service budget was established.
  • Both strict workspace Clippy gates passed. A local composition with #628 on the #547/#551 player sources passed seven integration checks, including remaps and alias writes into a full queue. The change affects ordinary retry ordering. In-game texture loading, appearance and pacing still need a matched gameplay A/B.
  • The asset check accepted 576 files. The serial workspace test attempt exited 101. Completed targets reported 2,950 passed, four failed and 105 ignored. Three loopback tests lacked host access. The existing nested worker-pool test hit the owner-unwind assertion tracked in #539 and #549. The separate, unchanged shader test binary was interrupted to avoid running the same exhaustive oracle on three branches. A complete host rerun of the same GPU test binary passed 1,825 tests with 81 ignored. The complete HLE test binary passed 509 with 15 ignored. Gameplay A/B and a single green workspace invocation remain outstanding.

Checklist

  • Gameplay A/B, pending.
  • One change based on main.
  • Diff follows the asset policy.
  • Dependencies recorded. Depends on none.

Checked for overlap

  • Searched open and closed issues and PRs and the files changed by open PRs.
  • #528 prioritizes fresh writes over speculative fingerprint rechecks. Its current revision 326b1799 still leaves a returned slot among unchecked retries. Offline comparison on #528.
  • The branches touch the same retry ordering. If #528 merges first, adapt this change to #528's unchecked retry group and rerun the combined regression. That arrangement passed the four-source comparison above.
  • #618 reports a different condition, an upload pass stopping after allocation failure. #620 retires held records. Other open changes touching descriptor/host.rs include #292, #335, #380, #508, #539, #547, #561, #563, #565, #597–601 and #615.
Tested offline on Windows x64. Gameplay A/B for this revision is pending. ## Contributor role (optional) - Fluxer ID: 1577921940104949761. Please grant the Contributor role when eligible. ## What it changes Previously streamed-out texture slots whose backing returns go back into the retry list. The ordinary retry order can repeatedly place slots still missing their backing ahead of the returned slot. On main, one returned slot waited through 120 short passes even with no further writes arriving. Remember the oldest returned slot awaiting its first look. Give it one ordinary unchecked retry position in the existing selection. Checked reservations, marked textures and the pass's work limits keep their current behavior. An unsuccessful first look returns the entry to normal retry ordering. ## How it was tested - Revision: `59c47077f0784325b0bd251dfe5f4fbc846fedfb`, based on `c8258f95569c10fe75b5bfb785d3865b5deeefd9`. - Seed 256 slots whose backing is absent and one previously streamed-out slot whose backing has returned. Run the actual queue with backoff capped at 16 frames and a selector limit of 4,096. For a one-entry service budget, repeat for 120 passes. | Offline result | Main | Candidate | | --- | --- | --- | | First service for the returned slot | Still waiting after 120 passes | First productive pass | - Two focused native tests passed. They cover flat and indexed queues, zero/one/two/eight serviced entries, stale completion, checked reservations and marked priority. The four-source comparison exercised main, #528, this branch and a local composition with #528. Both unpatched arms left the returned slot waiting through 120 passes. Both patched arms served it on their first productive pass. A zero service budget did zero work in all four arms. - Seven alternating measurements of the ordinary selector with no returned textures gave roughly 513 ns per call on both versions with 32 entries. With 8,192 entries and a selection limit of 64 the medians were 112.3 and 110.0 µs. At a limit of 4,096 the medians were 196.2 and 202.6 µs, with overlapping ranges. Neither a consistent speed gain nor a change in total service budget was established. - Both strict workspace Clippy gates passed. A local composition with #628 on the #547/#551 player sources passed seven integration checks, including remaps and alias writes into a full queue. The change affects ordinary retry ordering. In-game texture loading, appearance and pacing still need a matched gameplay A/B. - The asset check accepted 576 files. The serial workspace test attempt exited 101. Completed targets reported 2,950 passed, four failed and 105 ignored. Three loopback tests lacked host access. The existing nested worker-pool test hit the owner-unwind assertion tracked in #539 and #549. The separate, unchanged shader test binary was interrupted to avoid running the same exhaustive oracle on three branches. A complete host rerun of the same GPU test binary passed 1,825 tests with 81 ignored. The complete HLE test binary passed 509 with 15 ignored. Gameplay A/B and a single green workspace invocation remain outstanding. ## Checklist - [ ] Gameplay A/B, pending. - [x] One change based on main. - [x] Diff follows the asset policy. - [x] Dependencies recorded. Depends on none. ## Checked for overlap - [x] Searched open and closed issues and PRs and the files changed by open PRs. - #528 prioritizes fresh writes over speculative fingerprint rechecks. Its current revision `326b1799` still leaves a returned slot among unchecked retries. [Offline comparison on #528](https://git.gtahub.st/TrustNo1/Darner/pulls/528#issuecomment-897077). - The branches touch the same retry ordering. If #528 merges first, adapt this change to #528's unchecked retry group and rerun the combined regression. That arrangement passed the four-source comparison above. - #618 reports a different condition, an upload pass stopping after allocation failure. #620 retires held records. Other open changes touching `descriptor/host.rs` include #292, #335, #380, #508, #539, #547, #561, #563, #565, #597–601 and #615.
TrustNo1 changed title from WIP: [pr-fix][rendering][memory] Serve returned textures among unchecked retries to WIP: Serve returned textures among unchecked retries 2026-12-06 03:25:55 +00:00
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'fix/bounded-overdue-texture-service:holoslicer-fix/bounded-overdue-texture-service'
git switch 'holoslicer-fix/bounded-overdue-texture-service'

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.

git switch 'Main'
git merge --no-ff 'holoslicer-fix/bounded-overdue-texture-service'
git switch 'holoslicer-fix/bounded-overdue-texture-service'
git rebase 'Main'
git switch 'Main'
git merge --ff-only 'holoslicer-fix/bounded-overdue-texture-service'
git switch 'holoslicer-fix/bounded-overdue-texture-service'
git rebase 'Main'
git switch 'Main'
git merge --no-ff 'holoslicer-fix/bounded-overdue-texture-service'
git switch 'Main'
git merge --squash 'holoslicer-fix/bounded-overdue-texture-service'
git switch 'Main'
git merge --ff-only 'holoslicer-fix/bounded-overdue-texture-service'
git switch 'Main'
git merge 'holoslicer-fix/bounded-overdue-texture-service'
git push origin 'Main'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!629
No description provided.