fix(agc): hold flip behind worker #2666

Merged
sridhar777911 merged 2 commits from upstream-pr/2666 into main 2026-10-10 10:52:10 +00:00
sridhar777911 commented 2026-10-10 10:29:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by sridhar777911 on 2026-10-10T10:29:32Z.


Description

This PR safely resubmits PR #1745 which was previously closed due to administrative/conventions issues initially, now resolved.

What

A title that paces itself on pending flips can get further ahead of the queue 0 worker than its per-frame memory allows, and the worker then records a frame from memory the title has already rewritten.
A submission on queue 0 that carries a flip now waits until the worker has reached the flip of every earlier one. The wait ends early when queue 0 is blocked on memory that no running, held or pending work writes, the criterion orderReleased uses, since only the title can end that wait.

Tested

Windows 11, RTX 5070 Ti, Astro Bot (PPSA21564, 01.007.000), built from b3fcd6d6 (an older main) with this change. 45 s runs through the intro.

Checklist

  • Tested with ctest
  • Checked with tools/check_conventions.py
  • No inline comments
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4810529046 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2666). Originally posted by [sridhar777911](https://github.com/sridhar777911) on 2026-10-10T10:29:32Z. --- ### Description This PR safely resubmits PR #1745 which was previously closed due to administrative/conventions issues initially, now resolved. ### What A title that paces itself on pending flips can get further ahead of the queue 0 worker than its per-frame memory allows, and the worker then records a frame from memory the title has already rewritten. A submission on queue 0 that carries a flip now waits until the worker has reached the flip of every earlier one. The wait ends early when queue 0 is blocked on memory that no running, held or pending work writes, the criterion orderReleased uses, since only the title can end that wait. ### Tested Windows 11, RTX 5070 Ti, Astro Bot (PPSA21564, 01.007.000), built from b3fcd6d6 (an older main) with this change. 45 s runs through the intro. ### Checklist - [x] Tested with `ctest` - [x] Checked with `tools/check_conventions.py` - [x] No inline comments
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
boykopovar/AnyPS5!2666
No description provided.