perf(agc): record a DMA copy of up to 64 KiB on the GPU when the GPU still stores into its source #5480

Merged
Nesyth merged 3 commits from upstream-pr/5480 into main 2026-10-19 23:51:58 +00:00
Nesyth commented 2026-10-13 20:53:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Nesyth on 2026-10-13T20:53:52Z.


What

A DMA_DATA copy of 64 KiB or less is read on the CPU. When the GPU is still writing its source, that read submits the open batch and waits for it, so queue 0 stalls on every such copy. In Ready or Not (PPSA18605) that is about 90 waits every 10 seconds, roughly 33 ms per frame. Larger copies already go through CopyBuffer on the GPU and don't have this problem.

This change sends the small ones down the same path when their source still has pending GPU stores. In RoN the time spent on these packets drops from about 37 ms to about 5 ms per frame and the waits go away entirely. On main the frame rate change stays within run-to-run variation, because a per-draw buffer copy still makes frames long there. On my bring-up build, where that copy is gone, the frame rate goes up 10%.

  • A copy of up to 64 KiB first checks without GpuMutex whether its source may still have pending stores: the recorder's pending-write snapshot, pending storage images, unit shadows, and the worker's queued labels. Only then does it take GpuMutex, record the deferred labels, confirm the pending stores, and ask a new VulkanDevice::GpuCopyPossible whether CopyBuffer takes a GPU path without waiting: no completion store still to land over either range (copyWaitsOnCompletions, the rule CopyBuffer syncs on), and either an alias that passes the image copy's own refusals (StorageTexture::CopyRefusal, which CopyFrom now returns) or host imports over both ranges. Only then does the copy go to CopyBuffer; any result other than a GPU path throws, and the source is never read on the CPU.
  • Everything else takes the old path directly, unchanged: settled sources (which take GpuMutex once, as on main), copies that would wait for a completion store, ranges that aren't imported, overlapping ranges, GDS, immediate data and fills. CopyBuffer gets no CPU size here. For every aliased copy, the large ones included, a refusal after CopyRefusal passed, or a failure to make the destination's image, now throws instead of falling back to a transfer.
  • Ordering is the same as for big copies: deferred labels are recorded first, and the transfer gets barriers on both sides.
  • One difference: these copies no longer leave a label-table entry, so a WAIT_REG_MEM on the destination waits on memory instead, as it does after a big copy. In RoN, queue 0's WAIT_REG_MEM time stays at about 0.1 ms per present with and without the change.
  • A new [sync] counter, copiesBehindPendingSources, so the effect shows up in the logs.

Tested

Windows 11 Pro 10.0.22631, Ryzen 7 7800X3D, RX 7900 XTX, WinLibs GCC 15.2.0, Release, on main a050f856f; the RoN runs below are on main 0aa4cb1c2.

  • New test testSmallCopyBehindPendingSource in tests/Submit.cpp: a 4 KiB copy from a buffer the GPU is still writing has to land the right bytes and go through the GPU; a copy from a settled buffer, and a copy into memory that isn't imported, have to keep the old path without calling CopyBuffer. It fails if the GPU path or GpuCopyPossible is reverted. agc_driver_small_copy_sync runs it with APS5_COPY_SYNC=1, where every pending write counts as one with a completion store, and requires the first copy to stay off the GPU path; it fails without the copyWaitsOnCompletions check. The check before GpuMutex changes no outcome, only how often the lock is taken, so no test covers it.
  • On this head, ctest -R "^agc_" passes 541 of 547 tests with 4 skips; agc_driver_layered_volume_vertex_no_gpl and agc_driver_recorder fail, as they do on main a050f856f on this GPU.
  • Traced runs in the same scene, with their summary lines and traces, are in the comments below: two pairs of main 0aa4cb1c2 and 62fccc881 (APS5_TRACE_SECONDS=125:30), and one pair of main a050f856f and this head (160:10, no frame dumps, nothing dropped).
  • RoN, same scene, runs alternated without/with/with/without, 30 s profiler windows.

On main 0aa4cb1c2, all libraries built from it and only the driver swapped. In all four runs main copied a 768 KiB buffer on most draws (the case #5372 fixes), so frames are long and the same saving is a smaller share:

runs FPS queue 0 per frame DMA_DATA time per frame flush-hook waits on DMA_DATA per 10 s
without 2 1.93, 2.07 512, 479 ms 37.2, 36.7 ms 39, 41
with 2 2.17, 2.00 457, 495 ms 5.0, 5.7 ms 0, 0

On my bring-up build (main 0214069e3 plus other local changes, including a join for that buffer):

runs FPS queue 0 per frame DMA_DATA time per frame flush-hook waits on DMA_DATA per 10 s
without 2 4.67, 4.53 210, 216 ms 34.6, 34.8 ms 93, 90
with 2 5.00, 5.17 195, 189 ms 2.8, 4.6 ms 0, 0

The GPU stays busy 100-107 ms per frame in every run, so the scene remains CPU-bound.

Discussion #5436 reports the same queue-0 cost at 12.5 ms per frame in Sword of the Sea; this change was not run there.

Linux: not run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: PPSA18605 #4184
  • GPUs tested: AMD Radeon RX 7900 XTX, AMD Software Adrenalin 26.8.1 (driver 32.0.31041.1004), Windows 11 Pro 10.0.22631
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4849344788 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5480). Originally posted by [Nesyth](https://github.com/Nesyth) on 2026-10-13T20:53:52Z. --- ### What A `DMA_DATA` copy of 64 KiB or less is read on the CPU. When the GPU is still writing its source, that read submits the open batch and waits for it, so queue 0 stalls on every such copy. In Ready or Not (PPSA18605) that is about 90 waits every 10 seconds, roughly 33 ms per frame. Larger copies already go through `CopyBuffer` on the GPU and don't have this problem. This change sends the small ones down the same path when their source still has pending GPU stores. In RoN the time spent on these packets drops from about 37 ms to about 5 ms per frame and the waits go away entirely. On `main` the frame rate change stays within run-to-run variation, because a per-draw buffer copy still makes frames long there. On my bring-up build, where that copy is gone, the frame rate goes up 10%. - A copy of up to 64 KiB first checks without `GpuMutex` whether its source may still have pending stores: the recorder's pending-write snapshot, pending storage images, unit shadows, and the worker's queued labels. Only then does it take `GpuMutex`, record the deferred labels, confirm the pending stores, and ask a new `VulkanDevice::GpuCopyPossible` whether `CopyBuffer` takes a GPU path without waiting: no completion store still to land over either range (`copyWaitsOnCompletions`, the rule `CopyBuffer` syncs on), and either an alias that passes the image copy's own refusals (`StorageTexture::CopyRefusal`, which `CopyFrom` now returns) or host imports over both ranges. Only then does the copy go to `CopyBuffer`; any result other than a GPU path throws, and the source is never read on the CPU. - Everything else takes the old path directly, unchanged: settled sources (which take `GpuMutex` once, as on `main`), copies that would wait for a completion store, ranges that aren't imported, overlapping ranges, GDS, immediate data and fills. `CopyBuffer` gets no CPU size here. For every aliased copy, the large ones included, a refusal after `CopyRefusal` passed, or a failure to make the destination's image, now throws instead of falling back to a transfer. - Ordering is the same as for big copies: deferred labels are recorded first, and the transfer gets barriers on both sides. - One difference: these copies no longer leave a label-table entry, so a `WAIT_REG_MEM` on the destination waits on memory instead, as it does after a big copy. In RoN, queue 0's `WAIT_REG_MEM` time stays at about 0.1 ms per present with and without the change. - A new `[sync]` counter, `copiesBehindPendingSources`, so the effect shows up in the logs. ### Tested Windows 11 Pro 10.0.22631, Ryzen 7 7800X3D, RX 7900 XTX, WinLibs GCC 15.2.0, Release, on `main` a050f856f; the RoN runs below are on `main` 0aa4cb1c2. - New test `testSmallCopyBehindPendingSource` in `tests/Submit.cpp`: a 4 KiB copy from a buffer the GPU is still writing has to land the right bytes and go through the GPU; a copy from a settled buffer, and a copy into memory that isn't imported, have to keep the old path without calling `CopyBuffer`. It fails if the GPU path or `GpuCopyPossible` is reverted. `agc_driver_small_copy_sync` runs it with `APS5_COPY_SYNC=1`, where every pending write counts as one with a completion store, and requires the first copy to stay off the GPU path; it fails without the `copyWaitsOnCompletions` check. The check before `GpuMutex` changes no outcome, only how often the lock is taken, so no test covers it. - On this head, `ctest -R "^agc_"` passes 541 of 547 tests with 4 skips; `agc_driver_layered_volume_vertex_no_gpl` and `agc_driver_recorder` fail, as they do on `main` a050f856f on this GPU. - Traced runs in the same scene, with their summary lines and traces, are in the comments below: two pairs of `main` 0aa4cb1c2 and 62fccc881 (`APS5_TRACE_SECONDS=125:30`), and one pair of `main` a050f856f and this head (`160:10`, no frame dumps, nothing dropped). - RoN, same scene, runs alternated without/with/with/without, 30 s profiler windows. On `main` 0aa4cb1c2, all libraries built from it and only the driver swapped. In all four runs `main` copied a 768 KiB buffer on most draws (the case #5372 fixes), so frames are long and the same saving is a smaller share: | | runs | FPS | queue 0 per frame | `DMA_DATA` time per frame | flush-hook waits on `DMA_DATA` per 10 s | |---|---|---|---|---|---| | without | 2 | 1.93, 2.07 | 512, 479 ms | 37.2, 36.7 ms | 39, 41 | | with | 2 | 2.17, 2.00 | 457, 495 ms | 5.0, 5.7 ms | 0, 0 | On my bring-up build (`main` 0214069e3 plus other local changes, including a join for that buffer): | | runs | FPS | queue 0 per frame | `DMA_DATA` time per frame | flush-hook waits on `DMA_DATA` per 10 s | |---|---|---|---|---|---| | without | 2 | 4.67, 4.53 | 210, 216 ms | 34.6, 34.8 ms | 93, 90 | | with | 2 | 5.00, 5.17 | 195, 189 ms | 2.8, 4.6 ms | 0, 0 | The GPU stays busy 100-107 ms per frame in every run, so the scene remains CPU-bound. Discussion #5436 reports the same queue-0 cost at 12.5 ms per frame in Sword of the Sea; this change was not run there. Linux: not run. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: PPSA18605 #4184 - [x] GPUs tested: AMD Radeon RX 7900 XTX, AMD Software Adrenalin 26.8.1 (driver 32.0.31041.1004), Windows 11 Pro 10.0.22631 - [x] AI-assisted: yes
oneandonlydean commented 2026-10-13 23:05:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T23:05:59Z.


Please add the aps5-summary.jsonl lines and traces of main and of this change from the same Ready or Not scene, as the performance report form describes. On main the FPS of the two builds overlap (1.93/2.07 against 2.17/2.00), so the DMA_DATA time is the only clear gain so far.

CopyBuffer finds out that a range isn't imported only after it has synced the source and flushed the pending images (VulkanDevice.cpp:2258-2295), and the packet then takes the CPU path anyway (PacketMemory.cpp:115-128). Please decide that before calling it, so each copy takes one path.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6157083068 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5480#issuecomment-6157083068). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-13T23:05:59Z. --- Please add the `aps5-summary.jsonl` lines and traces of main and of this change from the same Ready or Not scene, as the performance report form describes. On main the FPS of the two builds overlap (1.93/2.07 against 2.17/2.00), so the `DMA_DATA` time is the only clear gain so far. `CopyBuffer` finds out that a range isn't imported only after it has synced the source and flushed the pending images (`VulkanDevice.cpp:2258-2295`), and the packet then takes the CPU path anyway (`PacketMemory.cpp:115-128`). Please decide that before calling it, so each copy takes one path.
CnRJay commented 2026-10-14 00:53:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-14T00:53:12Z.

Review: COMMENTED


Adding to the review above, two costs that the profile table doesn't show:

  • Every DMA_DATA of up to 64 KiB now takes GpuMutex, including the settled ones that end up on the old path: copyBehindPendingSource locks it before StoresPendingOver decides anything. Small copies are frequent, and other queues' dispatches, draws and Present contend on that lock. The pending-store check would ideally run without GpuMutex (or under the recorder's own lock) and take GpuMutex only when the copy is actually recorded. Together with the import check requested above, the common settled case should cost no more than it does on main.
  • The wait may move rather than disappear. As the description says, these copies no longer leave a label-table entry, so a WAIT_REG_MEM on the destination now polls memory, which needs the transfer to complete. In RoN, the per-frame time of the WAIT_REG_MEM packets (opcode 0x3c) and the number of drains it triggers, before and after, would show whether the 32 ms left DMA_DATA or moved into the wait. "queue 0 per frame" falls, which is encouraging, but on main the two runs overlap.

Minor: the packet is decoded twice when the GPU path is not taken (DecodeMemoryCopy in the lambda, then ResolveStore).

The approach itself, recording a small copy behind its source's pending GPU stores instead of syncing the batch to read it on the CPU, is the right direction.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5511811299 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5480#pullrequestreview-5511811299). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-10-14T00:53:12Z. **Review:** COMMENTED --- Adding to the review above, two costs that the profile table doesn't show: - **Every `DMA_DATA` of up to 64 KiB now takes `GpuMutex`**, including the settled ones that end up on the old path: `copyBehindPendingSource` locks it before `StoresPendingOver` decides anything. Small copies are frequent, and other queues' dispatches, draws and `Present` contend on that lock. The pending-store check would ideally run without `GpuMutex` (or under the recorder's own lock) and take `GpuMutex` only when the copy is actually recorded. Together with the import check requested above, the common settled case should cost no more than it does on `main`. - **The wait may move rather than disappear.** As the description says, these copies no longer leave a label-table entry, so a `WAIT_REG_MEM` on the destination now polls memory, which needs the transfer to complete. In RoN, the per-frame time of the `WAIT_REG_MEM` packets (opcode `0x3c`) and the number of drains it triggers, before and after, would show whether the 32 ms left `DMA_DATA` or moved into the wait. "queue 0 per frame" falls, which is encouraging, but on `main` the two runs overlap. Minor: the packet is decoded twice when the GPU path is not taken (`DecodeMemoryCopy` in the lambda, then `ResolveStore`). The approach itself, recording a small copy behind its source's pending GPU stores instead of syncing the batch to read it on the CPU, is the right direction.
Nesyth commented 2026-10-14 18:51:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Nesyth on 2026-10-14T18:51:04Z.


Thanks to both of you. All points are addressed in e1615b3e2, rebased onto main 4ae78dc13.

One path per copy (@oneandonlydean): the copy now asks VulkanDevice::GpuCopyPossible first. It does the same lookups CopyBuffer makes for its GPU paths (host imports over both ranges, or a live storage image at the source to alias), without syncing or flushing anything. Only when it says yes does the copy go to CopyBuffer; otherwise it takes ResolveStore directly. testSmallCopyBehindPendingSource has a new case that copies into memory that isn't imported and requires it to skip CopyBuffer. It fails with the check removed: "a small copy into memory that is not imported went through the GPU copy before its CPU path". Two rare cases can still take both paths: the sync retires an import between the check and the copy, or the check passes only on the alias and CopyFrom then refuses the image copy.

GpuMutex (@CnRJay): a copy takes GpuMutex only when its source may still have pending stores. It checks that without the lock, against what the flush hook would find for a CPU read: the recorder's pending-write snapshot (Recorder::SnapshotWriteOverlaps), pending storage images, unit shadows, and the labels this worker has queued. A settled copy goes straight to the old path and takes the lock once, as on main. The copy is decoded once and the result is shared with the large-copy path; ResolveStore still reads its own header fields, as on main.

Where the wait went (@CnRJay): not into WAIT_REG_MEM. In the four traces below, queue 0's Driver.Packet.memory_wait (WAIT_REG_MEM and its 64-bit form) takes 0.08 and 0.10 ms per present on main and 0.06 and 0.06 with the change, about one wait per present. In the profiled runs from the description, the device drained 2 and 3 times on main and once in each run with the change, over three windows each, every time on DMA_DATA and never on WAIT_REG_MEM. The large memory_wait in the summary lines is the compute queue's worker (0x28), which waits for queue 0. What does grow is queue 0's flush_between_packets, by about 2 ms per present (6.0 to 7.8 in the first pair, 5.0 to 7.0 in the second), against the 31-33 ms that prepare_memory drops.

Traces: two pairs from the same Ready or Not scene on the same machine in one session, main 0aa4cb1c2 and 62fccc881, APS5_TRACE_SECONDS=125:30, warm caches, no APS5_PROFILE_* switch. 62fccc881 is the head before this rebase and the lock change; its GPU path is the same. The second pair ran in the reverse order. All four runs also dumped every fifth frame and redirected the log, which the form asks to avoid; I can redo them on the new head without that if you'd rather.

{"commit":"0aa4cb1c2f2f","dirty":false,"env":{"APS5_DUMP_FRAMES":"600","APS5_DUMP_FRAMES_EVERY":"5","APS5_DUMP_SCALE":"3","APS5_HOST_IMPORT_MIB":"10240","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"125:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.22631","resolution":"3840x2160","window":{"spec":"seconds 125:30","first_present":228,"ms":30037.445},"presents":52,"frame_ms":{"p50":435.285,"p90":834.724,"p99":1145.119,"max":1145.119},"gpu_busy_ms_per_present":111.792,"worker_busy_pct":{"queue worker 0x0":99.637,"queue worker 0x28":72.914},"top_phases_ms_per_frame":{"Driver.Packet":992.254,"Driver.Packet.draw":491.463,"Driver.Draw":490.932,"Driver.Draw.draw_and_resource_release":410.776,"Graphics.Draw":410.194,"Driver.Packet.memory_wait":396.720,"Graphics.Draw.draw_and_resource_release":393.014,"Resources.Complete":271.630},"trace_dropped":true,"trace":"aps5-trace-0aa4cb1c2f2f-25108.json.gz"}
{"commit":"62fccc881ab7","dirty":false,"env":{"APS5_DUMP_FRAMES":"600","APS5_DUMP_FRAMES_EVERY":"5","APS5_DUMP_SCALE":"3","APS5_HOST_IMPORT_MIB":"10240","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"125:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.22631","resolution":"3840x2160","window":{"spec":"seconds 125:30","first_present":225,"ms":30033.899},"presents":64,"frame_ms":{"p50":368.480,"p90":660.885,"p99":1314.335,"max":1314.335},"gpu_busy_ms_per_present":109.797,"worker_busy_pct":{"queue worker 0x0":99.572,"queue worker 0x28":80.245},"top_phases_ms_per_frame":{"Driver.Packet":826.229,"Driver.Packet.draw":398.898,"Driver.Draw":398.394,"Driver.Packet.memory_wait":340.616,"Driver.Draw.draw_and_resource_release":319.798,"Graphics.Draw":319.254,"Graphics.Draw.draw_and_resource_release":292.903,"Resources.Complete":194.602},"trace_dropped":true,"trace":"aps5-trace-62fccc881ab7-14268.json.gz"}
{"commit":"62fccc881ab7","dirty":false,"env":{"APS5_DUMP_FRAMES":"600","APS5_DUMP_FRAMES_EVERY":"5","APS5_DUMP_SCALE":"3","APS5_HOST_IMPORT_MIB":"10240","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"125:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.22631","resolution":"3840x2160","window":{"spec":"seconds 125:30","first_present":248,"ms":30115.397},"presents":56,"frame_ms":{"p50":408.730,"p90":752.267,"p99":997.417,"max":997.417},"gpu_busy_ms_per_present":109.559,"worker_busy_pct":{"queue worker 0x0":99.634,"queue worker 0x28":78.045},"top_phases_ms_per_frame":{"Driver.Packet":933.526,"Driver.Packet.draw":463.310,"Driver.Draw":462.813,"Driver.Draw.draw_and_resource_release":387.037,"Graphics.Draw":386.474,"Driver.Packet.memory_wait":382.774,"Graphics.Draw.draw_and_resource_release":367.989,"Resources.Complete":285.992},"trace_dropped":true,"trace":"aps5-trace-62fccc881ab7-27900.json.gz"}
{"commit":"0aa4cb1c2f2f","dirty":false,"env":{"APS5_DUMP_FRAMES":"600","APS5_DUMP_FRAMES_EVERY":"5","APS5_DUMP_SCALE":"3","APS5_HOST_IMPORT_MIB":"10240","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"125:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.22631","resolution":"3840x2160","window":{"spec":"seconds 125:30","first_present":270,"ms":30003.056},"presents":61,"frame_ms":{"p50":399.726,"p90":728.814,"p99":771.982,"max":771.982},"gpu_busy_ms_per_present":106.539,"worker_busy_pct":{"queue worker 0x0":99.620,"queue worker 0x28":71.798},"top_phases_ms_per_frame":{"Driver.Packet":839.682,"Driver.Packet.draw":410.862,"Driver.Draw":410.360,"Driver.Packet.memory_wait":335.328,"Driver.Draw.draw_and_resource_release":339.446,"Graphics.Draw":338.924,"Graphics.Draw.draw_and_resource_release":325.803,"Resources.Complete":222.308},"trace_dropped":true,"trace":"aps5-trace-0aa4cb1c2f2f-20600.json.gz"}

aps5-trace-62fccc881ab7-14268.json.gz
aps5-trace-62fccc881ab7-27900.json.gz
aps5-trace-0aa4cb1c2f2f-20600.json.gz
aps5-trace-0aa4cb1c2f2f-25108.json.gz

The per-present numbers above and here cover the part each trace recorded (queue 0's buffer filled after 12-16 s in every run). What holds in both pairs is the copy cost: queue 0's Driver.Packet.prepare_memory drops from 37.2 to 3.8 ms per present in the first pair and from 36.1 to 5.4 in the second. The frame rate does not: the change presents 64 frames against 52 in the first pair and 56 against 61 in the second, where the change run rendered with the colour cast #5321 fixes and the main run did not. That cast comes and goes between launches with either driver here. On main the per-draw buffer copy #5372 fixes keeps frames at about 400 ms, which hides a saving of about 30 ms per frame; on my bring-up build without that copy it showed as +10%.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6175849257 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5480#issuecomment-6175849257). Originally posted by [Nesyth](https://github.com/Nesyth) on 2026-10-14T18:51:04Z. --- Thanks to both of you. All points are addressed in e1615b3e2, rebased onto `main` 4ae78dc13. **One path per copy** (@oneandonlydean): the copy now asks `VulkanDevice::GpuCopyPossible` first. It does the same lookups `CopyBuffer` makes for its GPU paths (host imports over both ranges, or a live storage image at the source to alias), without syncing or flushing anything. Only when it says yes does the copy go to `CopyBuffer`; otherwise it takes `ResolveStore` directly. `testSmallCopyBehindPendingSource` has a new case that copies into memory that isn't imported and requires it to skip `CopyBuffer`. It fails with the check removed: "a small copy into memory that is not imported went through the GPU copy before its CPU path". Two rare cases can still take both paths: the sync retires an import between the check and the copy, or the check passes only on the alias and `CopyFrom` then refuses the image copy. **`GpuMutex`** (@CnRJay): a copy takes `GpuMutex` only when its source may still have pending stores. It checks that without the lock, against what the flush hook would find for a CPU read: the recorder's pending-write snapshot (`Recorder::SnapshotWriteOverlaps`), pending storage images, unit shadows, and the labels this worker has queued. A settled copy goes straight to the old path and takes the lock once, as on `main`. The copy is decoded once and the result is shared with the large-copy path; `ResolveStore` still reads its own header fields, as on `main`. **Where the wait went** (@CnRJay): not into `WAIT_REG_MEM`. In the four traces below, queue 0's `Driver.Packet.memory_wait` (`WAIT_REG_MEM` and its 64-bit form) takes 0.08 and 0.10 ms per present on `main` and 0.06 and 0.06 with the change, about one wait per present. In the profiled runs from the description, the device drained 2 and 3 times on `main` and once in each run with the change, over three windows each, every time on `DMA_DATA` and never on `WAIT_REG_MEM`. The large `memory_wait` in the summary lines is the compute queue's worker (0x28), which waits for queue 0. What does grow is queue 0's `flush_between_packets`, by about 2 ms per present (6.0 to 7.8 in the first pair, 5.0 to 7.0 in the second), against the 31-33 ms that `prepare_memory` drops. **Traces:** two pairs from the same Ready or Not scene on the same machine in one session, `main` 0aa4cb1c2 and 62fccc881, `APS5_TRACE_SECONDS=125:30`, warm caches, no `APS5_PROFILE_*` switch. 62fccc881 is the head before this rebase and the lock change; its GPU path is the same. The second pair ran in the reverse order. All four runs also dumped every fifth frame and redirected the log, which the form asks to avoid; I can redo them on the new head without that if you'd rather. ```json {"commit":"0aa4cb1c2f2f","dirty":false,"env":{"APS5_DUMP_FRAMES":"600","APS5_DUMP_FRAMES_EVERY":"5","APS5_DUMP_SCALE":"3","APS5_HOST_IMPORT_MIB":"10240","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"125:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.22631","resolution":"3840x2160","window":{"spec":"seconds 125:30","first_present":228,"ms":30037.445},"presents":52,"frame_ms":{"p50":435.285,"p90":834.724,"p99":1145.119,"max":1145.119},"gpu_busy_ms_per_present":111.792,"worker_busy_pct":{"queue worker 0x0":99.637,"queue worker 0x28":72.914},"top_phases_ms_per_frame":{"Driver.Packet":992.254,"Driver.Packet.draw":491.463,"Driver.Draw":490.932,"Driver.Draw.draw_and_resource_release":410.776,"Graphics.Draw":410.194,"Driver.Packet.memory_wait":396.720,"Graphics.Draw.draw_and_resource_release":393.014,"Resources.Complete":271.630},"trace_dropped":true,"trace":"aps5-trace-0aa4cb1c2f2f-25108.json.gz"} {"commit":"62fccc881ab7","dirty":false,"env":{"APS5_DUMP_FRAMES":"600","APS5_DUMP_FRAMES_EVERY":"5","APS5_DUMP_SCALE":"3","APS5_HOST_IMPORT_MIB":"10240","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"125:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.22631","resolution":"3840x2160","window":{"spec":"seconds 125:30","first_present":225,"ms":30033.899},"presents":64,"frame_ms":{"p50":368.480,"p90":660.885,"p99":1314.335,"max":1314.335},"gpu_busy_ms_per_present":109.797,"worker_busy_pct":{"queue worker 0x0":99.572,"queue worker 0x28":80.245},"top_phases_ms_per_frame":{"Driver.Packet":826.229,"Driver.Packet.draw":398.898,"Driver.Draw":398.394,"Driver.Packet.memory_wait":340.616,"Driver.Draw.draw_and_resource_release":319.798,"Graphics.Draw":319.254,"Graphics.Draw.draw_and_resource_release":292.903,"Resources.Complete":194.602},"trace_dropped":true,"trace":"aps5-trace-62fccc881ab7-14268.json.gz"} {"commit":"62fccc881ab7","dirty":false,"env":{"APS5_DUMP_FRAMES":"600","APS5_DUMP_FRAMES_EVERY":"5","APS5_DUMP_SCALE":"3","APS5_HOST_IMPORT_MIB":"10240","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"125:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.22631","resolution":"3840x2160","window":{"spec":"seconds 125:30","first_present":248,"ms":30115.397},"presents":56,"frame_ms":{"p50":408.730,"p90":752.267,"p99":997.417,"max":997.417},"gpu_busy_ms_per_present":109.559,"worker_busy_pct":{"queue worker 0x0":99.634,"queue worker 0x28":78.045},"top_phases_ms_per_frame":{"Driver.Packet":933.526,"Driver.Packet.draw":463.310,"Driver.Draw":462.813,"Driver.Draw.draw_and_resource_release":387.037,"Graphics.Draw":386.474,"Driver.Packet.memory_wait":382.774,"Graphics.Draw.draw_and_resource_release":367.989,"Resources.Complete":285.992},"trace_dropped":true,"trace":"aps5-trace-62fccc881ab7-27900.json.gz"} {"commit":"0aa4cb1c2f2f","dirty":false,"env":{"APS5_DUMP_FRAMES":"600","APS5_DUMP_FRAMES_EVERY":"5","APS5_DUMP_SCALE":"3","APS5_HOST_IMPORT_MIB":"10240","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"125:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.22631","resolution":"3840x2160","window":{"spec":"seconds 125:30","first_present":270,"ms":30003.056},"presents":61,"frame_ms":{"p50":399.726,"p90":728.814,"p99":771.982,"max":771.982},"gpu_busy_ms_per_present":106.539,"worker_busy_pct":{"queue worker 0x0":99.620,"queue worker 0x28":71.798},"top_phases_ms_per_frame":{"Driver.Packet":839.682,"Driver.Packet.draw":410.862,"Driver.Draw":410.360,"Driver.Packet.memory_wait":335.328,"Driver.Draw.draw_and_resource_release":339.446,"Graphics.Draw":338.924,"Graphics.Draw.draw_and_resource_release":325.803,"Resources.Complete":222.308},"trace_dropped":true,"trace":"aps5-trace-0aa4cb1c2f2f-20600.json.gz"} ``` [aps5-trace-62fccc881ab7-14268.json.gz](https://github.com/user-attachments/files/33451732/aps5-trace-62fccc881ab7-14268.json.gz) [aps5-trace-62fccc881ab7-27900.json.gz](https://github.com/user-attachments/files/33451735/aps5-trace-62fccc881ab7-27900.json.gz) [aps5-trace-0aa4cb1c2f2f-20600.json.gz](https://github.com/user-attachments/files/33451736/aps5-trace-0aa4cb1c2f2f-20600.json.gz) [aps5-trace-0aa4cb1c2f2f-25108.json.gz](https://github.com/user-attachments/files/33451737/aps5-trace-0aa4cb1c2f2f-25108.json.gz) The per-present numbers above and here cover the part each trace recorded (queue 0's buffer filled after 12-16 s in every run). What holds in both pairs is the copy cost: queue 0's `Driver.Packet.prepare_memory` drops from 37.2 to 3.8 ms per present in the first pair and from 36.1 to 5.4 in the second. The frame rate does not: the change presents 64 frames against 52 in the first pair and 56 against 61 in the second, where the change run rendered with the colour cast #5321 fixes and the `main` run did not. That cast comes and goes between launches with either driver here. On `main` the per-draw buffer copy #5372 fixes keeps frames at about 400 ms, which hides a saving of about 30 ms per frame; on my bring-up build without that copy it showed as +10%.
CnRJay commented 2026-10-14 19:11:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-14T19:11:44Z.


Thanks, that answers both. A settled copy now costs three range checks under their own small locks instead of the GPU mutex. The traces also show the wait didn't move into WAIT_REG_MEM. flush_between_packets grows by about 2 ms while prepare_memory drops by 31–33 ms, a clear net gain.

The four traces are from 62fccc881, before the lock change. All four have trace_dropped: true and were taken with frame dumps on. One pair on the current head without APS5_DUMP_FRAMES* would let the maintainers check numbers from the code they merge. That's the only thing I'd still ask for.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6176246088 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5480#issuecomment-6176246088). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-10-14T19:11:44Z. --- Thanks, that answers both. A settled copy now costs three range checks under their own small locks instead of the GPU mutex. The traces also show the wait didn't move into `WAIT_REG_MEM`. `flush_between_packets` grows by about 2 ms while `prepare_memory` drops by 31–33 ms, a clear net gain. The four traces are from 62fccc881, before the lock change. All four have `trace_dropped: true` and were taken with frame dumps on. One pair on the current head without `APS5_DUMP_FRAMES*` would let the maintainers check numbers from the code they merge. That's the only thing I'd still ask for.
oneandonlydean commented 2026-10-14 20:31:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T20:31:47Z.


Thanks. The two cases you list still try the GPU copy and then fall back to the CPU copy. Please make each one choose its path before copying, or throw:

  • Import retired by the sync (VulkanDevice.cpp:2381-2394, then :2416-2418): whether CopyBuffer will sync is a pure query (PendingWriteOverlaps && completionStoreOverlaps on either range). That copy waits for the batch on either path, so GpuCopyPossible (VulkanDevice.cpp:2282) should return false when it holds, and the copy takes ResolveStore from the start.
  • Alias passes the check, then AliasCopy fails (VulkanDevice.cpp:2264 against :2244 and Texture.cpp:4039-4062): AliasCopyPossible checks only FindLive and the shape. CopyFrom also refuses on DCC keys, a released or uncached image, a destination that isn't imported, and no recorder. All of these can be checked up front, so please make the check and AliasCopy use the same predicate.

With both checks exact, PacketMemory.cpp:131 should throw std::runtime_error when CopyBuffer returns anything other than path 1 or 3, instead of returning false into ResolveStore. That leaves only a CachedStorageSurface failure, which isn't understood, and it should throw rather than be caught.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6177814288 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5480#issuecomment-6177814288). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-14T20:31:47Z. --- Thanks. The two cases you list still try the GPU copy and then fall back to the CPU copy. Please make each one choose its path before copying, or throw: - Import retired by the sync (`VulkanDevice.cpp:2381-2394`, then `:2416-2418`): whether `CopyBuffer` will sync is a pure query (`PendingWriteOverlaps && completionStoreOverlaps` on either range). That copy waits for the batch on either path, so `GpuCopyPossible` (`VulkanDevice.cpp:2282`) should return false when it holds, and the copy takes `ResolveStore` from the start. - Alias passes the check, then `AliasCopy` fails (`VulkanDevice.cpp:2264` against `:2244` and `Texture.cpp:4039-4062`): `AliasCopyPossible` checks only `FindLive` and the shape. `CopyFrom` also refuses on DCC keys, a released or uncached image, a destination that isn't imported, and no recorder. All of these can be checked up front, so please make the check and `AliasCopy` use the same predicate. With both checks exact, `PacketMemory.cpp:131` should throw `std::runtime_error` when `CopyBuffer` returns anything other than path 1 or 3, instead of returning false into `ResolveStore`. That leaves only a `CachedStorageSurface` failure, which isn't understood, and it should throw rather than be caught.
Nesyth commented 2026-10-14 22:03:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Nesyth on 2026-10-14T22:03:42Z.


Thanks, both checks are exact in 7a17fb158, rebased onto main a050f856f:

  • The sync: CopyBuffer's wait rule is one function now, copyWaitsOnCompletions (a pending write over the range and a completion store still to land on it). CopyBuffer syncs on it, and GpuCopyPossible returns false when it holds for either range, so such a copy takes ResolveStore from the start. agc_driver_small_copy_sync runs the small-copy test with APS5_COPY_SYNC=1, which makes every pending write count as one with a completion store, and requires the copy to stay off the GPU path; it fails with the check removed.
  • The alias: StorageTexture::CopyRefusal holds CopyFrom's refusals (shape, DCC keys, a released or uncached image, a destination that isn't imported, no recorder), and CopyFrom returns its answer. AliasCopy and GpuCopyPossible both go through one PlanAlias, which finds the two images and asks CopyRefusal; when the destination image is still to be made, its import is checked at the destination address.
  • No fallback: the packet throws when CopyBuffer returns a path other than 1 or 3 after GpuCopyPossible accepted the copy, AliasCopy throws when CopyFrom refuses after CopyRefusal passed, and a CachedStorageSurface failure now propagates instead of being caught. That last one applies to every aliased copy, the large ones included.
  • Deferred labels are now recorded before the checks rather than after them, so the checks see the completion labels that recording adds.
  • Tests: agc_driver, agc_driver_small_copy_sync and the related copy tests pass. ctest -R "^agc_" passes 541 of 547 with 4 skips; the two failures, agc_driver_layered_volume_vertex_no_gpl and agc_driver_recorder, fail the same way on main a050f856f on this GPU, and no test hit either new throw.

Traces on this head (@CnRJay): main a050f856f and 7a17fb158, same scene, APS5_TRACE_SECONDS=160:10, no frame dumps, log not redirected, trace_dropped false in both:

{"commit":"a050f856f14e","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"10240","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"160:10"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.22631","resolution":"3840x2160","window":{"spec":"seconds 160:10","first_present":137,"ms":10390.391},"presents":7,"frame_ms":{"p50":1470.167,"p90":1554.583,"p99":1554.583,"max":1554.583},"gpu_busy_ms_per_present":214.367,"worker_busy_pct":{"queue worker 0x0":99.794,"queue worker 0x28":69.510},"top_phases_ms_per_frame":{"Driver.Packet":2501.224,"Driver.Packet.draw":1266.874,"Driver.Draw":1266.286,"Driver.Draw.draw_and_resource_release":1169.322,"Graphics.Draw":1113.579,"Graphics.Draw.draw_and_resource_release":1100.929,"Driver.Packet.memory_wait":950.213,"Driver.Packet.dispatch":243.623},"trace_dropped":false,"trace":"aps5-trace-a050f856f14e-23188.json.gz"}
{"commit":"7a17fb1588b2","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"10240","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"160:10"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.22631","resolution":"3840x2160","window":{"spec":"seconds 160:10","first_present":138,"ms":10523.039},"presents":7,"frame_ms":{"p50":1469.714,"p90":1747.255,"p99":1747.255,"max":1747.255},"gpu_busy_ms_per_present":216.088,"worker_busy_pct":{"queue worker 0x0":99.795,"queue worker 0x28":69.464},"top_phases_ms_per_frame":{"Driver.Packet":2536.069,"Driver.Packet.draw":1283.113,"Driver.Draw":1282.507,"Driver.Draw.draw_and_resource_release":1184.846,"Graphics.Draw":1131.483,"Graphics.Draw.draw_and_resource_release":1116.917,"Driver.Packet.memory_wait":963.263,"Driver.Packet.dispatch":245.700},"trace_dropped":false,"trace":"aps5-trace-7a17fb1588b2-24776.json.gz"}

aps5-trace-a050f856f14e-23188.json.gz
aps5-trace-7a17fb1588b2-24776.json.gz

Today's main runs this scene at about 0.68 FPS, against about 2 FPS on 0aa4cb1c2 for the pairs above, so a 10 s window holds 7 presents. Over the whole window queue 0's prepare_memory goes from 12.0 to 8.5 ms per present, WAIT_REG_MEM stays at 0, and flush_between_packets goes from 4.0 to 4.4 ms. The title reached the scene with this head's throws in place, and none fired.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6179483913 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5480#issuecomment-6179483913). Originally posted by [Nesyth](https://github.com/Nesyth) on 2026-10-14T22:03:42Z. --- Thanks, both checks are exact in 7a17fb158, rebased onto `main` a050f856f: - **The sync:** `CopyBuffer`'s wait rule is one function now, `copyWaitsOnCompletions` (a pending write over the range and a completion store still to land on it). `CopyBuffer` syncs on it, and `GpuCopyPossible` returns false when it holds for either range, so such a copy takes `ResolveStore` from the start. `agc_driver_small_copy_sync` runs the small-copy test with `APS5_COPY_SYNC=1`, which makes every pending write count as one with a completion store, and requires the copy to stay off the GPU path; it fails with the check removed. - **The alias:** `StorageTexture::CopyRefusal` holds `CopyFrom`'s refusals (shape, DCC keys, a released or uncached image, a destination that isn't imported, no recorder), and `CopyFrom` returns its answer. `AliasCopy` and `GpuCopyPossible` both go through one `PlanAlias`, which finds the two images and asks `CopyRefusal`; when the destination image is still to be made, its import is checked at the destination address. - **No fallback:** the packet throws when `CopyBuffer` returns a path other than 1 or 3 after `GpuCopyPossible` accepted the copy, `AliasCopy` throws when `CopyFrom` refuses after `CopyRefusal` passed, and a `CachedStorageSurface` failure now propagates instead of being caught. That last one applies to every aliased copy, the large ones included. - Deferred labels are now recorded before the checks rather than after them, so the checks see the completion labels that recording adds. - **Tests:** `agc_driver`, `agc_driver_small_copy_sync` and the related copy tests pass. `ctest -R "^agc_"` passes 541 of 547 with 4 skips; the two failures, `agc_driver_layered_volume_vertex_no_gpl` and `agc_driver_recorder`, fail the same way on `main` a050f856f on this GPU, and no test hit either new throw. **Traces on this head** (@CnRJay): `main` a050f856f and 7a17fb158, same scene, `APS5_TRACE_SECONDS=160:10`, no frame dumps, log not redirected, `trace_dropped` false in both: ```json {"commit":"a050f856f14e","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"10240","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"160:10"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.22631","resolution":"3840x2160","window":{"spec":"seconds 160:10","first_present":137,"ms":10390.391},"presents":7,"frame_ms":{"p50":1470.167,"p90":1554.583,"p99":1554.583,"max":1554.583},"gpu_busy_ms_per_present":214.367,"worker_busy_pct":{"queue worker 0x0":99.794,"queue worker 0x28":69.510},"top_phases_ms_per_frame":{"Driver.Packet":2501.224,"Driver.Packet.draw":1266.874,"Driver.Draw":1266.286,"Driver.Draw.draw_and_resource_release":1169.322,"Graphics.Draw":1113.579,"Graphics.Draw.draw_and_resource_release":1100.929,"Driver.Packet.memory_wait":950.213,"Driver.Packet.dispatch":243.623},"trace_dropped":false,"trace":"aps5-trace-a050f856f14e-23188.json.gz"} {"commit":"7a17fb1588b2","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"10240","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"160:10"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.22631","resolution":"3840x2160","window":{"spec":"seconds 160:10","first_present":138,"ms":10523.039},"presents":7,"frame_ms":{"p50":1469.714,"p90":1747.255,"p99":1747.255,"max":1747.255},"gpu_busy_ms_per_present":216.088,"worker_busy_pct":{"queue worker 0x0":99.795,"queue worker 0x28":69.464},"top_phases_ms_per_frame":{"Driver.Packet":2536.069,"Driver.Packet.draw":1283.113,"Driver.Draw":1282.507,"Driver.Draw.draw_and_resource_release":1184.846,"Graphics.Draw":1131.483,"Graphics.Draw.draw_and_resource_release":1116.917,"Driver.Packet.memory_wait":963.263,"Driver.Packet.dispatch":245.700},"trace_dropped":false,"trace":"aps5-trace-7a17fb1588b2-24776.json.gz"} ``` [aps5-trace-a050f856f14e-23188.json.gz](https://github.com/user-attachments/files/33459914/aps5-trace-a050f856f14e-23188.json.gz) [aps5-trace-7a17fb1588b2-24776.json.gz](https://github.com/user-attachments/files/33459915/aps5-trace-7a17fb1588b2-24776.json.gz) Today's `main` runs this scene at about 0.68 FPS, against about 2 FPS on 0aa4cb1c2 for the pairs above, so a 10 s window holds 7 presents. Over the whole window queue 0's `prepare_memory` goes from 12.0 to 8.5 ms per present, `WAIT_REG_MEM` stays at 0, and `flush_between_packets` goes from 4.0 to 4.4 ms. The title reached the scene with this head's throws in place, and none fired.
github-actions[bot] commented 2026-10-15 12:07:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:07:48Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 4448 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp L4692-4707
PR 7963 core/libs/prx/libSceAgcDriver/tests/Submit.cpp L977

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1368 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 2434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4040 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4072 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4891 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5021 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5426 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5431 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5441 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5499 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6044 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6146 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6177 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6185 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6187 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6202 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6209 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6290 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6292 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6300 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6481 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6539 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6611 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6615 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6682 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6683 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6718 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6747 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6759 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6788 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6820 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6868 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6947 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6959 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6960 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6971 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7048 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7085 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7201 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7223 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7233 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7292 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7332 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7369 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7446 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Synchronization/SynchronizationStatistics.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Synchronization/SynchronizationStatistics.cpp
PR 7449 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
PR 7457 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7484 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7505 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7514 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7533 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7604 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7615 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7677 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7800 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7888 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7922 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7933 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8004 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8014 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8134 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191671779 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5480#issuecomment-6191671779). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:07:48Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` [L4692-4707](https://github.com/boykopovar/AnyPS5/blob/25ab3510ca21ead3dbabff89853a4d9e9c738ec5/core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp#L4692-L4707) | | | | [PR 7963](https://www.github.com/boykopovar/AnyPS5/pull/7963) | `core/libs/prx/libSceAgcDriver/tests/Submit.cpp` [L977](https://github.com/boykopovar/AnyPS5/blob/25ab3510ca21ead3dbabff89853a4d9e9c738ec5/core/libs/prx/libSceAgcDriver/tests/Submit.cpp#L977) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 4040](https://www.github.com/boykopovar/AnyPS5/pull/4040) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 4472](https://www.github.com/boykopovar/AnyPS5/pull/4472) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 4891](https://www.github.com/boykopovar/AnyPS5/pull/4891) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5426](https://www.github.com/boykopovar/AnyPS5/pull/5426) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5431](https://www.github.com/boykopovar/AnyPS5/pull/5431) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5441](https://www.github.com/boykopovar/AnyPS5/pull/5441) | `core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5609](https://www.github.com/boykopovar/AnyPS5/pull/5609) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6146](https://www.github.com/boykopovar/AnyPS5/pull/6146) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6177](https://www.github.com/boykopovar/AnyPS5/pull/6177) | `core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6185](https://www.github.com/boykopovar/AnyPS5/pull/6185) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6187](https://www.github.com/boykopovar/AnyPS5/pull/6187) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6197](https://www.github.com/boykopovar/AnyPS5/pull/6197) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6202](https://www.github.com/boykopovar/AnyPS5/pull/6202) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6209](https://www.github.com/boykopovar/AnyPS5/pull/6209) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6290](https://www.github.com/boykopovar/AnyPS5/pull/6290) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6292](https://www.github.com/boykopovar/AnyPS5/pull/6292) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6539](https://www.github.com/boykopovar/AnyPS5/pull/6539) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6611](https://www.github.com/boykopovar/AnyPS5/pull/6611) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6682](https://www.github.com/boykopovar/AnyPS5/pull/6682) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6718](https://www.github.com/boykopovar/AnyPS5/pull/6718) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6747](https://www.github.com/boykopovar/AnyPS5/pull/6747) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6759](https://www.github.com/boykopovar/AnyPS5/pull/6759) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6788](https://www.github.com/boykopovar/AnyPS5/pull/6788) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6820](https://www.github.com/boykopovar/AnyPS5/pull/6820) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6959](https://www.github.com/boykopovar/AnyPS5/pull/6959) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6960](https://www.github.com/boykopovar/AnyPS5/pull/6960) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6971](https://www.github.com/boykopovar/AnyPS5/pull/6971) | `core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7048](https://www.github.com/boykopovar/AnyPS5/pull/7048) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7085](https://www.github.com/boykopovar/AnyPS5/pull/7085) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7223](https://www.github.com/boykopovar/AnyPS5/pull/7223) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7233](https://www.github.com/boykopovar/AnyPS5/pull/7233) | `core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7292](https://www.github.com/boykopovar/AnyPS5/pull/7292) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7369](https://www.github.com/boykopovar/AnyPS5/pull/7369) | `core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7395](https://www.github.com/boykopovar/AnyPS5/pull/7395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7446](https://www.github.com/boykopovar/AnyPS5/pull/7446) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Synchronization/SynchronizationStatistics.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Synchronization/SynchronizationStatistics.cpp` | | [PR 7449](https://www.github.com/boykopovar/AnyPS5/pull/7449) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp` | | [PR 7457](https://www.github.com/boykopovar/AnyPS5/pull/7457) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7484](https://www.github.com/boykopovar/AnyPS5/pull/7484) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7514](https://www.github.com/boykopovar/AnyPS5/pull/7514) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7533](https://www.github.com/boykopovar/AnyPS5/pull/7533) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7615](https://www.github.com/boykopovar/AnyPS5/pull/7615) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7677](https://www.github.com/boykopovar/AnyPS5/pull/7677) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7800](https://www.github.com/boykopovar/AnyPS5/pull/7800) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7888](https://www.github.com/boykopovar/AnyPS5/pull/7888) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7922](https://www.github.com/boykopovar/AnyPS5/pull/7922) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7933](https://www.github.com/boykopovar/AnyPS5/pull/7933) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8004](https://www.github.com/boykopovar/AnyPS5/pull/8004) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 8014](https://www.github.com/boykopovar/AnyPS5/pull/8014) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 8134](https://www.github.com/boykopovar/AnyPS5/pull/8134) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` |
CnRJay commented 2026-10-15 18:20:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-15T18:20:49Z.


Thanks, that covers both of my points. A settled copy now skips the GPU mutex, each path is chosen exactly before copying, and the traces are on the current head with nothing dropped. prepare_memory goes from 12.0 to 8.5 ms per present, and WAIT_REG_MEM stays at 0. With 7 presents per window the frame-time percentiles can't separate the builds, but nothing points to a regression. Nothing more from me.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6199201158 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5480#issuecomment-6199201158). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-10-15T18:20:49Z. --- Thanks, that covers both of my points. A settled copy now skips the GPU mutex, each path is chosen exactly before copying, and the traces are on the current head with nothing dropped. `prepare_memory` goes from 12.0 to 8.5 ms per present, and `WAIT_REG_MEM` stays at 0. With 7 presents per window the frame-time percentiles can't separate the builds, but nothing points to a regression. Nothing more from me.
jotitadev commented 2026-10-15 23:07:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-15T23:07:53Z.

Review: COMMENTED


A Linux and NVIDIA run, since the description lists only Windows on an RX 7900 XTX.

Machine: NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329, Ubuntu 26.04 (kernel 7.0.0-38), i7-8700. GCC 15.2, Release, BUILD_TESTING=ON, ANYPS5_GPU="NVIDIA GeForce RTX 3070". Head 63492cd8f merged onto main 5d9dcc42d, no conflicts.

GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), Linux

  • agc_driver (with testSmallCopyBehindPendingSource) and agc_driver_small_copy_sync pass 3/3. The first requires the copy to be counted in copiesBehindPendingSources, so the GPU path is taken on this driver, not only on RADV/Windows AMD.

  • Fault checks on this machine (the test does not build against main's sources, so I used mutations of the PR):

    • copyBehindPendingSource() never taken: agc_driver fails 3/3 with a small copy whose source the GPU still stores into was not recorded on the GPU.
    • the copyWaitsOnCompletions checks removed from GpuCopyPossible: agc_driver_small_copy_sync fails 3/3 with a small copy that has to wait for a completion store over its source went through the GPU copy.

    Both pass again with the PR's code restored.

  • ctest -R "^agc" -E "agc_display_buffer_dcc|agc_driver_flip|agc_driver_lds_atomics64" -j1 --timeout 60: 592/594 pass (one more test than main, the new agc_driver_small_copy_sync). That matches unchanged main on this machine: agc_driver_stencil_ref_export skipped, agc_driver_store_over_untracked fails as on main (#6385). Of the two failures the description lists for the 7900 XTX, agc_driver_layered_volume_vertex_no_gpl passes here; there is no agc_driver_recorder test in this Linux build.

I did not run a title.

Written with AI assistance (Claude Code). I ran the tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5541001650 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5480#pullrequestreview-5541001650). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-15T23:07:53Z. **Review:** COMMENTED --- A Linux and NVIDIA run, since the description lists only Windows on an RX 7900 XTX. **Machine:** NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329, Ubuntu 26.04 (kernel 7.0.0-38), i7-8700. GCC 15.2, Release, `BUILD_TESTING=ON`, `ANYPS5_GPU="NVIDIA GeForce RTX 3070"`. Head `63492cd8f` merged onto `main` `5d9dcc42d`, no conflicts. GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), Linux - `agc_driver` (with `testSmallCopyBehindPendingSource`) and `agc_driver_small_copy_sync` pass 3/3. The first requires the copy to be counted in `copiesBehindPendingSources`, so the GPU path is taken on this driver, not only on RADV/Windows AMD. - Fault checks on this machine (the test does not build against `main`'s sources, so I used mutations of the PR): - `copyBehindPendingSource()` never taken: `agc_driver` fails 3/3 with `a small copy whose source the GPU still stores into was not recorded on the GPU`. - the `copyWaitsOnCompletions` checks removed from `GpuCopyPossible`: `agc_driver_small_copy_sync` fails 3/3 with `a small copy that has to wait for a completion store over its source went through the GPU copy`. Both pass again with the PR's code restored. - `ctest -R "^agc" -E "agc_display_buffer_dcc|agc_driver_flip|agc_driver_lds_atomics64" -j1 --timeout 60`: 592/594 pass (one more test than `main`, the new `agc_driver_small_copy_sync`). That matches unchanged `main` on this machine: `agc_driver_stencil_ref_export` skipped, `agc_driver_store_over_untracked` fails as on `main` (#6385). Of the two failures the description lists for the 7900 XTX, `agc_driver_layered_volume_vertex_no_gpl` passes here; there is no `agc_driver_recorder` test in this Linux build. I did not run a title. Written with AI assistance (Claude Code). I ran the tests above on my machine.
oneandonlydean commented 2026-10-17 00:41:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T00:41:49Z.


@CnRJay's and @jotitadev's runs cover both 10-14 points: the small copy behind a pending source is recorded on the GPU on the RTX 3070, and agc_driver_small_copy_sync fails 3/3 when the copyWaitsOnCompletions checks are removed. It conflicts with main now in VulkanDevice.hpp (two independent declaration blocks, keep both). @Nesyth, please rebase; #6249's byte-coverage guard stays with #6249.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6227475656 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5480#issuecomment-6227475656). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-17T00:41:49Z. --- @CnRJay's and @jotitadev's runs cover both 10-14 points: the small copy behind a pending source is recorded on the GPU on the RTX 3070, and `agc_driver_small_copy_sync` fails 3/3 when the `copyWaitsOnCompletions` checks are removed. It conflicts with main now in `VulkanDevice.hpp` (two independent declaration blocks, keep both). @Nesyth, please rebase; #6249's byte-coverage guard stays with #6249.
oneandonlydean commented 2026-10-17 02:04:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T02:04:36Z.


Rebased onto current main (now e04111bb5). The only conflict was two independent declaration blocks in VulkanDevice.hpp, both kept; the PR's own lines are unchanged (9 files, +163/-55). Local build plus the dma|copy tests: 8/8 passed. Full CI is running on the new head.

Overlap with #6249: #6249's ImageCoversGuestBytes guard and this PR's PlanAlias refactor overlap. Whichever lands second moves the guard into PlanAlias after the source lookup as a plan.refusal, so AliasCopyPossible refuses the same copies AliasCopy does.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6228282307 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5480#issuecomment-6228282307). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-17T02:04:36Z. --- Rebased onto current main (now e04111bb5). The only conflict was two independent declaration blocks in `VulkanDevice.hpp`, both kept; the PR's own lines are unchanged (9 files, +163/-55). Local build plus the `dma|copy` tests: 8/8 passed. Full CI is running on the new head. Overlap with #6249: #6249's `ImageCoversGuestBytes` guard and this PR's `PlanAlias` refactor overlap. Whichever lands second moves the guard into `PlanAlias` after the source lookup as a `plan.refusal`, so `AliasCopyPossible` refuses the same copies `AliasCopy` does.
oneandonlydean commented 2026-10-17 02:33:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T02:33:21Z.


CI run 38993484777 on head e04111bb5: Linux is green. On Windows, the new agc_driver_small_copy_sync fails in 0.04 s. The runner has no Vulkan device, so the test prints "skipped, no usable Vulkan device" and returns VulkanTestSkipped (77). Its entry in core/libs/prx/libSceAgcDriver/CMakeLists.txt doesn't set SKIP_RETURN_CODE 77 the way the other Vulkan-backed agc_driver_* tests do, so ctest counts the skip as a failure. Suggested fix: add SKIP_RETURN_CODE 77 to that set_tests_properties line. Happy to push the one-liner here if you prefer. (The guest_shader_link timeout in the same run is the known Windows exit hang, #6791.)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6228555496 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5480#issuecomment-6228555496). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-17T02:33:21Z. --- CI run 38993484777 on head e04111bb5: Linux is green. On Windows, the new `agc_driver_small_copy_sync` fails in 0.04 s. The runner has no Vulkan device, so the test prints "skipped, no usable Vulkan device" and returns `VulkanTestSkipped` (77). Its entry in `core/libs/prx/libSceAgcDriver/CMakeLists.txt` doesn't set `SKIP_RETURN_CODE 77` the way the other Vulkan-backed `agc_driver_*` tests do, so ctest counts the skip as a failure. Suggested fix: add `SKIP_RETURN_CODE 77` to that `set_tests_properties` line. Happy to push the one-liner here if you prefer. (The `guest_shader_link` timeout in the same run is the known Windows exit hang, #6791.)
github-actions[bot] commented 2026-10-19 09:31:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T09:31:46Z.


This pull request is labeled perf, so it needs the summary line of a capture on main and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both aps5-summary.jsonl lines, attach the two traces and add the output of tools/trace_digest.py.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6264108151 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5480#issuecomment-6264108151). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T09:31:46Z. --- <!-- pr-labels-perf --> This pull request is labeled `perf`, so it needs the summary line of a capture on `main` and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both `aps5-summary.jsonl` lines, attach the two traces and add the output of `tools/trace_digest.py`.
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!5480
No description provided.