perf(agc): build the pipelines of a submission ahead on a compile pool #5925

Open
adriadam10 wants to merge 3 commits from upstream-pr/5925 into main
adriadam10 commented 2026-10-14 16:05:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T16:05:51Z.


What

On the first run of a title, the queue worker finds the pipelines of a submission already built instead of creating them under GuestMemory::GpuMutex at each draw and dispatch.

  • Driver::resolveGroupAhead (DispatchAhead.cpp), which resolved only the dispatch groups of the compute queues, now also walks the graphics queue and the draws. At the start of every submission the worker walks the packets with a scratch QueueState, decodes every draw and dispatch whose draw-cache or dispatch-cache key is new (the materialized stage results go to the recompile cache, which serves the worker again at the packet) and hands their pipeline builds to a pool of hardware_concurrency() / 2 threads the VulkanDevice owns (PipelineLookaheadPool). Driver::draw gets the same resolve mode Driver::dispatch has: it stops before lockForDraw and hands the state and the stage results over.
  • A graphics pipeline is built through Graphics::BuildDrawPipelineAhead, the derivation Graphics::Draw makes (masked blend states and proxied targets, now shared with Draw as pipelineStateOf, the vertex input layout, the described set layouts and the attachment layout a recorded draw uses) ending in CachedPipeline; a compute pipeline through VulkanDevice::ReplayComputePipeline, the journal replay's hook. Both find-or-insert: a worker that reaches the packet first builds the pipeline itself and the pool's copy is dropped. Nothing waits for the pool.
  • On the graphics queue the walk reads memory as it is at the submission's start, continues past waits, conditional ranges and memory-writing packets, and adopts nothing: a stale decode costs a pipeline that is never bound. On the compute queues the walk keeps its group-capture rules and adopts the resolved dispatches as before (APS5_GROUP_CAPTURE_ALL_QUEUES=1 adopts on the graphics queue too, as before). The walk now also executes SET_*_REG_INDIRECT packets from their submit-time register lists instead of stopping at them.
  • The pool is cancelled and drained before the device is replaced (PrepareForReplacement) and at its teardown, before the journal replay, following the replay's Cancel/Wait pattern.
  • APS5_NO_SUBMIT_LOOKAHEAD=1 disables it; APS5_SUBMIT_LOOKAHEAD_THREADS sets the pool's threads (0 disables it too); APS5_PROFILE_DRAW=1 prints a [lookahead] line for the walk (per queue, with the [groupcap] line) and one for the pool at teardown.

Depends on #5875: the stable identities (RecompileResult::Identity), the find-or-insert stores, the builds outside the store mutexes in CachedPipeline/LinkPipelineFromLibraries and VulkanDevice::createComputePipeline/ReplayComputePipeline are what the pool builds through. The diff on top of #5875 is 18 files; review the last commit only.

Open pull requests near this change, checked before writing it: #4897 (compute pipelines created in PrepareDispatch before the GPU lock, with a futures map that waits on a concurrent build) and #5526 (PrewarmComputePipeline, the same idea) build the compute pipeline on the worker thread at the dispatch's own preparation; #5441 (PrewarmPipeline, draft) builds the graphics pipeline on the worker thread right before lockForDraw; #5115 (draft) prepares deferred shaders at SET_SH_REG. This pull request implements none of their functions: the builds run on a pool ahead of the packets, from a decode of the whole submission, through the #5875 entry points; the one shared step, deriving the pipeline inputs of a draw from its state and stages, is extracted from Graphics::Draw itself (pipelineStateOf) and used by Draw. If #5441 lands first, the pool task can call its PrewarmPipeline instead. #5747, #5481 and #5477 touch resolveGroupAhead by a few lines each (the indirect-argument stop, NOP skipping, COPY_DATA registers) and will need a trivial rebase on either side.

Tested

Linux (Ubuntu 24.04, GCC 13.3), lavapipe (Mesa 25.2.8, LLVM 20), 4 CPU threads, pool of 2 threads. No title or homebrew run: the hardware this is for (NVIDIA, #4897 measured 0.28 to 0.59 pipelines/s with 3 threads; the 5 to 9 s stalls of #5441) is not available here.

  • New agc_submit_lookahead (Vulkan mock, agc_driver_graphics_tests --submit-lookahead): the pool builds a draw's pipeline and runs a compute build ahead; the worker's own derivation of the same draw then hits the store and creates nothing; a configuration the worker built first is found present by the pool and not rebuilt; a failed build is counted and the pool goes on; cancelling with 15 builds queued behind a blocking one drops the 15, accepts nothing afterwards, and leaks no Vulkan object (mock.live == 0 after ClearCachedPipelines).

  • New agc_driver_submit_lookahead and agc_driver_submit_lookahead_off (lavapipe, the same binary with APS5_NO_SUBMIT_LOOKAHEAD=1): one DCB with a WAIT_REG_MEM on a CPU label, a draw into a linear target (a synchronous draw), a draw into a tiled resident target (a recorded draw) and a dispatch. With the lookahead on, while the worker waits on the label the walk decodes the two draws and the dispatch and the pool builds the three pipelines (two store misses, DispatchPipelineBuilds unchanged); after the label the worker's draws hit the store twice and its dispatch builds nothing; a repeated submission is skipped as seen. With it off, the walk never runs and the worker builds the three pipelines itself. Both variants check the same images (every texel of both targets, in both layouts) and the dispatch's output, so the lookahead changes nothing in what is drawn.

  • agc_driver_submit_lookahead_tests --benchmark N CHAIN (not registered): N new pixel programs (CHAIN multiply-add steps on a user-data word, so the module is not folded) drawn into a tiled resident target and N new compute programs in one DCB, after a warm-up submission that creates the device. Wall time from submit to idle, ANYPS5_NO_SHADER_CACHE=1 APS5_NO_PIPELINE_JOURNAL=1 MESA_SHADER_CACHE_DISABLE=true, two runs each:

    configurations pixel chain lookahead on lookahead off
    24 draws + 24 dispatches 200 steps 2555 ms, 2315 ms 3319 ms, 2851 ms
    64 draws + 64 dispatches 200 steps 5760 ms 6361 ms
    24 draws + 24 dispatches 0 steps 1455 ms, 1379 ms 1383 ms, 1416 ms
    64 draws + 64 dispatches 0 steps 3729 ms 3553 ms

    With pipelines that take time to build, the submission completes 9 to 23 % sooner, with every draw and dispatch finding its pipeline built by the pool (0 built by the worker). With trivial pipelines it is neutral at 24 and 5 % slower at 64: on lavapipe the pool's compile threads share the four cores with the rasterizer threads, which a GPU does not. The walk itself (the decode and recompile of the new configurations, 0.9 to 2.3 s on the worker at 200 steps) is work the worker did at the packets before; it now runs before the first packet.

  • Validation layer (VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation) on the lavapipe test with the lookahead on and off: the same two VUIDs in both runs, both already in the base (VUID-VkGraphicsPipelineCreateInfo-pLibraries-06681 on the fast link of the pipeline libraries, 12 times, and VUID-VkDeviceCreateInfo-pNext-pNext from the layer of Vulkan headers 1.3.275 not knowing a newer device feature struct, 6 times); no VUID the lookahead adds.

  • ctest -R '^(agc_|shader_|guest_shader_)': 539 tests, all pass. agc_driver_draw_cache_reuse and agc_driver_draw_cache_reuse_off now run with APS5_NO_SUBMIT_LOOKAHEAD=1: they assert the exact draw-cache lookup counts of three draws, which the walk's own decode of the same draws doubles (6 lookups instead of 3), so they keep testing the worker's draws alone. tools/check_conventions.py --base upstream/main and tools/check_test_registration.py build pass.

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: #5875
  • Unblocks: none
  • GPUs tested: lavapipe (Mesa 25.2.8, Ubuntu 24.04) for the benchmark and validation; AMD Radeon 660M, RADV, Mesa 26.2.4, Linux 7.2 for the libSceAgc + libSceAgcDriver ctest scope on the current head (577/578; agc_driver_tessellation segfaults the same way on main)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4860747866 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5925). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-14T16:05:51Z. --- ### What On the first run of a title, the queue worker finds the pipelines of a submission already built instead of creating them under `GuestMemory::GpuMutex` at each draw and dispatch. - `Driver::resolveGroupAhead` (DispatchAhead.cpp), which resolved only the dispatch groups of the compute queues, now also walks the graphics queue and the draws. At the start of every submission the worker walks the packets with a scratch `QueueState`, decodes every draw and dispatch whose draw-cache or dispatch-cache key is new (the materialized stage results go to the recompile cache, which serves the worker again at the packet) and hands their pipeline builds to a pool of `hardware_concurrency() / 2` threads the `VulkanDevice` owns (`PipelineLookaheadPool`). `Driver::draw` gets the same resolve mode `Driver::dispatch` has: it stops before `lockForDraw` and hands the state and the stage results over. - A graphics pipeline is built through `Graphics::BuildDrawPipelineAhead`, the derivation `Graphics::Draw` makes (masked blend states and proxied targets, now shared with `Draw` as `pipelineStateOf`, the vertex input layout, the described set layouts and the attachment layout a recorded draw uses) ending in `CachedPipeline`; a compute pipeline through `VulkanDevice::ReplayComputePipeline`, the journal replay's hook. Both find-or-insert: a worker that reaches the packet first builds the pipeline itself and the pool's copy is dropped. Nothing waits for the pool. - On the graphics queue the walk reads memory as it is at the submission's start, continues past waits, conditional ranges and memory-writing packets, and adopts nothing: a stale decode costs a pipeline that is never bound. On the compute queues the walk keeps its group-capture rules and adopts the resolved dispatches as before (`APS5_GROUP_CAPTURE_ALL_QUEUES=1` adopts on the graphics queue too, as before). The walk now also executes `SET_*_REG_INDIRECT` packets from their submit-time register lists instead of stopping at them. - The pool is cancelled and drained before the device is replaced (`PrepareForReplacement`) and at its teardown, before the journal replay, following the replay's `Cancel`/`Wait` pattern. - `APS5_NO_SUBMIT_LOOKAHEAD=1` disables it; `APS5_SUBMIT_LOOKAHEAD_THREADS` sets the pool's threads (`0` disables it too); `APS5_PROFILE_DRAW=1` prints a `[lookahead]` line for the walk (per queue, with the `[groupcap]` line) and one for the pool at teardown. Depends on #5875: the stable identities (`RecompileResult::Identity`), the find-or-insert stores, the builds outside the store mutexes in `CachedPipeline`/`LinkPipelineFromLibraries` and `VulkanDevice::createComputePipeline`/`ReplayComputePipeline` are what the pool builds through. The diff on top of #5875 is 18 files; review the last commit only. Open pull requests near this change, checked before writing it: #4897 (compute pipelines created in `PrepareDispatch` before the GPU lock, with a futures map that waits on a concurrent build) and #5526 (`PrewarmComputePipeline`, the same idea) build the compute pipeline on the worker thread at the dispatch's own preparation; #5441 (`PrewarmPipeline`, draft) builds the graphics pipeline on the worker thread right before `lockForDraw`; #5115 (draft) prepares deferred shaders at `SET_SH_REG`. This pull request implements none of their functions: the builds run on a pool ahead of the packets, from a decode of the whole submission, through the #5875 entry points; the one shared step, deriving the pipeline inputs of a draw from its state and stages, is extracted from `Graphics::Draw` itself (`pipelineStateOf`) and used by `Draw`. If #5441 lands first, the pool task can call its `PrewarmPipeline` instead. #5747, #5481 and #5477 touch `resolveGroupAhead` by a few lines each (the indirect-argument stop, NOP skipping, COPY_DATA registers) and will need a trivial rebase on either side. ### Tested Linux (Ubuntu 24.04, GCC 13.3), lavapipe (Mesa 25.2.8, LLVM 20), 4 CPU threads, pool of 2 threads. No title or homebrew run: the hardware this is for (NVIDIA, #4897 measured 0.28 to 0.59 pipelines/s with 3 threads; the 5 to 9 s stalls of #5441) is not available here. - New `agc_submit_lookahead` (Vulkan mock, `agc_driver_graphics_tests --submit-lookahead`): the pool builds a draw's pipeline and runs a compute build ahead; the worker's own derivation of the same draw then hits the store and creates nothing; a configuration the worker built first is found present by the pool and not rebuilt; a failed build is counted and the pool goes on; cancelling with 15 builds queued behind a blocking one drops the 15, accepts nothing afterwards, and leaks no Vulkan object (`mock.live == 0` after `ClearCachedPipelines`). - New `agc_driver_submit_lookahead` and `agc_driver_submit_lookahead_off` (lavapipe, the same binary with `APS5_NO_SUBMIT_LOOKAHEAD=1`): one DCB with a `WAIT_REG_MEM` on a CPU label, a draw into a linear target (a synchronous draw), a draw into a tiled resident target (a recorded draw) and a dispatch. With the lookahead on, while the worker waits on the label the walk decodes the two draws and the dispatch and the pool builds the three pipelines (two store misses, `DispatchPipelineBuilds` unchanged); after the label the worker's draws hit the store twice and its dispatch builds nothing; a repeated submission is skipped as seen. With it off, the walk never runs and the worker builds the three pipelines itself. Both variants check the same images (every texel of both targets, in both layouts) and the dispatch's output, so the lookahead changes nothing in what is drawn. - `agc_driver_submit_lookahead_tests --benchmark N CHAIN` (not registered): N new pixel programs (CHAIN multiply-add steps on a user-data word, so the module is not folded) drawn into a tiled resident target and N new compute programs in one DCB, after a warm-up submission that creates the device. Wall time from submit to idle, `ANYPS5_NO_SHADER_CACHE=1 APS5_NO_PIPELINE_JOURNAL=1 MESA_SHADER_CACHE_DISABLE=true`, two runs each: | configurations | pixel chain | lookahead on | lookahead off | | --- | --- | --- | --- | | 24 draws + 24 dispatches | 200 steps | 2555 ms, 2315 ms | 3319 ms, 2851 ms | | 64 draws + 64 dispatches | 200 steps | 5760 ms | 6361 ms | | 24 draws + 24 dispatches | 0 steps | 1455 ms, 1379 ms | 1383 ms, 1416 ms | | 64 draws + 64 dispatches | 0 steps | 3729 ms | 3553 ms | With pipelines that take time to build, the submission completes 9 to 23 % sooner, with every draw and dispatch finding its pipeline built by the pool (0 built by the worker). With trivial pipelines it is neutral at 24 and 5 % slower at 64: on lavapipe the pool's compile threads share the four cores with the rasterizer threads, which a GPU does not. The walk itself (the decode and recompile of the new configurations, 0.9 to 2.3 s on the worker at 200 steps) is work the worker did at the packets before; it now runs before the first packet. - Validation layer (`VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`) on the lavapipe test with the lookahead on and off: the same two VUIDs in both runs, both already in the base (`VUID-VkGraphicsPipelineCreateInfo-pLibraries-06681` on the fast link of the pipeline libraries, 12 times, and `VUID-VkDeviceCreateInfo-pNext-pNext` from the layer of Vulkan headers 1.3.275 not knowing a newer device feature struct, 6 times); no VUID the lookahead adds. - `ctest -R '^(agc_|shader_|guest_shader_)'`: 539 tests, all pass. `agc_driver_draw_cache_reuse` and `agc_driver_draw_cache_reuse_off` now run with `APS5_NO_SUBMIT_LOOKAHEAD=1`: they assert the exact draw-cache lookup counts of three draws, which the walk's own decode of the same draws doubles (6 lookups instead of 3), so they keep testing the worker's draws alone. `tools/check_conventions.py --base upstream/main` and `tools/check_test_registration.py build` pass. ### 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: #5875 - [x] Unblocks: none - [x] GPUs tested: lavapipe (Mesa 25.2.8, Ubuntu 24.04) for the benchmark and validation; AMD Radeon 660M, RADV, Mesa 26.2.4, Linux 7.2 for the libSceAgc + libSceAgcDriver ctest scope on the current head (577/578; `agc_driver_tessellation` segfaults the same way on `main`) - [x] AI-assisted: yes
fma-rc commented 2026-10-14 18:01:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-14T18:01:34Z.


I ran Astro's Playroom (PPSA01325) on Linux with an RTX 5080 (NVIDIA 615.78.08): main e34c47921 against the same commit with this PR (3339ddd3a, which includes PR 5875). Caches were warm, the scene was the busy gameplay of the first level, and I ran three alternating pairs. The captures of both builds show the same scene.

main with this PR
FPS over 20 s, three pairs 6.83 / 6.88 / 6.95 4.53 / 4.38 / 5.57
frame p50, trace 140:15, second pair 146.3 ms 224.2 ms

GPU busy per present is the same (50.8 vs 51.2 ms). With APS5_PROFILE_DRAW=1, queue 0 decodes about 140,000 draws ahead per 10 s, and that takes about 2.8 s of the driver thread. Only 1,000 to 5,000 of them are skipped as seen before, so here the decode runs ahead on the thread that already limits the frame. Loading got faster cold (level reached at 109 s against 145 s), and was the same warm (58 against 55 s).

pipeline_journal, submit_lookahead and draw_cache_reuse pass on NVIDIA, RADV and lavapipe. APS5_SUBMIT_LOOKAHEAD_THREADS and APS5_NO_SUBMIT_LOOKAHEAD are environment switches.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6174919678 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5925#issuecomment-6174919678). Originally posted by [fma-rc](https://github.com/fma-rc) on 2026-10-14T18:01:34Z. --- I ran Astro's Playroom (PPSA01325) on Linux with an RTX 5080 (NVIDIA 615.78.08): `main` e34c47921 against the same commit with this PR (3339ddd3a, which includes PR 5875). Caches were warm, the scene was the busy gameplay of the first level, and I ran three alternating pairs. The captures of both builds show the same scene. | | `main` | with this PR | |---|---|---| | FPS over 20 s, three pairs | 6.83 / 6.88 / 6.95 | 4.53 / 4.38 / 5.57 | | frame p50, trace 140:15, second pair | 146.3 ms | 224.2 ms | GPU busy per present is the same (50.8 vs 51.2 ms). With `APS5_PROFILE_DRAW=1`, queue 0 decodes about 140,000 draws ahead per 10 s, and that takes about 2.8 s of the driver thread. Only 1,000 to 5,000 of them are skipped as seen before, so here the decode runs ahead on the thread that already limits the frame. Loading got faster cold (level reached at 109 s against 145 s), and was the same warm (58 against 55 s). `pipeline_journal`, `submit_lookahead` and `draw_cache_reuse` pass on NVIDIA, RADV and lavapipe. `APS5_SUBMIT_LOOKAHEAD_THREADS` and `APS5_NO_SUBMIT_LOOKAHEAD` are environment switches.
fdfawef324 commented 2026-10-14 23:22:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fdfawef324 on 2026-10-14T23:22:37Z.


Windows Server 2025, RTX 3060 (NVIDIA 591.86), WinLibs GCC 15.2.0 r7, Release, head 3339ddd3a. This head has the thread_local key in CachedPipeline from #5875 (details), and it shows here too:

  • prx_thread_local_destructors fails and names CachedPipeline.
  • Under gdb (Windows debug heap), runs stop with Critical error detected c0000374 in libSceAgcDriver.prx's run_dtor_list as a thread exits:
    • agc_driver_submit_lookahead_tests: 10 of 10 (thread queue worker 0x0)
    • the same with APS5_NO_SUBMIT_LOOKAHEAD=1: 9 of 10
    • agc_driver_pipeline_journal_tests: 10 of 10

The lookahead is not needed for it, so the fix belongs in #5875 and this branch needs it after a rebase. Without a debugger, ctest --repeat until-fail:10 passes 10 of 10 for agc_submit_lookahead, agc_driver_submit_lookahead{,_off}, agc_pipeline_journal, agc_driver_pipeline_journal, agc_pipeline_cache and agc_pipeline_library{,_off,_fast_only}.

Not tested: a title, Linux, and the HostThreadLocal change on this head (I tried it only on #5875's head).

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6180680177 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5925#issuecomment-6180680177). Originally posted by [fdfawef324](https://github.com/fdfawef324) on 2026-10-14T23:22:37Z. --- Windows Server 2025, RTX 3060 (NVIDIA 591.86), WinLibs GCC 15.2.0 r7, Release, head 3339ddd3a. This head has the `thread_local` key in `CachedPipeline` from #5875 ([details](https://github.com/boykopovar/AnyPS5/pull/5875#issuecomment-6180678063)), and it shows here too: - `prx_thread_local_destructors` fails and names `CachedPipeline`. - Under gdb (Windows debug heap), runs stop with `Critical error detected c0000374` in libSceAgcDriver.prx's `run_dtor_list` as a thread exits: - `agc_driver_submit_lookahead_tests`: 10 of 10 (thread `queue worker 0x0`) - the same with `APS5_NO_SUBMIT_LOOKAHEAD=1`: 9 of 10 - `agc_driver_pipeline_journal_tests`: 10 of 10 The lookahead is not needed for it, so the fix belongs in #5875 and this branch needs it after a rebase. Without a debugger, `ctest --repeat until-fail:10` passes 10 of 10 for `agc_submit_lookahead`, `agc_driver_submit_lookahead{,_off}`, `agc_pipeline_journal`, `agc_driver_pipeline_journal`, `agc_pipeline_cache` and `agc_pipeline_library{,_off,_fast_only}`. Not tested: a title, Linux, and the `HostThreadLocal` change on this head (I tried it only on #5875's head). AI-assisted: yes
LeandroLP23 commented 2026-10-15 13:46:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-15T13:46:28Z.


PS5 FSR4 Showcase (#6118) on AMD, as @MarcZX100 suggested. The first run still gives up at stage=fsr4, but the cache warms much faster. With this PR and #5875 the title gets past stage=fsr4 on the fourth run. With both turned off, it is still stuck there after nine.

Windows 11 (26300), Radeon 860M (RDNA 3.5, driver 32.0.13058.8001), WinLibs GCC 15.2.0, Release. Catalog 01.000.010, relinked with --windows --trap-sdk-syscall-stubs, APS5_PROFILE_DRAW=1.

Tree. This PR conflicts with current main in seven files, so I took its head 3339ddd3a as it is. On top I applied only the main changes the title needs: #5648 (VCC buffer tuples), #5163 (out-of-range sceAgcInit versions) and #5477 (COPY_DATA register source). Without the last two, the title stops at vkCreateDevice ... = -3 and at the COPY_DATA throw. Both sides below use that same build. "Off" sets APS5_NO_SUBMIT_LOOKAHEAD=1 APS5_NO_PIPELINE_JOURNAL=1.

Each side starts with a new run folder and an empty %LOCALAPPDATA%\AMD\VkCache, then reuses the folder:

Run Lookahead + journal Both off
1 (cold) vkQueueSubmit = -4 before chapter 0 same
2 stage=fsr4 after_ms=4523, cache saved 3,773 KiB stage=fsr4 after_ms=4522, 1,446 KiB
3 stage=fsr4, 4,138 KiB stage=fsr4, 1,990 KiB
4 past stage=fsr4, stops at stage=compose after_ms=712 (#6270's stop) stage=fsr4, 2,186 KiB
5–9 (not needed) stage=fsr4 after_ms=4523 every time
  • What the lookahead changes: in chapter 0 the large compute programs are now handed to the pool together ([dispatch] creating a pipeline for 794502 SPIR-V words (program 0x0) and the rest at once). On main the queue worker builds them one by one.
  • Why the first run still fails: each build takes 10–66 s on this GPU (#6118), so even in parallel none of them finishes inside the title's ~4.5 s budget.
  • Why the cache warms faster: the title exits 7–12 s after it gives up. In that time the pool has finished several pipelines and they're saved, while the worker alone finishes at most one.
  • Journal replay: at start it rebuilt 1–3 compute pipelines per run (replay on 8 threads: 0 graphics and 3 compute built).

Not tested: this PR on current main (because of the conflicts), the full CTest suite, NVIDIA.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6193603093 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5925#issuecomment-6193603093). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-15T13:46:28Z. --- PS5 FSR4 Showcase (#6118) on AMD, as @MarcZX100 suggested. The first run still gives up at `stage=fsr4`, but the cache warms much faster. With this PR and #5875 the title gets past `stage=fsr4` on the fourth run. With both turned off, it is still stuck there after nine. Windows 11 (26300), Radeon 860M (RDNA 3.5, driver 32.0.13058.8001), WinLibs GCC 15.2.0, Release. Catalog 01.000.010, relinked with `--windows --trap-sdk-syscall-stubs`, `APS5_PROFILE_DRAW=1`. **Tree.** This PR conflicts with current `main` in seven files, so I took its head `3339ddd3a` as it is. On top I applied only the `main` changes the title needs: #5648 (VCC buffer tuples), #5163 (out-of-range `sceAgcInit` versions) and #5477 (`COPY_DATA` register source). Without the last two, the title stops at `vkCreateDevice ... = -3` and at the `COPY_DATA` throw. Both sides below use that same build. "Off" sets `APS5_NO_SUBMIT_LOOKAHEAD=1 APS5_NO_PIPELINE_JOURNAL=1`. Each side starts with a new run folder and an empty `%LOCALAPPDATA%\AMD\VkCache`, then reuses the folder: | Run | Lookahead + journal | Both off | |---|---|---| | 1 (cold) | `vkQueueSubmit = -4` before chapter 0 | same | | 2 | `stage=fsr4 after_ms=4523`, cache saved 3,773 KiB | `stage=fsr4 after_ms=4522`, 1,446 KiB | | 3 | `stage=fsr4`, 4,138 KiB | `stage=fsr4`, 1,990 KiB | | 4 | **past `stage=fsr4`**, stops at `stage=compose after_ms=712` (#6270's stop) | `stage=fsr4`, 2,186 KiB | | 5–9 | (not needed) | `stage=fsr4 after_ms=4523` every time | - **What the lookahead changes:** in chapter 0 the large compute programs are now handed to the pool together (`[dispatch] creating a pipeline for 794502 SPIR-V words (program 0x0)` and the rest at once). On `main` the queue worker builds them one by one. - **Why the first run still fails:** each build takes 10–66 s on this GPU (#6118), so even in parallel none of them finishes inside the title's ~4.5 s budget. - **Why the cache warms faster:** the title exits 7–12 s after it gives up. In that time the pool has finished several pipelines and they're saved, while the worker alone finishes at most one. - **Journal replay:** at start it rebuilt 1–3 compute pipelines per run (`replay on 8 threads: 0 graphics and 3 compute built`). Not tested: this PR on current `main` (because of the conflicts), the full CTest suite, NVIDIA. AI-assisted: yes (Claude Code).
adriadam10 commented 2026-10-16 11:43:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T11:43:33Z.


Not merging this head:

  • @fma-rc's run on Astro's Playroom (RTX 5080, warm caches) shows the cost: 6.9 → 4.8 FPS. The walk decodes every draw of every submission on the queue worker (DispatchAhead.cpp draw branch), including when warm. That worker already limits the frame, and only 1-5k of ~140k draws per 10 s are skipped as seen. The next head will keep the walk off the worker's critical path once nothing new is found: either it stops walking a queue after submissions that hand nothing to the pool, or the decode moves off the worker. A test will pin that a warm submission is not decoded ahead. The before/after on the same scene will be in the description. @fma-rc, a rerun of that scene on the new head would settle it.
  • #5875 is merged (squashed), so the branch conflicts in 13 files. The new head will be only the lookahead commit, rebased onto main.
  • @fdfawef324: the thread_local destructor in CachedPipeline is gone from main (the merged #5875 keeps only trivial thread_local bools), so the rebase drops it from this branch.
  • @LeandroLP23: thanks, the FSR4 Showcase result (past stage=fsr4 on the fourth run) is the cold-start case this is for. It has to stay that way after the change above.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6214744076 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5925#issuecomment-6214744076). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-16T11:43:33Z. --- Not merging this head: - @fma-rc's run on Astro's Playroom (RTX 5080, warm caches) shows the cost: 6.9 → 4.8 FPS. The walk decodes every draw of every submission on the queue worker (`DispatchAhead.cpp` draw branch), including when warm. That worker already limits the frame, and only 1-5k of ~140k draws per 10 s are skipped as seen. The next head will keep the walk off the worker's critical path once nothing new is found: either it stops walking a queue after submissions that hand nothing to the pool, or the decode moves off the worker. A test will pin that a warm submission is not decoded ahead. The before/after on the same scene will be in the description. @fma-rc, a rerun of that scene on the new head would settle it. - #5875 is merged (squashed), so the branch conflicts in 13 files. The new head will be only the lookahead commit, rebased onto `main`. - @fdfawef324: the `thread_local` destructor in `CachedPipeline` is gone from `main` (the merged #5875 keeps only trivial `thread_local bool`s), so the rebase drops it from this branch. - @LeandroLP23: thanks, the FSR4 Showcase result (past `stage=fsr4` on the fourth run) is the cold-start case this is for. It has to stay that way after the change above.
Amoenus commented 2026-10-19 12:48:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-19T12:48:58Z.


@adriadam10 following the #5648 reference in @LeandroLP23's FSR4 report: our buffer-tuple fix is merged as 23dcb82499. The independent FSR4 title/cache observations are Leandro's.

Two source-based coverage suggestions for the rebased head:

  • Our native #5648 fixture recompiles and calls VulkanDevice::Dispatch directly. Its earlier RTX5080/Radeon results therefore do not exercise Driver::resolveGroupAhead. Routing a representative MUBUF/MTBUF s104:s105:VCC_LO:VCC_HI case through the submission fixture, with lookahead on/off and identical output/bounds checks, would cover the specific prerequisite the FSR4 tester needed.
  • For the planned warm regression, consider warm → a new configuration → warm again. Pin the absence of ahead-decode work on the queue worker for a warm submission, while the later new configuration still becomes eligible for prebuilding. The current repeated-submission assertion checks seen counts and unchanged pool.enqueued; it can pass while the worker still walks/derives keys. This complements your stated fix and catches a queue being permanently disabled after it first becomes warm.

We have a Windows11 Enterprise26200 RTX5080 (610.62/32.0.16.1062) and Radeon(TM) Graphics (32.0.21036.18) available for the updated head. A useful hardware comparison would keep correctness checks separate from cold pipeline-build time and warm worker/frame cost, with the same scene and cache setup. Our current Sonic replay ends during startup, so it supplies no steady-gameplay performance result for this PR.

This is source review of 3339ddd3a, not a fresh build, GPU run or performance measurement of #5925. The author has already identified the warm-cache regression and rebase work; this adds test coverage suggestions rather than repeating those findings. AI-assisted: yes, Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6267591206 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5925#issuecomment-6267591206). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-19T12:48:58Z. --- <!-- codex-5925-vcc-review-v1 --> @adriadam10 following the #5648 reference in @LeandroLP23's FSR4 report: our buffer-tuple fix is merged as `23dcb82499`. The independent FSR4 title/cache observations are Leandro's. Two source-based coverage suggestions for the rebased head: - Our [native #5648 fixture](https://github.com/boykopovar/AnyPS5/blob/943d362d2d426cde90e937f54c9af1ecbef79e66/core/libs/prx/libSceAgcDriver/tests/execution/BufferResourceVcc.cpp#L47) recompiles and calls `VulkanDevice::Dispatch` directly. Its earlier RTX5080/Radeon results therefore do not exercise `Driver::resolveGroupAhead`. Routing a representative MUBUF/MTBUF `s104:s105:VCC_LO:VCC_HI` case through the submission fixture, with lookahead on/off and identical output/bounds checks, would cover the specific prerequisite the FSR4 tester needed. - For the planned warm regression, consider **warm → a new configuration → warm again**. Pin the absence of ahead-decode work on the queue worker for a warm submission, while the later new configuration still becomes eligible for prebuilding. The current [repeated-submission assertion](https://github.com/boykopovar/AnyPS5/blob/3339ddd3af77cfc336148966657c0d14e87b6ae1/core/libs/prx/libSceAgcDriver/tests/execution/SubmitLookahead.cpp#L379) checks seen counts and unchanged `pool.enqueued`; it can pass while the worker still walks/derives keys. This complements your stated fix and catches a queue being permanently disabled after it first becomes warm. We have a Windows11 Enterprise26200 RTX5080 (610.62/32.0.16.1062) and Radeon(TM) Graphics (32.0.21036.18) available for the updated head. A useful hardware comparison would keep correctness checks separate from cold pipeline-build time and warm worker/frame cost, with the same scene and cache setup. Our current Sonic replay ends during startup, so it supplies no steady-gameplay performance result for this PR. This is source review of `3339ddd3a`, **not a fresh build, GPU run or performance measurement of #5925**. The author has already identified the warm-cache regression and rebase work; this adds test coverage suggestions rather than repeating those findings. AI-assisted: yes, Codex. <!-- /codex-5925-vcc-review-v1 -->
LeandroLP23 commented 2026-10-19 13:31:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-19T13:31:17Z.


I tried the FSR4 Showcase (PPSA99011) cold A/B on this head for the warm-up question in #6118, but the head is too old for that title. Setup: 3339ddd3a with #5648 (23dcb82499) cherry-picked, since it doesn't merge into current main. Radeon 860M, driver 32.0.13058.8001, Windows 11, relinked with --trap-sdk-syscall-stubs.

Every run stops 4 s in with FSR4_SHOWCASE_ERROR vkCreateDevice(physical, &di, NULL, &device) = -3, with and without APS5_NO_SUBMIT_LOOKAHEAD=1. That is before any pipeline is built, so it says nothing about this change. Current main gets past this point on the same machine.

I'll rerun the comparison once the branch is rebased: cold, lookahead on and off, counting runs until all 12 chapters play. On main that took 34 runs.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6268434810 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5925#issuecomment-6268434810). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-19T13:31:17Z. --- I tried the FSR4 Showcase (PPSA99011) cold A/B on this head for the warm-up question in #6118, but the head is too old for that title. Setup: 3339ddd3a with #5648 (23dcb82499) cherry-picked, since it doesn't merge into current `main`. Radeon 860M, driver 32.0.13058.8001, Windows 11, relinked with `--trap-sdk-syscall-stubs`. Every run stops 4 s in with `FSR4_SHOWCASE_ERROR vkCreateDevice(physical, &di, NULL, &device) = -3`, with and without `APS5_NO_SUBMIT_LOOKAHEAD=1`. That is before any pipeline is built, so it says nothing about this change. Current `main` gets past this point on the same machine. I'll rerun the comparison once the branch is rebased: cold, lookahead on and off, counting runs until all 12 chapters play. On `main` that took 34 runs. AI-assisted: yes (Claude Code)
DavidSamir commented 2026-10-21 18:55:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DavidSamir on 2026-10-21T18:55:01Z.


A title this would unblock: Afterglow PPSA47770 (01.000.006) exits with code 1 about 17 s after launch, on main 60976d8a4. Machine: Windows 11, Radeon 680M, AMD Vulkan driver 32.0.21030.

  • What the title waits for: its GL stack (Mesa 26.2 gallium "PS5 AGC" plus its own ps5-agc submit layer) waits for each DCB's ReleaseMem label to retire. Its watchdog is 2000 × usleep(1000) plus 200 ms, about 2.2 s. After that it prints [ps5-agc] submission retirement failed; terminating application before cleanup and calls _Exit(1). The title redirects its stdout and stderr, so this is in download0/hui/dev/app.log.
  • What gdb shows at that _Exit:
    • The slot's label at 0x21ea8eff0 is still 0; the title expects 0x474c3701.
    • queue worker 0x0 is blocked in AgcDriver::LockSpinning<std::recursive_mutex> on GuestMemory::GpuMutex.
    • The mutex's owner thread (winpthread owner tid) is inside AgcDriver::Graphics::LinkPipelineFromLibraries → amdvlk64, linking a draw-time pipeline.
  • Which pipeline: it's the title's "backdrop" fragment shader, 95,460 bytes of ISA ([ps5-gallium] compile-shader stage=5 ... bytes=95460 hash=28cacb58). The title logs program backdrop built in 7675 ms.
  • Result: while the link holds GpuMutex, the queue can't retire the earlier submission's label within the title's 2.2 s, so the title ends. This happens on every run, with or without the pipeline cache.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6324003329 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5925#issuecomment-6324003329). Originally posted by [DavidSamir](https://github.com/DavidSamir) on 2026-10-21T18:55:01Z. --- A title this would unblock: **Afterglow PPSA47770 (01.000.006)** exits with code 1 about 17 s after launch, on `main` 60976d8a4. Machine: Windows 11, Radeon 680M, AMD Vulkan driver 32.0.21030. - **What the title waits for:** its GL stack (Mesa 26.2 gallium "PS5 AGC" plus its own `ps5-agc` submit layer) waits for each DCB's `ReleaseMem` label to retire. Its watchdog is `2000 × usleep(1000)` plus 200 ms, about 2.2 s. After that it prints `[ps5-agc] submission retirement failed; terminating application before cleanup` and calls `_Exit(1)`. The title redirects its stdout and stderr, so this is in `download0/hui/dev/app.log`. - **What gdb shows at that `_Exit`:** - The slot's label at `0x21ea8eff0` is still 0; the title expects `0x474c3701`. - `queue worker 0x0` is blocked in `AgcDriver::LockSpinning<std::recursive_mutex>` on `GuestMemory::GpuMutex`. - The mutex's owner thread (winpthread owner tid) is inside `AgcDriver::Graphics::LinkPipelineFromLibraries` → `amdvlk64`, linking a draw-time pipeline. - **Which pipeline:** it's the title's "backdrop" fragment shader, 95,460 bytes of ISA (`[ps5-gallium] compile-shader stage=5 ... bytes=95460 hash=28cacb58`). The title logs `program backdrop built in 7675 ms`. - **Result:** while the link holds `GpuMutex`, the queue can't retire the earlier submission's label within the title's 2.2 s, so the title ends. This happens on every run, with or without the pipeline cache. AI-assisted: yes
00xDisaster commented 2026-10-21 22:22:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by 00xDisaster on 2026-10-21T22:22:16Z.


Independent Linux/NVIDIA data point for the submit lookahead, from Pumpkin Jack (PPSA03446).

I ported the lookahead feature onto current main (this PR is based on an old commit and conflicts today, so this is a port of the feature, not of the PR head) and ran the same save twice, at the point where the title freezes for 7.3 s, with a fixed camera. Both runs started from the same 469-pipeline journal with no Vulkan pipeline cache; the only difference was APS5_NO_SUBMIT_LOOKAHEAD.

off on
worst draw ([draws] longest draw) 7,467.1 ms 1,075.2 ms
worst pipeline phase 15,763.4 ms 2,473.3 ms
worst pipeline subphase 7,453.7 ms 1,074.9 ms
journal replay at start-up 4,504 ms 5,653 ms

The pool saw 144,143 pipeline lookups, built 477 and found 143,666 already present, with 0 build failures and 0 dropped at teardown.

That is a 6.9x reduction of the worst draw: the 7.3 s freeze is gone. It is not a full elimination. About 1,400 draws failed the ahead-decode path over the run and were still built at use, and the remaining 1.07 s hitch is one of them, so the decode coverage of the ahead path is the part that still needs work.

I am not proposing a competing pipeline implementation; this is a measurement of the PR's own idea.

AI-assisted: no

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6327845174 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5925#issuecomment-6327845174). Originally posted by [00xDisaster](https://github.com/00xDisaster) on 2026-10-21T22:22:16Z. --- Independent Linux/NVIDIA data point for the submit lookahead, from Pumpkin Jack (PPSA03446). I ported the lookahead feature onto current `main` (this PR is based on an old commit and conflicts today, so this is a port of the feature, not of the PR head) and ran the same save twice, at the point where the title freezes for 7.3 s, with a fixed camera. Both runs started from the same 469-pipeline journal with no Vulkan pipeline cache; the only difference was `APS5_NO_SUBMIT_LOOKAHEAD`. | | off | on | |---|---|---| | worst draw (`[draws] longest draw`) | 7,467.1 ms | 1,075.2 ms | | worst pipeline phase | 15,763.4 ms | 2,473.3 ms | | worst pipeline subphase | 7,453.7 ms | 1,074.9 ms | | journal replay at start-up | 4,504 ms | 5,653 ms | The pool saw 144,143 pipeline lookups, built 477 and found 143,666 already present, with 0 build failures and 0 dropped at teardown. That is a 6.9x reduction of the worst draw: the 7.3 s freeze is gone. It is not a full elimination. About 1,400 draws failed the ahead-decode path over the run and were still built at use, and the remaining 1.07 s hitch is one of them, so the decode coverage of the ahead path is the part that still needs work. I am not proposing a competing pipeline implementation; this is a measurement of the PR's own idea. AI-assisted: no
milescoviello commented 2026-10-22 00:27:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-22T00:27:33Z.


Another title this would help, with numbers: Borderlands 4 (PPSA01494) on Linux/NVIDIA (RTX 4070 Ti, 615.71.09, main a6dcea9279).

  • The stop. In two of three cold runs it dies with Unreal's watchdog: GameThread timed out waiting for RenderThread after 120.00 secs (220 s into one run at 20 GB, 319 s into another at 12 GB). The core of the 220 s run shows the GPU queue thread inside vkCreateComputePipelines: Driver::run → execute → dispatch → VulkanDevice::PrepareDispatch → computePipeline → CreateComputePipeline, in NVIDIA's NVVM.
  • The pipelines. A third run with APS5_DUMP_COMPUTE_PIPELINES (at least 50,000 SPIR-V words) captured 128 compute pipelines in its first 320 s. Replayed one at a time with agc_compute_pipeline_replay and the driver's disk cache off, their vkCreateComputePipelines take 179 s in total. 63 of them take more than a second, and the slowest 8.7 s (a 2.7 MB capture). No single one is near 120 s. But all of them are built on the queue thread at their first dispatch, so a level that brings dozens of new ones at once keeps the render thread waiting. That's why the stop moves between runs, and why the capture run happened not to hit it.

So building these ahead on a pool would take the whole 179 s off the queue thread for this title. I can run a rebased head of this PR on Borderlands 4 if that would help.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6329658873 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5925#issuecomment-6329658873). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-22T00:27:33Z. --- Another title this would help, with numbers: **Borderlands 4 (PPSA01494)** on Linux/NVIDIA (RTX 4070 Ti, 615.71.09, `main` a6dcea9279). - **The stop.** In two of three cold runs it dies with Unreal's watchdog: `GameThread timed out waiting for RenderThread after 120.00 secs` (220 s into one run at 20 GB, 319 s into another at 12 GB). The core of the 220 s run shows the GPU queue thread inside `vkCreateComputePipelines`: `Driver::run` → `execute` → `dispatch` → `VulkanDevice::PrepareDispatch` → `computePipeline` → `CreateComputePipeline`, in NVIDIA's NVVM. - **The pipelines.** A third run with `APS5_DUMP_COMPUTE_PIPELINES` (at least 50,000 SPIR-V words) captured 128 compute pipelines in its first 320 s. Replayed one at a time with `agc_compute_pipeline_replay` and the driver's disk cache off, their `vkCreateComputePipelines` take **179 s in total**. 63 of them take more than a second, and the slowest 8.7 s (a 2.7 MB capture). No single one is near 120 s. But all of them are built on the queue thread at their first dispatch, so a level that brings dozens of new ones at once keeps the render thread waiting. That's why the stop moves between runs, and why the capture run happened not to hit it. So building these ahead on a pool would take the whole 179 s off the queue thread for this title. I can run a rebased head of this PR on Borderlands 4 if that would help. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-22 00:38:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-22T00:38:37Z.


A warm control for the Borderlands 4 numbers above, same build (main a6dcea9279), 16 GB, 600 s. This run kept the shader cache and pipeline journal from the earlier runs. At startup [pipeline-journal] loaded 744 pipelines and 806 modules (276.0 MiB) ... in 255 ms. It ran the full 603 s with no watchdog stop and reached the first-boot Accessibility screen by 420 s (about 1.5 FPS there). That's one run, against two watchdog stops in three cold runs. It points the same way: once the pipelines exist before their first dispatch, the queue thread stops blocking the render thread.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6329804892 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5925#issuecomment-6329804892). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-22T00:38:37Z. --- A warm control for the Borderlands 4 numbers above, same build (`main` a6dcea9279), 16 GB, 600 s. This run kept the shader cache and pipeline journal from the earlier runs. At startup `[pipeline-journal] loaded 744 pipelines and 806 modules (276.0 MiB) ... in 255 ms`. It ran the full 603 s with no watchdog stop and reached the first-boot Accessibility screen by 420 s (about 1.5 FPS there). That's one run, against two watchdog stops in three cold runs. It points the same way: once the pipelines exist before their first dispatch, the queue thread stops blocking the render thread. AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-11-14 11:26:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T11:26:22Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change; the reviewed code and reported test results support the submission lookahead design.

What I ran

  • Reviewed head 3339ddd3af77cfc336148966657c0d14e87b6ae1 using the prepared diff and repo_read.py at the pinned head.
  • No commands or tests were run in this review.

Results

Check Result Note
Diff and targeted source review passed Core lookahead path inspected
Tests not run Results in the PR description are author reported

Findings

Blocking

None.

Non-blocking

None.

Not verified

  • The changed test files core/libs/prx/libSceAgcDriver/tests/Graphics.cpp and core/libs/prx/libSceAgcDriver/tests/Recorder.cpp were excluded from the review folder because they were too large; they were not read from the pinned head.
  • The full text and every added line of all other changed files were not reviewed. Targeted reads covered the description, commit list, manifest, diff through line 480, and the complete DispatchAhead.cpp and PacketExecution.cpp files. No finding is made about unread code.
  • Reported test, benchmark, validation and device results were not independently confirmed.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5904074629 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5925#pullrequestreview-5904074629). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T11:26:22Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change; the reviewed code and reported test results support the submission lookahead design. ## What I ran - Reviewed head `3339ddd3af77cfc336148966657c0d14e87b6ae1` using the prepared diff and `repo_read.py` at the pinned head. - No commands or tests were run in this review. ## Results | Check | Result | Note | | --- | --- | --- | | Diff and targeted source review | passed | Core lookahead path inspected | | Tests | not run | Results in the PR description are author reported | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified - The changed test files `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` and `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` were excluded from the review folder because they were too large; they were not read from the pinned head. - The full text and every added line of all other changed files were not reviewed. Targeted reads covered the description, commit list, manifest, diff through line 480, and the complete `DispatchAhead.cpp` and `PacketExecution.cpp` files. No finding is made about unread code. - Reported test, benchmark, validation and device results were not independently confirmed. ## To get this to a good state Nothing is required.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/5925:upstream-pr/5925'
git switch 'upstream-pr/5925'

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 'upstream-pr/5925'
git switch 'upstream-pr/5925'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/5925'
git switch 'upstream-pr/5925'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/5925'
git switch 'main'
git merge --squash 'upstream-pr/5925'
git switch 'main'
git merge --ff-only 'upstream-pr/5925'
git switch 'main'
git merge 'upstream-pr/5925'
git push origin 'main'
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!5925
No description provided.