perf: PPSA21567 Crash Site, a pixel shader's GDS append serializes on NVIDIA and costs ~16 ms of GPU per frame (RTX 5090, Windows) #15560

Open
opened 2026-11-03 19:00:03 +00:00 by TripyFox · 0 comments
TripyFox commented 2026-11-03 19:00:03 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by TripyFox on 2026-11-03T19:00:03Z.


Title and scene

PPSA21567 (ASTRO BOT 01.019.000), Crash Site hub entered with the title argument -lvl hub_crashsite, no input (APS5_NO_PAD_INPUT=1), standing at the spawn point. Video output 3840x2160. Presents 700-999.

What is slow or what changed

One draw per frame costs about 16 ms of GPU time on an RTX 5090, about a fifth of the GPU frame. Almost all of it is the translated ds_append on GDS in its pixel shader: about 3,500 returning OpAtomicIAdd per draw on one 32-bit word of the GDS buffer, which run one after another at about 4.4 µs each.

The draw. Vertex program 0x50054fb00, pixel program 0x500550800. It is vkCmdDraw(36, N) with N between about 1,500 and 1,900, recorded alone with no color, depth or stencil attachment and a 128x128 viewport, followed by a 16x16-group compute dispatch (0x50052a400). The pixel shader is a light/decal cluster build: ds_append on GDS for a record index, image_atomic_swap on a 32x128 head-pointer image, and two buffer_stores of the record.

Skipping it (APS5_SKIP_SHADER=500550800, which also drops the dependent dispatch), on main 1e658521a0, two alternating pairs, 300 presents each:

capture frame p50 frame p90 GPU busy per present
main 91.6 ms 96.4 ms 72.2 ms
main + skip 85.8 ms 90.3 ms 52.5 ms
main 93.8 ms 99.7 ms 74.0 ms
main + skip 87.3 ms 90.3 ms 53.3 ms

GPU busy drops by about 20 ms per present. The frame time drops by only about 6 ms, because at this point the frame is not GPU-bound. Four earlier 200 s runs with APS5_PROFILE_GPU=1 APS5_PROFILE_GPU_DRAWS=1 on 4f41f4c375 (plus one unrelated local blend-state commit) give the same split. The draw's [gputime] key loses 16 ms, the dispatch 2 ms, and no other key grows. GPU idle time goes from about 25 to about 40 ms per present.

RenderDoc 1.47 capture of one Crash Site frame on the same machine (4f41f4c375 plus the same unrelated blend-state commit), draw vkCmdDraw(36, 1523), GPU counters per event:

value
GPU duration 16.0-16.4 ms
pixel shader invocations 92,072
vertex shader invocations 54,828
rasterized primitives 14,494

So the fragment count is small. I then replaced the pixel shader inside the capture with edited copies of its own SPIR-V and re-timed the event, three replays each:

pixel shader GPU duration
as captured 16.0-16.5 ms
empty main 0.008 ms
GDS OpAtomicIAdd replaced by its operand (no atomic) 0.42-0.56 ms
GDS atomic kept, its result not used 0.50-0.56 ms
GDS atomic on 8,192 different words (index from FragCoord) 0.49-0.51 ms
GDS atomic moved to texel (0,0) of the device-local head-pointer image 16.6 ms
Coherent removed from the GDS buffer 16.0-16.1 ms
image OpAtomicExchange replaced by its operand 16.0-16.2 ms
OpMemoryBarrier Device AcquireRelease after the image atomic removed 16.4-16.6 ms

Reading the GDS buffer before and after the draw: the word grows by 92,072 with the captured shader, and by 3,500 when each atomic adds 1. So 3,500 subgroup-level atomics cost about 15.5 ms, about 4.4 µs each.

The cost needs a returned value and one shared word together. Memory placement, the Coherent decoration and the barriers make no difference. Under RenderDoc the GDS buffer is in a host-cached system-memory type, but the same atomic on a device-local image texel is just as slow. The emitter is AppendConsume in SpirvMemoryInstructions.cpp. It already aggregates per subgroup: one lane does OpAtomicIAdd at Device scope and the result is shuffled to the other lanes. I found no change in the shader that keeps the ds_append semantics (contiguous indices from one counter) and avoids the serialization.

Questions:

  • Does the same draw cost this much on AMD (RADV or the Windows driver), where a returning same-address atomic may not serialize this way? With APS5_PROFILE_GPU=1 APS5_PROFILE_GPU_DRAWS=1 it is the [gputime] key of fragment program 0x500550800.
  • Is there a known way to emulate GDS append in pixel shaders on NVIDIA that keeps contiguous indices without every subgroup waiting on the returned value of one shared word?

Summary lines

{"commit":"1e658521a0a5","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"700:300"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 621.01","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":65140,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"frames 700:300","first_present":700,"ms":27462.570},"presents":300,"frame_ms":{"p50":91.576,"p90":96.441,"p99":100.286,"max":102.307},"gpu_busy_ms_per_present":72.167,"worker_busy_pct":{"queue worker 0x0":97.365,"queue worker 0x40":99.729,"queue worker 0x48":99.688,"queue worker 0x46":1.624},"top_phases_ms_per_frame":{"Driver.Packet":272.179,"Driver.Packet.memory_wait":154.705,"Driver.Packet.draw":60.163,"Driver.Draw":59.757,"Graphics.Draw":46.352,"Graphics.Draw.draw_and_resource_release":37.209,"Driver.Draw.draw_enqueued":27.592,"Driver.Draw.shader_compile_and_link":26.215},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.706,"events_lost":777109,"totals_full":false},"draw committer":{"events_full_after_s":21.963,"events_lost":63919,"totals_full":false}},"trace":"aps5-trace-1e658521a0a5-32856.json.gz"}
{"commit":"1e658521a0a5","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_SKIP_SHADER":"500550800","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"700:300"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 621.01","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":65140,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"frames 700:300","first_present":700,"ms":25846.469},"presents":300,"frame_ms":{"p50":85.803,"p90":90.347,"p99":104.240,"max":109.329},"gpu_busy_ms_per_present":52.522,"worker_busy_pct":{"queue worker 0x0":97.246,"queue worker 0x40":99.729,"queue worker 0x48":99.679,"queue worker 0x46":0.612},"top_phases_ms_per_frame":{"Driver.Packet":255.213,"Driver.Packet.memory_wait":150.759,"Driver.Packet.draw":58.001,"Driver.Draw":57.596,"Graphics.Draw":44.285,"Graphics.Draw.draw_and_resource_release":35.250,"Driver.Draw.shader_compile_and_link":26.101,"Driver.Draw.draw_enqueued":25.556},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.290,"events_lost":775831,"totals_full":false},"draw committer":{"events_full_after_s":20.998,"events_lost":59578,"totals_full":false}},"trace":"aps5-trace-1e658521a0a5-15484.json.gz"}
{"commit":"1e658521a0a5","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"700:300"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 621.01","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":65140,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"frames 700:300","first_present":700,"ms":28184.626},"presents":300,"frame_ms":{"p50":93.794,"p90":99.693,"p99":108.682,"max":110.501},"gpu_busy_ms_per_present":73.961,"worker_busy_pct":{"queue worker 0x0":97.259,"queue worker 0x40":99.724,"queue worker 0x48":99.676,"queue worker 0x46":1.661},"top_phases_ms_per_frame":{"Driver.Packet":279.298,"Driver.Packet.memory_wait":159.136,"Driver.Packet.draw":61.228,"Driver.Draw":60.830,"Graphics.Draw":46.943,"Graphics.Draw.draw_and_resource_release":37.604,"Driver.Draw.draw_enqueued":27.996,"Driver.Draw.shader_compile_and_link":26.725},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.829,"events_lost":793126,"totals_full":false},"draw committer":{"events_full_after_s":22.252,"events_lost":68179,"totals_full":false}},"trace":"aps5-trace-1e658521a0a5-21160.json.gz"}
{"commit":"1e658521a0a5","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_SKIP_SHADER":"500550800","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"700:300"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 621.01","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":65140,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"frames 700:300","first_present":700,"ms":26178.096},"presents":300,"frame_ms":{"p50":87.295,"p90":90.326,"p99":93.181,"max":93.856},"gpu_busy_ms_per_present":53.282,"worker_busy_pct":{"queue worker 0x0":97.263,"queue worker 0x40":99.727,"queue worker 0x48":99.668,"queue worker 0x46":0.613},"top_phases_ms_per_frame":{"Driver.Packet":258.492,"Driver.Packet.memory_wait":152.664,"Driver.Packet.draw":58.603,"Driver.Draw":58.202,"Graphics.Draw":44.812,"Graphics.Draw.draw_and_resource_release":35.652,"Driver.Draw.draw_enqueued":26.157,"Driver.Draw.shader_compile_and_link":26.043},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.276,"events_lost":793645,"totals_full":false},"draw committer":{"events_full_after_s":20.798,"events_lost":66119,"totals_full":false}},"trace":"aps5-trace-1e658521a0a5-10520.json.gz"}

Traces

aps5-trace-1e658521a0a5-32856.json.gz and -21160 (main), -15484 and -10520 (main + APS5_SKIP_SHADER=500550800), to be attached in a comment. All four report trace_dropped: the buffers of queue worker 0x0 and the draw committer filled before the window ended (no totals_full, so the summary numbers are complete). I kept the default event count, because the form asks for no other APS5_TRACE_* switch.

Digest

main, aps5-trace-1e658521a0a5-32856:

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 15.7 (17 %) 0.8 (1 %) 75.0 30.0 Driver.Packet 16.2, Driver.EndSubmission 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 91.5 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 91.5 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
title 0.1 (0 %) 0.0 (0 %) 91.5 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.2 (0 %) 0.0 (0 %) 91.4 0.7 Shader.ResolveGraphicsStagesAbi 0.2, Shader.ResolveGraphicsAbi 0.0
title 0.2 (0 %) 0.0 (0 %) 91.4 0.3 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0
title 0.2 (0 %) 0.0 (0 %) 91.4 0.7 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0
queue worker 0x40 10.4 (11 %) 80.4 (88 %) 0.8 2.7 Driver.Packet 90.7, Driver.EndSubmission 0.1
queue worker 0x48 6.6 (7 %) 84.6 (92 %) 0.3 0.1 Driver.Packet 90.5, Driver.EndSubmission 0.7
draw committer 28.0 (31 %) 8.2 (9 %) 55.4 29.5 Graphics.Draw 25.1, Recorder.Sync 1.3
presenter 0.8 (1 %) 0.0 (0 %) 90.7 0.1 VideoOut.Flip 0.9, Driver.Present 0.0
queue worker 0x46 1.0 (1 %) 89.7 (98 %) 0.8 0.9 Driver.Packet 1.2, Driver.EndSubmission 0.0
title 0.1 (0 %) 0.0 (0 %) 91.4 0.2 Shader.ResolveGraphicsStagesAbi 0.1
gpu 72.2 (79 %) 0.0 (0 %) 19.4 0.0 batch 72.2

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 198.6, Driver.Packet.memory_wait 152.8, Driver.WorkerWait 89.8, Driver.WorkerWait.dequeue_order 82.4, batch 72.2, Graphics.Draw 25.3, Graphics.Draw.draw_and_resource_release 19.8, Driver.Packet.prepare_memory 16.8, Driver.Packet.dispatch 13.1, Driver.Dispatch 12.3

main + APS5_SKIP_SHADER=500550800, aps5-trace-1e658521a0a5-15484:

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 14.7 (17 %) 0.4 (0 %) 71.0 30.0 Driver.Packet 14.8, Driver.EndSubmission 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 86.2 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 86.2 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
title 0.1 (0 %) 0.0 (0 %) 86.1 0.6 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 86.1 0.3 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 86.1 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 86.1 0.6 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
queue worker 0x40 9.8 (11 %) 75.6 (88 %) 0.8 2.9 Driver.Packet 85.3, Driver.EndSubmission 0.1
queue worker 0x48 6.2 (7 %) 79.6 (92 %) 0.3 0.1 Driver.Packet 85.2, Driver.EndSubmission 0.6
draw committer 27.0 (31 %) 8.1 (9 %) 51.0 29.6 Graphics.Draw 24.0, Recorder.Submit 1.4
presenter 0.8 (1 %) 0.0 (0 %) 85.3 0.1 VideoOut.Flip 0.9, Driver.Present 0.0
queue worker 0x46 0.2 (0 %) 85.3 (99 %) 0.6 1.1 Driver.Packet 0.2, Driver.EndSubmission 0.0
title 0.1 (0 %) 0.0 (0 %) 86.1 0.2 Shader.ResolveGraphicsStagesAbi 0.1
gpu 52.5 (61 %) 0.0 (0 %) 33.6 0.0 batch 52.5

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 185.5, Driver.Packet.memory_wait 150.8, Driver.WorkerWait 85.6, Driver.WorkerWait.dequeue_order 83.5, batch 52.5, Graphics.Draw 24.1, Graphics.Draw.draw_and_resource_release 18.7, Driver.Packet.dispatch 12.2, Driver.Dispatch 11.4, Driver.Packet.draw 10.3

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

Built with WinLibs GCC 15.2.0 (Release). The RenderDoc capture and the shader variants can be shared on request.

AI-assisted: yes (Claude Code). The runs and the capture were made on the machine named in the summary lines.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6189234244 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/15560). Originally posted by [TripyFox](https://github.com/TripyFox) on 2026-11-03T19:00:03Z. --- ### Title and scene PPSA21567 (ASTRO BOT 01.019.000), Crash Site hub entered with the title argument `-lvl hub_crashsite`, no input (`APS5_NO_PAD_INPUT=1`), standing at the spawn point. Video output 3840x2160. Presents 700-999. ### What is slow or what changed One draw per frame costs about 16 ms of GPU time on an RTX 5090, about a fifth of the GPU frame. Almost all of it is the translated `ds_append` on GDS in its pixel shader: about 3,500 returning `OpAtomicIAdd` per draw on one 32-bit word of the GDS buffer, which run one after another at about 4.4 µs each. **The draw.** Vertex program 0x50054fb00, pixel program 0x500550800. It is `vkCmdDraw(36, N)` with N between about 1,500 and 1,900, recorded alone with no color, depth or stencil attachment and a 128x128 viewport, followed by a 16x16-group compute dispatch (0x50052a400). The pixel shader is a light/decal cluster build: `ds_append` on GDS for a record index, `image_atomic_swap` on a 32x128 head-pointer image, and two `buffer_store`s of the record. **Skipping it** (`APS5_SKIP_SHADER=500550800`, which also drops the dependent dispatch), on `main` 1e658521a0, two alternating pairs, 300 presents each: | capture | frame p50 | frame p90 | GPU busy per present | |---|---|---|---| | main | 91.6 ms | 96.4 ms | 72.2 ms | | main + skip | 85.8 ms | 90.3 ms | 52.5 ms | | main | 93.8 ms | 99.7 ms | 74.0 ms | | main + skip | 87.3 ms | 90.3 ms | 53.3 ms | GPU busy drops by about 20 ms per present. The frame time drops by only about 6 ms, because at this point the frame is not GPU-bound. Four earlier 200 s runs with `APS5_PROFILE_GPU=1 APS5_PROFILE_GPU_DRAWS=1` on 4f41f4c375 (plus one unrelated local blend-state commit) give the same split. The draw's `[gputime]` key loses 16 ms, the dispatch 2 ms, and no other key grows. GPU idle time goes from about 25 to about 40 ms per present. **RenderDoc 1.47 capture** of one Crash Site frame on the same machine (4f41f4c375 plus the same unrelated blend-state commit), draw `vkCmdDraw(36, 1523)`, GPU counters per event: | | value | |---|---| | GPU duration | 16.0-16.4 ms | | pixel shader invocations | 92,072 | | vertex shader invocations | 54,828 | | rasterized primitives | 14,494 | So the fragment count is small. I then replaced the pixel shader inside the capture with edited copies of its own SPIR-V and re-timed the event, three replays each: | pixel shader | GPU duration | |---|---| | as captured | 16.0-16.5 ms | | empty `main` | 0.008 ms | | GDS `OpAtomicIAdd` replaced by its operand (no atomic) | 0.42-0.56 ms | | GDS atomic kept, its result not used | 0.50-0.56 ms | | GDS atomic on 8,192 different words (index from FragCoord) | 0.49-0.51 ms | | GDS atomic moved to texel (0,0) of the device-local head-pointer image | 16.6 ms | | `Coherent` removed from the GDS buffer | 16.0-16.1 ms | | image `OpAtomicExchange` replaced by its operand | 16.0-16.2 ms | | `OpMemoryBarrier Device AcquireRelease` after the image atomic removed | 16.4-16.6 ms | Reading the GDS buffer before and after the draw: the word grows by 92,072 with the captured shader, and by 3,500 when each atomic adds 1. So 3,500 subgroup-level atomics cost about 15.5 ms, about 4.4 µs each. The cost needs a returned value and one shared word together. Memory placement, the `Coherent` decoration and the barriers make no difference. Under RenderDoc the GDS buffer is in a host-cached system-memory type, but the same atomic on a device-local image texel is just as slow. The emitter is `AppendConsume` in `SpirvMemoryInstructions.cpp`. It already aggregates per subgroup: one lane does `OpAtomicIAdd` at Device scope and the result is shuffled to the other lanes. I found no change in the shader that keeps the `ds_append` semantics (contiguous indices from one counter) and avoids the serialization. Questions: - Does the same draw cost this much on AMD (RADV or the Windows driver), where a returning same-address atomic may not serialize this way? With `APS5_PROFILE_GPU=1 APS5_PROFILE_GPU_DRAWS=1` it is the `[gputime]` key of fragment program 0x500550800. - Is there a known way to emulate GDS append in pixel shaders on NVIDIA that keeps contiguous indices without every subgroup waiting on the returned value of one shared word? ### Summary lines ```json {"commit":"1e658521a0a5","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"700:300"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 621.01","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":65140,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"frames 700:300","first_present":700,"ms":27462.570},"presents":300,"frame_ms":{"p50":91.576,"p90":96.441,"p99":100.286,"max":102.307},"gpu_busy_ms_per_present":72.167,"worker_busy_pct":{"queue worker 0x0":97.365,"queue worker 0x40":99.729,"queue worker 0x48":99.688,"queue worker 0x46":1.624},"top_phases_ms_per_frame":{"Driver.Packet":272.179,"Driver.Packet.memory_wait":154.705,"Driver.Packet.draw":60.163,"Driver.Draw":59.757,"Graphics.Draw":46.352,"Graphics.Draw.draw_and_resource_release":37.209,"Driver.Draw.draw_enqueued":27.592,"Driver.Draw.shader_compile_and_link":26.215},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.706,"events_lost":777109,"totals_full":false},"draw committer":{"events_full_after_s":21.963,"events_lost":63919,"totals_full":false}},"trace":"aps5-trace-1e658521a0a5-32856.json.gz"} {"commit":"1e658521a0a5","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_SKIP_SHADER":"500550800","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"700:300"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 621.01","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":65140,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"frames 700:300","first_present":700,"ms":25846.469},"presents":300,"frame_ms":{"p50":85.803,"p90":90.347,"p99":104.240,"max":109.329},"gpu_busy_ms_per_present":52.522,"worker_busy_pct":{"queue worker 0x0":97.246,"queue worker 0x40":99.729,"queue worker 0x48":99.679,"queue worker 0x46":0.612},"top_phases_ms_per_frame":{"Driver.Packet":255.213,"Driver.Packet.memory_wait":150.759,"Driver.Packet.draw":58.001,"Driver.Draw":57.596,"Graphics.Draw":44.285,"Graphics.Draw.draw_and_resource_release":35.250,"Driver.Draw.shader_compile_and_link":26.101,"Driver.Draw.draw_enqueued":25.556},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.290,"events_lost":775831,"totals_full":false},"draw committer":{"events_full_after_s":20.998,"events_lost":59578,"totals_full":false}},"trace":"aps5-trace-1e658521a0a5-15484.json.gz"} {"commit":"1e658521a0a5","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"700:300"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 621.01","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":65140,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"frames 700:300","first_present":700,"ms":28184.626},"presents":300,"frame_ms":{"p50":93.794,"p90":99.693,"p99":108.682,"max":110.501},"gpu_busy_ms_per_present":73.961,"worker_busy_pct":{"queue worker 0x0":97.259,"queue worker 0x40":99.724,"queue worker 0x48":99.676,"queue worker 0x46":1.661},"top_phases_ms_per_frame":{"Driver.Packet":279.298,"Driver.Packet.memory_wait":159.136,"Driver.Packet.draw":61.228,"Driver.Draw":60.830,"Graphics.Draw":46.943,"Graphics.Draw.draw_and_resource_release":37.604,"Driver.Draw.draw_enqueued":27.996,"Driver.Draw.shader_compile_and_link":26.725},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.829,"events_lost":793126,"totals_full":false},"draw committer":{"events_full_after_s":22.252,"events_lost":68179,"totals_full":false}},"trace":"aps5-trace-1e658521a0a5-21160.json.gz"} {"commit":"1e658521a0a5","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_SKIP_SHADER":"500550800","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"700:300"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 621.01","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":65140,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"frames 700:300","first_present":700,"ms":26178.096},"presents":300,"frame_ms":{"p50":87.295,"p90":90.326,"p99":93.181,"max":93.856},"gpu_busy_ms_per_present":53.282,"worker_busy_pct":{"queue worker 0x0":97.263,"queue worker 0x40":99.727,"queue worker 0x48":99.668,"queue worker 0x46":0.613},"top_phases_ms_per_frame":{"Driver.Packet":258.492,"Driver.Packet.memory_wait":152.664,"Driver.Packet.draw":58.603,"Driver.Draw":58.202,"Graphics.Draw":44.812,"Graphics.Draw.draw_and_resource_release":35.652,"Driver.Draw.draw_enqueued":26.157,"Driver.Draw.shader_compile_and_link":26.043},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.276,"events_lost":793645,"totals_full":false},"draw committer":{"events_full_after_s":20.798,"events_lost":66119,"totals_full":false}},"trace":"aps5-trace-1e658521a0a5-10520.json.gz"} ``` ### Traces `aps5-trace-1e658521a0a5-32856.json.gz` and `-21160` (main), `-15484` and `-10520` (main + `APS5_SKIP_SHADER=500550800`), to be attached in a comment. All four report `trace_dropped`: the buffers of queue worker 0x0 and the draw committer filled before the window ended (no `totals_full`, so the summary numbers are complete). I kept the default event count, because the form asks for no other `APS5_TRACE_*` switch. ### Digest main, `aps5-trace-1e658521a0a5-32856`: **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 15.7 (17 %) | 0.8 (1 %) | 75.0 | 30.0 | Driver.Packet 16.2, Driver.EndSubmission 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 91.5 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 91.5 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 91.5 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.2 (0 %) | 0.0 (0 %) | 91.4 | 0.7 | Shader.ResolveGraphicsStagesAbi 0.2, Shader.ResolveGraphicsAbi 0.0 | | title | 0.2 (0 %) | 0.0 (0 %) | 91.4 | 0.3 | Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0 | | title | 0.2 (0 %) | 0.0 (0 %) | 91.4 | 0.7 | Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0 | | queue worker 0x40 | 10.4 (11 %) | 80.4 (88 %) | 0.8 | 2.7 | Driver.Packet 90.7, Driver.EndSubmission 0.1 | | queue worker 0x48 | 6.6 (7 %) | 84.6 (92 %) | 0.3 | 0.1 | Driver.Packet 90.5, Driver.EndSubmission 0.7 | | draw committer | 28.0 (31 %) | 8.2 (9 %) | 55.4 | 29.5 | Graphics.Draw 25.1, Recorder.Sync 1.3 | | presenter | 0.8 (1 %) | 0.0 (0 %) | 90.7 | 0.1 | VideoOut.Flip 0.9, Driver.Present 0.0 | | queue worker 0x46 | 1.0 (1 %) | 89.7 (98 %) | 0.8 | 0.9 | Driver.Packet 1.2, Driver.EndSubmission 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 91.4 | 0.2 | Shader.ResolveGraphicsStagesAbi 0.1 | | gpu | 72.2 (79 %) | 0.0 (0 %) | 19.4 | 0.0 | batch 72.2 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 198.6, Driver.Packet.memory_wait 152.8, Driver.WorkerWait 89.8, Driver.WorkerWait.dequeue_order 82.4, batch 72.2, Graphics.Draw 25.3, Graphics.Draw.draw_and_resource_release 19.8, Driver.Packet.prepare_memory 16.8, Driver.Packet.dispatch 13.1, Driver.Dispatch 12.3 main + `APS5_SKIP_SHADER=500550800`, `aps5-trace-1e658521a0a5-15484`: **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 14.7 (17 %) | 0.4 (0 %) | 71.0 | 30.0 | Driver.Packet 14.8, Driver.EndSubmission 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 86.2 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 86.2 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 86.1 | 0.6 | Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 86.1 | 0.3 | Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 86.1 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 86.1 | 0.6 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | queue worker 0x40 | 9.8 (11 %) | 75.6 (88 %) | 0.8 | 2.9 | Driver.Packet 85.3, Driver.EndSubmission 0.1 | | queue worker 0x48 | 6.2 (7 %) | 79.6 (92 %) | 0.3 | 0.1 | Driver.Packet 85.2, Driver.EndSubmission 0.6 | | draw committer | 27.0 (31 %) | 8.1 (9 %) | 51.0 | 29.6 | Graphics.Draw 24.0, Recorder.Submit 1.4 | | presenter | 0.8 (1 %) | 0.0 (0 %) | 85.3 | 0.1 | VideoOut.Flip 0.9, Driver.Present 0.0 | | queue worker 0x46 | 0.2 (0 %) | 85.3 (99 %) | 0.6 | 1.1 | Driver.Packet 0.2, Driver.EndSubmission 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 86.1 | 0.2 | Shader.ResolveGraphicsStagesAbi 0.1 | | gpu | 52.5 (61 %) | 0.0 (0 %) | 33.6 | 0.0 | batch 52.5 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 185.5, Driver.Packet.memory_wait 150.8, Driver.WorkerWait 85.6, Driver.WorkerWait.dequeue_order 83.5, batch 52.5, Graphics.Draw 24.1, Graphics.Draw.draw_and_resource_release 18.7, Driver.Packet.dispatch 12.2, Driver.Dispatch 11.4, Driver.Packet.draw 10.3 ### 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 - [x] Captures compared here come from the same machine, scene and settings Built with WinLibs GCC 15.2.0 (Release). The RenderDoc capture and the shader variants can be shared on request. AI-assisted: yes (Claude Code). The runs and the capture were made on the machine named in the summary lines.
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#15560
No description provided.