perf: RESIDENT EVIL requiem cutscene at ~1 s per frame: about 1 ms of resource building per draw, and its indirect draws miss the draw cache #11795

Open
opened 2026-10-27 07:45:32 +00:00 by QRMOE · 0 comments
QRMOE commented 2026-10-27 07:45:32 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by QRMOE on 2026-10-27T07:45:32Z.


Title and scene

RESIDENT EVIL requiem (PPSA31246, 01.200.000), the opening cutscene after Main Story > New Game > Standard (Modern), presents 1509-1526 (from 480 s after launch). Bring-up thread: #11599.

What is slow or what changed

The cutscene renders correctly but runs at about 1 frame per second, and the next area slower (up to about 6 s per frame). The GPU is busy about 190 ms per frame; the driver's CPU side takes the rest, on about two threads, so CPU and GPU utilization both stay low. This report is the measurement, plus what has and hasn't helped, in case someone who knows the draw path can take part of it on. Help wanted.

Per frame in this window: about 1,080 packets on queue worker 0x0, about 771 draws and 251 dispatches.

  • Driver.Packet.draw: 1,288 ms inclusive per frame.
  • Resources.Complete: 426 ms of own time over 240 calls.
  • Graphics.Draw.draw_and_resource_release: 318 ms of own time.
  • Driver.Draw.gpu_mutex_wait: 192 ms.
  • Queue worker 0x0 is 99.8% busy and 0x28 98%.

From earlier runs of the same scene (same machine; those runs redirected the log, so their frame times are not comparable with this capture's):

  • APS5_PIPELINE_STATS: each draw costs about 1.1 ms on the draw committer (3,100-3,500 commits per 10 s).

  • APS5_SAMPLE_COMMITTER: nearly all of it is ShaderResources::ShaderResources, about half in prepareAddressBindings > GuestBufferMemory::AcquireRegistered, then buildComplete and resolveImageTables. Queue worker 0x0's samples (APS5_SAMPLE_WORKER) are mostly waits in DrawPipeline::Drain / Enqueue.

  • APS5_TRACE_DRAW_CACHE: 0 hits out of 7,000-10,000 lookups per 10 s. About 99% of the misses are "no entry: user words/pointers only", and user data changed on 4,000-5,500 misses per 10 s.

  • A temporary counter at the data-hit branch in Driver::draw (decode == nullptr && drawDataHits() && !drawParameters.indirect) put every one of those misses down to drawParameters.indirect. The draws in this scene are indirect, and indirect draws skip:

    • data hits;
    • the shape refresh (shapeNeedsEntry);
    • draw recipes (registerKey && !drawParameters.indirect);
    • the draw finisher hand-off.

    Multi-record indirect draws also drain the queue-0 pipeline before their inline records (drainBeforeInline).

Tried, locally:

Change Result
APS5_LAZY_SHADER_PREPARE=1 APS5_NO_GPL=1 (from #5169) the base for everything here. Without them about 30,000 shaders are prepared after New Game, the pipeline-library store keeps every library, and memory reaches 58-61 GB at 3.0-3.4 s per frame; with them about 4,200 shaders, 27.8 GB, 0.95 s per frame
Indirect draws allowed onto the data-hit path APS5_VERIFY_DRAW_DATA_HITS=1 found no mismatch in 10 minutes (380-560 data hits per 10 s), but 0 stages were reused (760-1,120 compiled per 10 s): each draw points at its own per-object constants, so the captured reads never hold, and the content-keyed relocation can't match either. Without verification the cutscene got slower (1.5-2.8 s against 0.95-1.1 s per frame at the same presents)
APS5_PIPELINED_DRAWS=64 APS5_DRAW_PIPELINE=1 APS5_THREAD_PRIORITY=high slower: 1.4-1.7 s against 0.87-1.07 s per frame at presents 1437-1560, warm baseline in the same session
APS5_NO_PIPELINE_LTO=1 alone memory grew about 1.6 MB per prepared shader instead of 3.5 MB
#8887 no change on this title's menu

Not tried; where help would matter most:

  • Reusing a draw's resource layout, pipeline and descriptor structure when only its user-data pointers (per-draw constants) change, patching the new buffer addresses in. That is the case every draw here hits.
  • Making GuestBufferMemory::AcquireRegistered cheaper for addresses that repeat across draws.
  • Keeping multi-record indirect draws on the pipeline without the drain.

Not specific to this title as far as I can tell: Resident Evil Village (#5169) runs on the same engine and shows the same memory_wait-heavy, CPU-bound profile.

Summary lines

{"commit":"9fb48c3ebfe9","dirty":true,"env":{"APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LAZY_SHADER_PREPARE":"1","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_NO_GPL":"1","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TMP_MSAA_LINES":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"480:30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"seconds 480:30","first_present":1509,"ms":31655.747},"presents":17,"frame_ms":{"p50":1852.192,"p90":1918.755,"p99":2021.585,"max":2021.585},"gpu_busy_ms_per_present":186.638,"worker_busy_pct":{"queue worker 0x38":10.707,"queue worker 0x0":99.819,"queue worker 0x20":55.667,"queue worker 0x28":97.966},"top_phases_ms_per_frame":{"Driver.Packet":4918.654,"Driver.Packet.memory_wait":2582.587,"Graphics.Draw":1302.269,"Graphics.Draw.draw_and_resource_release":1291.413,"Driver.Packet.draw":1213.367,"Driver.Draw":1213.127,"Driver.Packet.dispatch":1010.155,"Resources.Complete":915.531},"trace_dropped":false,"trace":"aps5-trace-9fb48c3ebfe9-13360.json.gz"}

Traces

aps5-trace-re-requiem-cutscene-9fb48c3ebfe9.json.gz

Digest

tools/trace_digest.py

seconds 480:30 from present 1509: 17 presents, frame p50 1852.2 / p90 1918.8 / p99 2021.6 / max 2021.6 ms, GPU busy 186.6 ms per present
AMD Radeon RX 9070 XT, AMD proprietary driver 26.6.2 (LLPC), Windows 10.0.26200, 3840x2160, commit 9fb48c3ebfe9 (dirty), dropped: no

{"commit":"9fb48c3ebfe9","dirty":true,"env":{"APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LAZY_SHADER_PREPARE":"1","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_NO_GPL":"1","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TMP_MSAA_LINES":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"480:30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"seconds 480:30","first_present":1509,"ms":31655.747},"presents":17,"frame_ms":{"p50":1852.192,"p90":1918.755,"p99":2021.585,"max":2021.585},"gpu_busy_ms_per_present":186.638,"worker_busy_pct":{"queue worker 0x38":10.707,"queue worker 0x0":99.819,"queue worker 0x20":55.667,"queue worker 0x28":97.966},"top_phases_ms_per_frame":{"Driver.Packet":4918.654,"Driver.Packet.memory_wait":2582.587,"Graphics.Draw":1302.269,"Graphics.Draw.draw_and_resource_release":1291.413,"Driver.Packet.draw":1213.367,"Driver.Draw":1213.127,"Driver.Packet.dispatch":1010.155,"Resources.Complete":915.531},"trace_dropped":false,"trace":"aps5-trace-9fb48c3ebfe9-13360.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 1524: 2021.6 ms at 27772 ms: Driver.Packet (queue worker 0x0) 2013.7, Driver.Packet (queue worker 0x28) 1986.0, Driver.Packet.memory_wait (queue worker 0x28) 1944.9, Driver.WorkerWait (queue worker 0x38) 1637.0
  • present 1518: 1918.8 ms at 16628 ms: Driver.Packet (queue worker 0x0) 1910.8, Driver.Packet (queue worker 0x28) 1878.9, Driver.Packet.memory_wait (queue worker 0x28) 1839.3, Driver.WorkerWait (queue worker 0x38) 1730.1
  • present 1512: 1916.1 ms at 5544 ms: Driver.Packet (queue worker 0x0) 1908.3, Driver.Packet (queue worker 0x28) 1879.2, Driver.Packet.memory_wait (queue worker 0x28) 1790.7, Driver.WorkerWait (queue worker 0x38) 1612.8
  • present 1515: 1879.6 ms at 11103 ms: Driver.Packet (queue worker 0x0) 1871.0, Driver.Packet (queue worker 0x28) 1838.9, Driver.Packet.memory_wait (queue worker 0x28) 1832.9, Driver.WorkerWait (queue worker 0x38) 1749.4
  • present 1521: 1869.8 ms at 22197 ms: Driver.Packet (queue worker 0x0) 1861.7, Driver.Packet (queue worker 0x28) 1833.9, Driver.Packet.memory_wait (queue worker 0x28) 1781.3, Driver.WorkerWait (queue worker 0x38) 1622.2

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x38 129.7 (7 %) 1629.6 (88 %) 102.8 14.3 Driver.Packet 197.4, Driver.EndSubmission 0.0
queue worker 0x0 1444.6 (78 %) 411.2 (22 %) 6.3 71.0 Driver.Packet 1853.3
queue worker 0x20 166.0 (9 %) 1646.1 (88 %) 50.0 2.4 Driver.Packet 1036.3, Driver.EndSubmission 0.1
draw committer 684.8 (37 %) 81.1 (4 %) 1096.2 12.0 Graphics.Draw 678.8, Recorder.Sync 5.4
presenter 0.6 (0 %) 0.4 (0 %) 1861.1 0.1 VideoOut.Flip 1.0, Driver.Present 0.0
queue worker 0x28 2.4 (0 %) 1857.4 (100 %) 2.3 0.3 Driver.Packet 1824.0, Driver.EndSubmission 0.1
gpu 187.9 (10 %) 0.0 (0 %) 1674.2 0.0 batch 187.9

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 4911.0, Driver.Packet.memory_wait 2582.6, Driver.WorkerWait 2375.8, Driver.WorkerWait.dequeue_order 1561.9, Graphics.Draw 1298.5, Graphics.Draw.draw_and_resource_release 1287.3, Driver.Packet.draw 1212.5, Driver.Draw 1212.2, Driver.Packet.dispatch 1007.1, Resources.Complete 909.6

Longest waits

  • Driver.WorkerWait (queue worker 0x38) 1749.7 ms at 11234 ms, present 1515
  • Driver.WorkerWait (queue worker 0x38) 1730.0 ms at 16817 ms, present 1518
  • Driver.WorkerWait (queue worker 0x38) 1706.1 ms at 14922 ms, present 1517
  • Driver.WorkerWait (queue worker 0x38) 1696.9 ms at 7609 ms, present 1513
  • Driver.WorkerWait (queue worker 0x38) 1688.1 ms at 26084 ms, present 1523
  • Driver.WorkerWait (queue worker 0x38) 1665.6 ms at 20532 ms, present 1520
  • Driver.WorkerWait (queue worker 0x38) 1664.4 ms at 9439 ms, present 1514
  • Driver.WorkerWait (queue worker 0x38) 1652.7 ms at 200 ms, present 1509
  • Driver.Packet.memory_wait (queue worker 0x28) 1648.1 ms at 11295 ms, present 1515
  • Driver.WorkerWait (queue worker 0x38) 1641.5 ms at 24295 ms, present 1522

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 514: 23.9 ms at 7034 ms, present 1512: GPU no ranges; recorded by Graphics.Draw (draw committer) 29.7, Graphics.Draw.draw_and_resource_release (draw committer) 29.7, Resources.Complete (draw committer) 27.0, Resources.Prepare (draw committer) 0.1
  • batch 1584: 22.4 ms at 21285 ms, present 1520: GPU no ranges; recorded by Graphics.Draw (draw committer) 115.6, Graphics.Draw.draw_and_resource_release (draw committer) 115.3, Resources.Complete (draw committer) 51.9, Resources.Prepare (draw committer) 25.9
  • batch 2174: 22.2 ms at 29384 ms, present 1524: GPU no ranges; recorded by Graphics.Draw (draw committer) 30.6, Graphics.Draw.draw_and_resource_release (draw committer) 30.5, Resources.Complete (draw committer) 28.0, Resources.Prepare (draw committer) 0.1
  • batch 2309: 20.7 ms at 31202 ms, present 1525: GPU no ranges; recorded by Graphics.Draw (draw committer) 31.1, Graphics.Draw.draw_and_resource_release (draw committer) 31.1, Resources.Complete (draw committer) 28.4, Resources.Prepare (draw committer) 0.1
  • batch 649: 19.7 ms at 8877 ms, present 1513: GPU no ranges; recorded by Graphics.Draw (draw committer) 30.7, Graphics.Draw.draw_and_resource_release (draw committer) 30.6, Resources.Complete (draw committer) 27.9, Resources.Prepare (draw committer) 0.1

Worker stacks

Not attached. The sampler runs used other settings; the findings above summarise them.

Capture

  • The caches were warm (the scene ran once and the title was restarted)
  • No other APS5_TRACE_* or APS5_PROFILE_* switch was set and the log was not redirected
  • Captures compared here come from the same machine, scene and settings

The comparisons above come from earlier runs on the same machine and scene, with the log redirected to a file. This capture went to a console window and ran slower at the same presents (1.85 s against 0.87-1.07 s), so the console output itself costs time.

Build: main 74acfad65b with #10935, #10304, #9950, #11199, #11369, #11485 and #11580 merged, plus local-only changes (hence dirty):

  • libSceHttp2 from 88795ed448, because current main's sceHttp2SendRequestAsync throws;
  • a bypass of the MSAA_ENABLE on a single-sample target for primitives other than triangles and rectangles refusal, set by APS5_TMP_MSAA_LINES in the environment above;
  • diagnostic counters that print only under APS5_TRACE_DRAW_CACHE, which this capture didn't set.

APS5_DUMP_FRAMES_EVERY=20 reads back one frame in 20, for the scripted menu walk. RX 9070 XT (AMD 32.0.31021.1015), Ryzen 7 9800X3D, 32 GB RAM, Windows 11 26200, WinLibs GCC 15.2.0 r7, Release.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6055042292 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/11795). Originally posted by [QRMOE](https://github.com/QRMOE) on 2026-10-27T07:45:32Z. --- ### Title and scene RESIDENT EVIL requiem (PPSA31246, 01.200.000), the opening cutscene after Main Story > New Game > Standard (Modern), presents 1509-1526 (from 480 s after launch). Bring-up thread: #11599. ### What is slow or what changed The cutscene renders correctly but runs at about 1 frame per second, and the next area slower (up to about 6 s per frame). The GPU is busy about 190 ms per frame; the driver's CPU side takes the rest, on about two threads, so CPU and GPU utilization both stay low. This report is the measurement, plus what has and hasn't helped, in case someone who knows the draw path can take part of it on. Help wanted. **Per frame in this window:** about 1,080 packets on queue worker 0x0, about 771 draws and 251 dispatches. - `Driver.Packet.draw`: 1,288 ms inclusive per frame. - `Resources.Complete`: 426 ms of own time over 240 calls. - `Graphics.Draw.draw_and_resource_release`: 318 ms of own time. - `Driver.Draw.gpu_mutex_wait`: 192 ms. - Queue worker 0x0 is 99.8% busy and 0x28 98%. **From earlier runs of the same scene** (same machine; those runs redirected the log, so their frame times are not comparable with this capture's): - `APS5_PIPELINE_STATS`: each draw costs about 1.1 ms on the draw committer (3,100-3,500 commits per 10 s). - `APS5_SAMPLE_COMMITTER`: nearly all of it is `ShaderResources::ShaderResources`, about half in `prepareAddressBindings` > `GuestBufferMemory::AcquireRegistered`, then `buildComplete` and `resolveImageTables`. Queue worker 0x0's samples (`APS5_SAMPLE_WORKER`) are mostly waits in `DrawPipeline::Drain` / `Enqueue`. - `APS5_TRACE_DRAW_CACHE`: 0 hits out of 7,000-10,000 lookups per 10 s. About 99% of the misses are "no entry: user words/pointers only", and user data changed on 4,000-5,500 misses per 10 s. - A temporary counter at the data-hit branch in `Driver::draw` (`decode == nullptr && drawDataHits() && !drawParameters.indirect`) put every one of those misses down to `drawParameters.indirect`. The draws in this scene are indirect, and indirect draws skip: - data hits; - the shape refresh (`shapeNeedsEntry`); - draw recipes (`registerKey && !drawParameters.indirect`); - the draw finisher hand-off. Multi-record indirect draws also drain the queue-0 pipeline before their inline records (`drainBeforeInline`). **Tried, locally:** | Change | Result | |---|---| | `APS5_LAZY_SHADER_PREPARE=1 APS5_NO_GPL=1` (from #5169) | the base for everything here. Without them about 30,000 shaders are prepared after New Game, the pipeline-library store keeps every library, and memory reaches 58-61 GB at 3.0-3.4 s per frame; with them about 4,200 shaders, 27.8 GB, 0.95 s per frame | | Indirect draws allowed onto the data-hit path | `APS5_VERIFY_DRAW_DATA_HITS=1` found no mismatch in 10 minutes (380-560 data hits per 10 s), but 0 stages were reused (760-1,120 compiled per 10 s): each draw points at its own per-object constants, so the captured reads never hold, and the content-keyed relocation can't match either. Without verification the cutscene got slower (1.5-2.8 s against 0.95-1.1 s per frame at the same presents) | | `APS5_PIPELINED_DRAWS=64 APS5_DRAW_PIPELINE=1 APS5_THREAD_PRIORITY=high` | slower: 1.4-1.7 s against 0.87-1.07 s per frame at presents 1437-1560, warm baseline in the same session | | `APS5_NO_PIPELINE_LTO=1` alone | memory grew about 1.6 MB per prepared shader instead of 3.5 MB | | #8887 | no change on this title's menu | **Not tried; where help would matter most:** - Reusing a draw's resource layout, pipeline and descriptor structure when only its user-data pointers (per-draw constants) change, patching the new buffer addresses in. That is the case every draw here hits. - Making `GuestBufferMemory::AcquireRegistered` cheaper for addresses that repeat across draws. - Keeping multi-record indirect draws on the pipeline without the drain. Not specific to this title as far as I can tell: Resident Evil Village (#5169) runs on the same engine and shows the same `memory_wait`-heavy, CPU-bound profile. ### Summary lines ```json {"commit":"9fb48c3ebfe9","dirty":true,"env":{"APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LAZY_SHADER_PREPARE":"1","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_NO_GPL":"1","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TMP_MSAA_LINES":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"480:30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"seconds 480:30","first_present":1509,"ms":31655.747},"presents":17,"frame_ms":{"p50":1852.192,"p90":1918.755,"p99":2021.585,"max":2021.585},"gpu_busy_ms_per_present":186.638,"worker_busy_pct":{"queue worker 0x38":10.707,"queue worker 0x0":99.819,"queue worker 0x20":55.667,"queue worker 0x28":97.966},"top_phases_ms_per_frame":{"Driver.Packet":4918.654,"Driver.Packet.memory_wait":2582.587,"Graphics.Draw":1302.269,"Graphics.Draw.draw_and_resource_release":1291.413,"Driver.Packet.draw":1213.367,"Driver.Draw":1213.127,"Driver.Packet.dispatch":1010.155,"Resources.Complete":915.531},"trace_dropped":false,"trace":"aps5-trace-9fb48c3ebfe9-13360.json.gz"} ``` ### Traces [aps5-trace-re-requiem-cutscene-9fb48c3ebfe9.json.gz](https://github.com/user-attachments/files/34004071/aps5-trace-re-requiem-cutscene-9fb48c3ebfe9.json.gz) ### Digest <details><summary>tools/trace_digest.py</summary> **seconds 480:30** from present 1509: 17 presents, frame p50 1852.2 / p90 1918.8 / p99 2021.6 / max 2021.6 ms, GPU busy 186.6 ms per present AMD Radeon RX 9070 XT, AMD proprietary driver 26.6.2 (LLPC), Windows 10.0.26200, 3840x2160, commit 9fb48c3ebfe9 (dirty), dropped: no ```json {"commit":"9fb48c3ebfe9","dirty":true,"env":{"APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LAZY_SHADER_PREPARE":"1","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_NO_GPL":"1","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TMP_MSAA_LINES":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"480:30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"seconds 480:30","first_present":1509,"ms":31655.747},"presents":17,"frame_ms":{"p50":1852.192,"p90":1918.755,"p99":2021.585,"max":2021.585},"gpu_busy_ms_per_present":186.638,"worker_busy_pct":{"queue worker 0x38":10.707,"queue worker 0x0":99.819,"queue worker 0x20":55.667,"queue worker 0x28":97.966},"top_phases_ms_per_frame":{"Driver.Packet":4918.654,"Driver.Packet.memory_wait":2582.587,"Graphics.Draw":1302.269,"Graphics.Draw.draw_and_resource_release":1291.413,"Driver.Packet.draw":1213.367,"Driver.Draw":1213.127,"Driver.Packet.dispatch":1010.155,"Resources.Complete":915.531},"trace_dropped":false,"trace":"aps5-trace-9fb48c3ebfe9-13360.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 1524: 2021.6 ms at 27772 ms: Driver.Packet (queue worker 0x0) 2013.7, Driver.Packet (queue worker 0x28) 1986.0, Driver.Packet.memory_wait (queue worker 0x28) 1944.9, Driver.WorkerWait (queue worker 0x38) 1637.0 - present 1518: 1918.8 ms at 16628 ms: Driver.Packet (queue worker 0x0) 1910.8, Driver.Packet (queue worker 0x28) 1878.9, Driver.Packet.memory_wait (queue worker 0x28) 1839.3, Driver.WorkerWait (queue worker 0x38) 1730.1 - present 1512: 1916.1 ms at 5544 ms: Driver.Packet (queue worker 0x0) 1908.3, Driver.Packet (queue worker 0x28) 1879.2, Driver.Packet.memory_wait (queue worker 0x28) 1790.7, Driver.WorkerWait (queue worker 0x38) 1612.8 - present 1515: 1879.6 ms at 11103 ms: Driver.Packet (queue worker 0x0) 1871.0, Driver.Packet (queue worker 0x28) 1838.9, Driver.Packet.memory_wait (queue worker 0x28) 1832.9, Driver.WorkerWait (queue worker 0x38) 1749.4 - present 1521: 1869.8 ms at 22197 ms: Driver.Packet (queue worker 0x0) 1861.7, Driver.Packet (queue worker 0x28) 1833.9, Driver.Packet.memory_wait (queue worker 0x28) 1781.3, Driver.WorkerWait (queue worker 0x38) 1622.2 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x38 | 129.7 (7 %) | 1629.6 (88 %) | 102.8 | 14.3 | Driver.Packet 197.4, Driver.EndSubmission 0.0 | | queue worker 0x0 | 1444.6 (78 %) | 411.2 (22 %) | 6.3 | 71.0 | Driver.Packet 1853.3 | | queue worker 0x20 | 166.0 (9 %) | 1646.1 (88 %) | 50.0 | 2.4 | Driver.Packet 1036.3, Driver.EndSubmission 0.1 | | draw committer | 684.8 (37 %) | 81.1 (4 %) | 1096.2 | 12.0 | Graphics.Draw 678.8, Recorder.Sync 5.4 | | presenter | 0.6 (0 %) | 0.4 (0 %) | 1861.1 | 0.1 | VideoOut.Flip 1.0, Driver.Present 0.0 | | queue worker 0x28 | 2.4 (0 %) | 1857.4 (100 %) | 2.3 | 0.3 | Driver.Packet 1824.0, Driver.EndSubmission 0.1 | | gpu | 187.9 (10 %) | 0.0 (0 %) | 1674.2 | 0.0 | batch 187.9 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 4911.0, Driver.Packet.memory_wait 2582.6, Driver.WorkerWait 2375.8, Driver.WorkerWait.dequeue_order 1561.9, Graphics.Draw 1298.5, Graphics.Draw.draw_and_resource_release 1287.3, Driver.Packet.draw 1212.5, Driver.Draw 1212.2, Driver.Packet.dispatch 1007.1, Resources.Complete 909.6 **Longest waits** - Driver.WorkerWait (queue worker 0x38) 1749.7 ms at 11234 ms, present 1515 - Driver.WorkerWait (queue worker 0x38) 1730.0 ms at 16817 ms, present 1518 - Driver.WorkerWait (queue worker 0x38) 1706.1 ms at 14922 ms, present 1517 - Driver.WorkerWait (queue worker 0x38) 1696.9 ms at 7609 ms, present 1513 - Driver.WorkerWait (queue worker 0x38) 1688.1 ms at 26084 ms, present 1523 - Driver.WorkerWait (queue worker 0x38) 1665.6 ms at 20532 ms, present 1520 - Driver.WorkerWait (queue worker 0x38) 1664.4 ms at 9439 ms, present 1514 - Driver.WorkerWait (queue worker 0x38) 1652.7 ms at 200 ms, present 1509 - Driver.Packet.memory_wait (queue worker 0x28) 1648.1 ms at 11295 ms, present 1515 - Driver.WorkerWait (queue worker 0x38) 1641.5 ms at 24295 ms, present 1522 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 514: 23.9 ms at 7034 ms, present 1512: GPU no ranges; recorded by Graphics.Draw (draw committer) 29.7, Graphics.Draw.draw_and_resource_release (draw committer) 29.7, Resources.Complete (draw committer) 27.0, Resources.Prepare (draw committer) 0.1 - batch 1584: 22.4 ms at 21285 ms, present 1520: GPU no ranges; recorded by Graphics.Draw (draw committer) 115.6, Graphics.Draw.draw_and_resource_release (draw committer) 115.3, Resources.Complete (draw committer) 51.9, Resources.Prepare (draw committer) 25.9 - batch 2174: 22.2 ms at 29384 ms, present 1524: GPU no ranges; recorded by Graphics.Draw (draw committer) 30.6, Graphics.Draw.draw_and_resource_release (draw committer) 30.5, Resources.Complete (draw committer) 28.0, Resources.Prepare (draw committer) 0.1 - batch 2309: 20.7 ms at 31202 ms, present 1525: GPU no ranges; recorded by Graphics.Draw (draw committer) 31.1, Graphics.Draw.draw_and_resource_release (draw committer) 31.1, Resources.Complete (draw committer) 28.4, Resources.Prepare (draw committer) 0.1 - batch 649: 19.7 ms at 8877 ms, present 1513: GPU no ranges; recorded by Graphics.Draw (draw committer) 30.7, Graphics.Draw.draw_and_resource_release (draw committer) 30.6, Resources.Complete (draw committer) 27.9, Resources.Prepare (draw committer) 0.1 </details> ### Worker stacks Not attached. The sampler runs used other settings; the findings above summarise them. ### Capture - [x] The caches were warm (the scene ran once and the title was restarted) - [x] No other APS5_TRACE_* or APS5_PROFILE_* switch was set and the log was not redirected - [ ] Captures compared here come from the same machine, scene and settings The comparisons above come from earlier runs on the same machine and scene, with the log redirected to a file. This capture went to a console window and ran slower at the same presents (1.85 s against 0.87-1.07 s), so the console output itself costs time. Build: `main` 74acfad65b with #10935, #10304, #9950, #11199, #11369, #11485 and #11580 merged, plus local-only changes (hence `dirty`): - `libSceHttp2` from 88795ed448, because current `main`'s `sceHttp2SendRequestAsync` throws; - a bypass of the `MSAA_ENABLE on a single-sample target for primitives other than triangles and rectangles` refusal, set by `APS5_TMP_MSAA_LINES` in the environment above; - diagnostic counters that print only under `APS5_TRACE_DRAW_CACHE`, which this capture didn't set. `APS5_DUMP_FRAMES_EVERY=20` reads back one frame in 20, for the scripted menu walk. RX 9070 XT (AMD 32.0.31021.1015), Ryzen 7 9800X3D, 32 GB RAM, Windows 11 26200, WinLibs GCC 15.2.0 r7, Release. AI-assisted: yes (Claude Code).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#11795
No description provided.