AGC: since #3777, every idle edge stores all pending storage images back (Dreaming Sarah 59 → 31 FPS) #4398

Closed
opened 2026-10-12 09:20:00 +00:00 by ThatsLeo · 0 comments
ThatsLeo commented 2026-10-12 09:20:00 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ThatsLeo on 2026-10-12T09:20:00Z.


Since #3777 (e10f91b3), Dreaming Sarah (PPSA02929) runs at about half its frame rate. On Intel Arc (Meteor Lake, Mesa 26.2.3 ANV), Fedora 44, Release, with the same scripted run (start, Continue, walk left and right; mean of the window-title FPS after 20 s):

Libraries built from main at FPS (2 runs)
0694c579 (parent of #3777's merge) 59, 59
e10f91b3 (#3777's merge) 31, 31
8c4a295f (current) 38, 33

The relinked executable is the same in all rows, and only the libraries change. A first-parent bisect over 0a8b1d32..8c4a295f (257 merges, two runs per step) points to e10f91b3.

perf at current main: 25% of the process's samples are under VulkanDevice::StoreIdleResults → StorageTexture::FlushAllPending → writeBack → writeBackLayers. So queue 0 writes every pending storage image back each time all queues go idle. In a light title that happens about once per frame, and the image's next use then has to upload it again.

#3272 needs the results stored only when the CPU may be waiting on them. Two ways to keep that without paying it every frame:

  • store back only the images over ranges a guest thread is polling (a WAIT_REG_MEM, or a CPU read caught by the write watch);
  • store back only after the queues have stayed idle for a while, not on every idle edge.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5811320872 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4398). Originally posted by [ThatsLeo](https://github.com/ThatsLeo) on 2026-10-12T09:20:00Z. --- Since #3777 (`e10f91b3`), Dreaming Sarah (PPSA02929) runs at about half its frame rate. On Intel Arc (Meteor Lake, Mesa 26.2.3 ANV), Fedora 44, Release, with the same scripted run (start, Continue, walk left and right; mean of the window-title FPS after 20 s): | Libraries built from `main` at | FPS (2 runs) | |---|---| | `0694c579` (parent of #3777's merge) | 59, 59 | | `e10f91b3` (#3777's merge) | 31, 31 | | `8c4a295f` (current) | 38, 33 | The relinked executable is the same in all rows, and only the libraries change. A first-parent bisect over `0a8b1d32..8c4a295f` (257 merges, two runs per step) points to `e10f91b3`. `perf` at current `main`: 25% of the process's samples are under `VulkanDevice::StoreIdleResults` → `StorageTexture::FlushAllPending` → `writeBack` → `writeBackLayers`. So queue 0 writes every pending storage image back each time all queues go idle. In a light title that happens about once per frame, and the image's next use then has to upload it again. #3272 needs the results stored only when the CPU may be waiting on them. Two ways to keep that without paying it every frame: - store back only the images over ranges a guest thread is polling (a WAIT_REG_MEM, or a CPU read caught by the write watch); - store back only after the queues have stayed idle for a while, not on every idle edge. AI-assisted: yes.
Sign in to join this conversation.
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#4398
No description provided.