perf: Red Dead Redemption (PPSA30528) G-buffer draws spend ~100x their GPU time reading vertex/index data in place from host imports #5895

Open
opened 2026-10-14 15:00:06 +00:00 by bcortezf · 1 comment
bcortezf commented 2026-10-14 15:00:06 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by bcortezf on 2026-10-14T15:00:06Z.


Title and scene

PPSA30528 (Red Dead Redemption), gameplay at Armadillo station right after the intro cutscene is skipped, 3840x2160, window 84-89 s after launch (APS5_TRACE_SECONDS=84:5).

What is slow or what changed

Gameplay runs at 3-4 FPS on an RTX 4070 SUPER and is GPU-bound: the presenter waits on the render fence for almost the whole frame. A per-draw breakdown with GPU timestamps shows that a single class of draws accounts for most of the GPU time:

  • Which draws: the G-buffer draws (3 color targets + depth, 2104x1184), about 900 per frame.
  • How little work each one does (pipeline statistics): ~570 primitives, ~1.1k vertex shader invocations and ~850 fragments per draw.
  • What each one costs: ~150-230 µs of GPU time. In total that is ~135-250 ms per frame.

An Nsight Graphics GPU Trace of those draws shows the GPU front end (GR) active ~98% of the time while the SMs are ~96% idle, with every unit under 2%. In other words, the draws are latency-bound, waiting on memory reads, not on shader work. The shaders themselves are not the cause: none of the open f32-fixup/denormal shader PRs changes their cost.

Cause: since c903d1adf (#2253), InPlaceDrawInput binds vertex and index ranges in place from their VK_EXT_external_memory_host import instead of copying them (CopyDrawInput). The GPU reads that imported memory far more slowly than memory the driver allocates. The snapshots are host-visible system memory as well, so the slowdown is specific to imports, not to PCIe in general.

Evidence:

Change Top draw (µs) GPU per frame (ms) Side effect
None (current behaviour) ~230 ~327 —
APS5_NO_HOST_IMPORT=1 ~1.9 ~98 Frame gets slower overall, because every input is copied on the CPU
Vertex/index inputs from CopyDrawInput's reusable snapshots (kept until write-watch sees a write) 227.5 → 1.8 323 → 100 Frame 326 → 227 ms. Worker CPU per draw does not grow (37.4 → 34.3 µs)

With the snapshot change the image is correct both in gameplay and in the intro cutscene, and the intro cutscene goes from 5.76 to 7.99 FPS.

Related: #5345 (the CPU side of the same scene: the single queue worker), #5692 (Windows direct host imports, CPU cost of comparing them), #3338 (why huge inputs must not be copied per draw; the fix keeps DrawInputBudget).

Fix proposed in a upcoming PR.

A/B on the same machine and scene, 3 interleaved runs per side, base = main a0f5916a2 + the local changes RDR needs to start:

frame p50 (ms) GPU busy per present (ms)
base 467.3 / 427.4 / 409.6 (mean 434.8) 301.5 / 202.6 / 218.0 (mean 240.7)
fix 481.4 / 425.5 / 418.8 (mean 441.9) 74.4 / 109.9 / 120.0 (mean 101.4)

The GPU time drops by 58%. Frame time does not move on this base, because the queue worker is CPU-bound at ~99% (#5345). On a base where the GPU is the limit (the same tree plus #494/#1193/#1202/#5216), the same change takes gameplay from 3.07 to 4.40 FPS.

Summary lines

{"commit":"b3fecb970208","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"84:5"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 84:5","first_present":1804,"ms":5423.029},"presents":12,"frame_ms":{"p50":467.301,"p90":478.966,"p99":480.131,"max":480.131},"gpu_busy_ms_per_present":301.519,"worker_busy_pct":{"queue worker 0x0":98.850},"top_phases_ms_per_frame":{"Driver.Packet":446.406,"Driver.Packet.draw":413.800,"Driver.Draw":411.849,"Driver.Draw.draw_and_resource_release":211.725,"Graphics.Draw":209.746,"Graphics.Draw.draw_and_resource_release":181.048,"Driver.Draw.shader_compile_and_link":145.095,"Shader.DrawStage":107.003},"trace_dropped":true,"trace":"aps5-trace-b3fecb970208-31100.json.gz"}
{"commit":"56552cf22f3b","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"84:5"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 84:5","first_present":1810,"ms":5288.821},"presents":11,"frame_ms":{"p50":481.361,"p90":523.931,"p99":546.852,"max":546.852},"gpu_busy_ms_per_present":74.433,"worker_busy_pct":{"queue worker 0x0":98.914},"top_phases_ms_per_frame":{"Driver.Packet":475.225,"Driver.Packet.draw":442.695,"Driver.Draw":440.721,"Driver.Draw.draw_and_resource_release":236.826,"Graphics.Draw":234.801,"Graphics.Draw.draw_and_resource_release":195.159,"Driver.Draw.shader_compile_and_link":146.212,"Shader.DrawStage":109.119},"trace_dropped":true,"trace":"aps5-trace-56552cf22f3b-36792.json.gz"}
{"commit":"b3fecb970208","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"84:5"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 84:5","first_present":1827,"ms":5126.528},"presents":12,"frame_ms":{"p50":427.358,"p90":434.081,"p99":440.820,"max":440.820},"gpu_busy_ms_per_present":202.598,"worker_busy_pct":{"queue worker 0x0":98.835},"top_phases_ms_per_frame":{"Driver.Packet":421.880,"Driver.Packet.draw":391.484,"Driver.Draw":389.649,"Driver.Draw.draw_and_resource_release":202.266,"Graphics.Draw":200.362,"Graphics.Draw.draw_and_resource_release":173.077,"Driver.Draw.shader_compile_and_link":133.373,"Shader.DrawStage":98.401},"trace_dropped":true,"trace":"aps5-trace-b3fecb970208-33816.json.gz"}
{"commit":"56552cf22f3b","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"84:5"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 84:5","first_present":1818,"ms":5088.230},"presents":12,"frame_ms":{"p50":425.503,"p90":431.806,"p99":436.135,"max":436.135},"gpu_busy_ms_per_present":109.907,"worker_busy_pct":{"queue worker 0x0":98.953},"top_phases_ms_per_frame":{"Driver.Packet":419.247,"Driver.Packet.draw":389.148,"Driver.Draw":387.310,"Driver.Draw.draw_and_resource_release":208.329,"Graphics.Draw":206.544,"Graphics.Draw.draw_and_resource_release":171.396,"Driver.Draw.shader_compile_and_link":127.402,"Shader.DrawStage":95.097},"trace_dropped":true,"trace":"aps5-trace-56552cf22f3b-25704.json.gz"}
{"commit":"b3fecb970208","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"84:5"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 84:5","first_present":1803,"ms":5324.235},"presents":13,"frame_ms":{"p50":409.623,"p90":413.693,"p99":417.159,"max":417.159},"gpu_busy_ms_per_present":217.966,"worker_busy_pct":{"queue worker 0x0":98.869},"top_phases_ms_per_frame":{"Driver.Packet":404.579,"Driver.Packet.draw":375.495,"Driver.Draw":373.708,"Driver.Draw.draw_and_resource_release":192.983,"Graphics.Draw":191.215,"Graphics.Draw.draw_and_resource_release":164.856,"Driver.Draw.shader_compile_and_link":128.363,"Shader.DrawStage":94.762},"trace_dropped":true,"trace":"aps5-trace-b3fecb970208-29284.json.gz"}
{"commit":"56552cf22f3b","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"84:5"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 84:5","first_present":1908,"ms":5030.768},"presents":12,"frame_ms":{"p50":418.779,"p90":423.634,"p99":426.834,"max":426.834},"gpu_busy_ms_per_present":120.020,"worker_busy_pct":{"queue worker 0x0":98.943},"top_phases_ms_per_frame":{"Driver.Packet":414.544,"Driver.Packet.draw":384.097,"Driver.Draw":382.371,"Driver.Draw.draw_and_resource_release":206.615,"Graphics.Draw":204.857,"Graphics.Draw.draw_and_resource_release":170.063,"Driver.Draw.shader_compile_and_link":124.699,"Shader.DrawStage":93.354},"trace_dropped":true,"trace":"aps5-trace-56552cf22f3b-20876.json.gz"}

Traces

fix-1-aps5-trace-56552cf22f3b-36792.json.gz
fix-2-aps5-trace-56552cf22f3b-25704.json.gz
fix-3-aps5-trace-56552cf22f3b-20876.json.gz

Digest

seconds 84:5 from present 1804: 12 presents, frame p50 467.3 / p90 479.0 / p99 480.1 / max 480.1 ms, GPU busy 301.5 ms per present
NVIDIA GeForce RTX 4070 SUPER, NVIDIA 616.64, Windows 10.0.26200, 3840x2160, commit b3fecb970208, dropped: yes

{"commit":"b3fecb970208","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"84:5"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 84:5","first_present":1804,"ms":5423.029},"presents":12,"frame_ms":{"p50":467.301,"p90":478.966,"p99":480.131,"max":480.131},"gpu_busy_ms_per_present":301.519,"worker_busy_pct":{"queue worker 0x0":98.85},"top_phases_ms_per_frame":{"Driver.Packet":446.406,"Driver.Packet.draw":413.8,"Driver.Draw":411.849,"Driver.Draw.draw_and_resource_release":211.725,"Graphics.Draw":209.746,"Graphics.Draw.draw_and_resource_release":181.048,"Driver.Draw.shader_compile_and_link":145.095,"Shader.DrawStage":107.003},"trace_dropped":true,"trace":"aps5-trace-b3fecb970208-31100.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 1810: 480.1 ms at 2710 ms: Driver.Packet (queue worker 0x0) 454.2, Driver.Packet.draw (queue worker 0x0) 438.9, Driver.Draw (queue worker 0x0) 436.9, batch (gpu) 320.5
  • present 1809: 479.0 ms at 2231 ms: Driver.Packet (queue worker 0x0) 452.6, Driver.Packet.draw (queue worker 0x0) 436.6, Driver.Draw (queue worker 0x0) 434.6, batch (gpu) 313.1
  • present 1806: 475.3 ms at 928 ms: Driver.Packet (queue worker 0x0) 448.5, Driver.Packet.draw (queue worker 0x0) 432.7, Driver.Draw (queue worker 0x0) 430.7, batch (gpu) 306.0
  • present 1805: 469.7 ms at 458 ms: Driver.Packet (queue worker 0x0) 445.0, Driver.Packet.draw (queue worker 0x0) 431.5, Driver.Draw (queue worker 0x0) 429.5, batch (gpu) 288.1
  • present 1812: 467.5 ms at 3657 ms: batch (gpu) 310.0, Driver.Present (presenter) 62.2, Driver.Present.render_fence_wait (presenter) 61.7, Vulkan.Retire (presenter) 61.7

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 281.7 (62 %) 0.0 (0 %) 170.2 223.9 Driver.Packet 281.5, Driver.Completion 0.2
presenter 0.6 (0 %) 51.2 (11 %) 400.2 0.0 Driver.Present 51.8
gpu 265.2 (59 %) 0.0 (0 %) 186.7 0.0 batch 265.2

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 281.5, Driver.Packet.draw 272.9, Driver.Draw 271.6, batch 265.2, Driver.Draw.draw_and_resource_release 127.0, Graphics.Draw 125.7, Graphics.Draw.draw_and_resource_release 100.9, Driver.Draw.shader_compile_and_link 72.6, Driver.Present 51.8, Driver.Present.render_fence_wait 51.2

Longest waits

  • Driver.Present.render_fence_wait (presenter) 63.1 ms at 1 ms, present 1804
  • Driver.Present.render_fence_wait (presenter) 62.4 ms at 929 ms, present 1806
  • Driver.Present.render_fence_wait (presenter) 61.7 ms at 3658 ms, present 1812
  • Driver.Present.render_fence_wait (presenter) 61.5 ms at 3191 ms, present 1811
  • Driver.Present.render_fence_wait (presenter) 61.1 ms at 2710 ms, present 1810
  • Driver.Present.render_fence_wait (presenter) 55.2 ms at 2232 ms, present 1809
  • Driver.Present.render_fence_wait (presenter) 53.1 ms at 4125 ms, present 1813
  • Driver.Present.render_fence_wait (presenter) 50.1 ms at 459 ms, present 1805
  • Driver.Present.render_fence_wait (presenter) 40.2 ms at 1819 ms, present 1808
  • Driver.Present.render_fence_wait (presenter) 35.8 ms at 4563 ms, present 1814

Worker stacks

No response

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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5850169186 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5895). Originally posted by [bcortezf](https://github.com/bcortezf) on 2026-10-14T15:00:06Z. --- ### Title and scene PPSA30528 (Red Dead Redemption), gameplay at Armadillo station right after the intro cutscene is skipped, 3840x2160, window 84-89 s after launch (`APS5_TRACE_SECONDS=84:5`). ### What is slow or what changed Gameplay runs at 3-4 FPS on an RTX 4070 SUPER and is GPU-bound: the presenter waits on the render fence for almost the whole frame. A per-draw breakdown with GPU timestamps shows that a single class of draws accounts for most of the GPU time: - **Which draws:** the G-buffer draws (3 color targets + depth, 2104x1184), about 900 per frame. - **How little work each one does** (pipeline statistics): ~570 primitives, ~1.1k vertex shader invocations and ~850 fragments per draw. - **What each one costs:** ~150-230 µs of GPU time. In total that is ~135-250 ms per frame. An Nsight Graphics GPU Trace of those draws shows the GPU front end (GR) active ~98% of the time while the SMs are ~96% idle, with every unit under 2%. In other words, the draws are latency-bound, waiting on memory reads, not on shader work. The shaders themselves are not the cause: none of the open f32-fixup/denormal shader PRs changes their cost. **Cause:** since c903d1adf (#2253), `InPlaceDrawInput` binds vertex and index ranges in place from their `VK_EXT_external_memory_host` import instead of copying them (`CopyDrawInput`). The GPU reads that imported memory far more slowly than memory the driver allocates. The snapshots are host-visible system memory as well, so the slowdown is specific to imports, not to PCIe in general. **Evidence:** | Change | Top draw (µs) | GPU per frame (ms) | Side effect | |---|---|---|---| | None (current behaviour) | ~230 | ~327 | — | | `APS5_NO_HOST_IMPORT=1` | ~1.9 | ~98 | Frame gets slower overall, because every input is copied on the CPU | | Vertex/index inputs from `CopyDrawInput`'s reusable snapshots (kept until write-watch sees a write) | 227.5 → 1.8 | 323 → 100 | Frame 326 → 227 ms. Worker CPU per draw does not grow (37.4 → 34.3 µs) | With the snapshot change the image is correct both in gameplay and in the intro cutscene, and the intro cutscene goes from 5.76 to 7.99 FPS. Related: #5345 (the CPU side of the same scene: the single queue worker), #5692 (Windows direct host imports, CPU cost of comparing them), #3338 (why huge inputs must not be copied per draw; the fix keeps `DrawInputBudget`). Fix proposed in a upcoming PR. A/B on the same machine and scene, 3 interleaved runs per side, base = `main` a0f5916a2 + the local changes RDR needs to start: | | frame p50 (ms) | GPU busy per present (ms) | |---|---|---| | base | 467.3 / 427.4 / 409.6 (mean 434.8) | 301.5 / 202.6 / 218.0 (mean 240.7) | | fix | 481.4 / 425.5 / 418.8 (mean 441.9) | 74.4 / 109.9 / 120.0 (mean 101.4) | The GPU time drops by 58%. Frame time does not move on this base, because the queue worker is CPU-bound at ~99% (#5345). On a base where the GPU is the limit (the same tree plus #494/#1193/#1202/#5216), the same change takes gameplay from 3.07 to 4.40 FPS. <!-- ===== Summary lines ===== --> <!-- paste: base runs' lines from aps5-summary.jsonl (see PR.md for the measured values) --> <!-- ===== Traces ===== --> <!-- attach: the aps5-trace-*.json.gz of the base runs --> <!-- ===== Digest ===== --> <!-- paste: python3 tools/trace_digest.py <base trace> --> ### Summary lines ```json {"commit":"b3fecb970208","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"84:5"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 84:5","first_present":1804,"ms":5423.029},"presents":12,"frame_ms":{"p50":467.301,"p90":478.966,"p99":480.131,"max":480.131},"gpu_busy_ms_per_present":301.519,"worker_busy_pct":{"queue worker 0x0":98.850},"top_phases_ms_per_frame":{"Driver.Packet":446.406,"Driver.Packet.draw":413.800,"Driver.Draw":411.849,"Driver.Draw.draw_and_resource_release":211.725,"Graphics.Draw":209.746,"Graphics.Draw.draw_and_resource_release":181.048,"Driver.Draw.shader_compile_and_link":145.095,"Shader.DrawStage":107.003},"trace_dropped":true,"trace":"aps5-trace-b3fecb970208-31100.json.gz"} {"commit":"56552cf22f3b","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"84:5"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 84:5","first_present":1810,"ms":5288.821},"presents":11,"frame_ms":{"p50":481.361,"p90":523.931,"p99":546.852,"max":546.852},"gpu_busy_ms_per_present":74.433,"worker_busy_pct":{"queue worker 0x0":98.914},"top_phases_ms_per_frame":{"Driver.Packet":475.225,"Driver.Packet.draw":442.695,"Driver.Draw":440.721,"Driver.Draw.draw_and_resource_release":236.826,"Graphics.Draw":234.801,"Graphics.Draw.draw_and_resource_release":195.159,"Driver.Draw.shader_compile_and_link":146.212,"Shader.DrawStage":109.119},"trace_dropped":true,"trace":"aps5-trace-56552cf22f3b-36792.json.gz"} {"commit":"b3fecb970208","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"84:5"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 84:5","first_present":1827,"ms":5126.528},"presents":12,"frame_ms":{"p50":427.358,"p90":434.081,"p99":440.820,"max":440.820},"gpu_busy_ms_per_present":202.598,"worker_busy_pct":{"queue worker 0x0":98.835},"top_phases_ms_per_frame":{"Driver.Packet":421.880,"Driver.Packet.draw":391.484,"Driver.Draw":389.649,"Driver.Draw.draw_and_resource_release":202.266,"Graphics.Draw":200.362,"Graphics.Draw.draw_and_resource_release":173.077,"Driver.Draw.shader_compile_and_link":133.373,"Shader.DrawStage":98.401},"trace_dropped":true,"trace":"aps5-trace-b3fecb970208-33816.json.gz"} {"commit":"56552cf22f3b","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"84:5"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 84:5","first_present":1818,"ms":5088.230},"presents":12,"frame_ms":{"p50":425.503,"p90":431.806,"p99":436.135,"max":436.135},"gpu_busy_ms_per_present":109.907,"worker_busy_pct":{"queue worker 0x0":98.953},"top_phases_ms_per_frame":{"Driver.Packet":419.247,"Driver.Packet.draw":389.148,"Driver.Draw":387.310,"Driver.Draw.draw_and_resource_release":208.329,"Graphics.Draw":206.544,"Graphics.Draw.draw_and_resource_release":171.396,"Driver.Draw.shader_compile_and_link":127.402,"Shader.DrawStage":95.097},"trace_dropped":true,"trace":"aps5-trace-56552cf22f3b-25704.json.gz"} {"commit":"b3fecb970208","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"84:5"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 84:5","first_present":1803,"ms":5324.235},"presents":13,"frame_ms":{"p50":409.623,"p90":413.693,"p99":417.159,"max":417.159},"gpu_busy_ms_per_present":217.966,"worker_busy_pct":{"queue worker 0x0":98.869},"top_phases_ms_per_frame":{"Driver.Packet":404.579,"Driver.Packet.draw":375.495,"Driver.Draw":373.708,"Driver.Draw.draw_and_resource_release":192.983,"Graphics.Draw":191.215,"Graphics.Draw.draw_and_resource_release":164.856,"Driver.Draw.shader_compile_and_link":128.363,"Shader.DrawStage":94.762},"trace_dropped":true,"trace":"aps5-trace-b3fecb970208-29284.json.gz"} {"commit":"56552cf22f3b","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"84:5"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 84:5","first_present":1908,"ms":5030.768},"presents":12,"frame_ms":{"p50":418.779,"p90":423.634,"p99":426.834,"max":426.834},"gpu_busy_ms_per_present":120.020,"worker_busy_pct":{"queue worker 0x0":98.943},"top_phases_ms_per_frame":{"Driver.Packet":414.544,"Driver.Packet.draw":384.097,"Driver.Draw":382.371,"Driver.Draw.draw_and_resource_release":206.615,"Graphics.Draw":204.857,"Graphics.Draw.draw_and_resource_release":170.063,"Driver.Draw.shader_compile_and_link":124.699,"Shader.DrawStage":93.354},"trace_dropped":true,"trace":"aps5-trace-56552cf22f3b-20876.json.gz"} ``` ### Traces [fix-1-aps5-trace-56552cf22f3b-36792.json.gz](https://github.com/user-attachments/files/33442217/fix-1-aps5-trace-56552cf22f3b-36792.json.gz) [fix-2-aps5-trace-56552cf22f3b-25704.json.gz](https://github.com/user-attachments/files/33442216/fix-2-aps5-trace-56552cf22f3b-25704.json.gz) [fix-3-aps5-trace-56552cf22f3b-20876.json.gz](https://github.com/user-attachments/files/33442215/fix-3-aps5-trace-56552cf22f3b-20876.json.gz) ### Digest **seconds 84:5** from present 1804: 12 presents, frame p50 467.3 / p90 479.0 / p99 480.1 / max 480.1 ms, GPU busy 301.5 ms per present NVIDIA GeForce RTX 4070 SUPER, NVIDIA 616.64, Windows 10.0.26200, 3840x2160, commit b3fecb970208, dropped: yes ```json {"commit":"b3fecb970208","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"84:5"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 84:5","first_present":1804,"ms":5423.029},"presents":12,"frame_ms":{"p50":467.301,"p90":478.966,"p99":480.131,"max":480.131},"gpu_busy_ms_per_present":301.519,"worker_busy_pct":{"queue worker 0x0":98.85},"top_phases_ms_per_frame":{"Driver.Packet":446.406,"Driver.Packet.draw":413.8,"Driver.Draw":411.849,"Driver.Draw.draw_and_resource_release":211.725,"Graphics.Draw":209.746,"Graphics.Draw.draw_and_resource_release":181.048,"Driver.Draw.shader_compile_and_link":145.095,"Shader.DrawStage":107.003},"trace_dropped":true,"trace":"aps5-trace-b3fecb970208-31100.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 1810: 480.1 ms at 2710 ms: Driver.Packet (queue worker 0x0) 454.2, Driver.Packet.draw (queue worker 0x0) 438.9, Driver.Draw (queue worker 0x0) 436.9, batch (gpu) 320.5 - present 1809: 479.0 ms at 2231 ms: Driver.Packet (queue worker 0x0) 452.6, Driver.Packet.draw (queue worker 0x0) 436.6, Driver.Draw (queue worker 0x0) 434.6, batch (gpu) 313.1 - present 1806: 475.3 ms at 928 ms: Driver.Packet (queue worker 0x0) 448.5, Driver.Packet.draw (queue worker 0x0) 432.7, Driver.Draw (queue worker 0x0) 430.7, batch (gpu) 306.0 - present 1805: 469.7 ms at 458 ms: Driver.Packet (queue worker 0x0) 445.0, Driver.Packet.draw (queue worker 0x0) 431.5, Driver.Draw (queue worker 0x0) 429.5, batch (gpu) 288.1 - present 1812: 467.5 ms at 3657 ms: batch (gpu) 310.0, Driver.Present (presenter) 62.2, Driver.Present.render_fence_wait (presenter) 61.7, Vulkan.Retire (presenter) 61.7 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 281.7 (62 %) | 0.0 (0 %) | 170.2 | 223.9 | Driver.Packet 281.5, Driver.Completion 0.2 | | presenter | 0.6 (0 %) | 51.2 (11 %) | 400.2 | 0.0 | Driver.Present 51.8 | | gpu | 265.2 (59 %) | 0.0 (0 %) | 186.7 | 0.0 | batch 265.2 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 281.5, Driver.Packet.draw 272.9, Driver.Draw 271.6, batch 265.2, Driver.Draw.draw_and_resource_release 127.0, Graphics.Draw 125.7, Graphics.Draw.draw_and_resource_release 100.9, Driver.Draw.shader_compile_and_link 72.6, Driver.Present 51.8, Driver.Present.render_fence_wait 51.2 **Longest waits** - Driver.Present.render_fence_wait (presenter) 63.1 ms at 1 ms, present 1804 - Driver.Present.render_fence_wait (presenter) 62.4 ms at 929 ms, present 1806 - Driver.Present.render_fence_wait (presenter) 61.7 ms at 3658 ms, present 1812 - Driver.Present.render_fence_wait (presenter) 61.5 ms at 3191 ms, present 1811 - Driver.Present.render_fence_wait (presenter) 61.1 ms at 2710 ms, present 1810 - Driver.Present.render_fence_wait (presenter) 55.2 ms at 2232 ms, present 1809 - Driver.Present.render_fence_wait (presenter) 53.1 ms at 4125 ms, present 1813 - Driver.Present.render_fence_wait (presenter) 50.1 ms at 459 ms, present 1805 - Driver.Present.render_fence_wait (presenter) 40.2 ms at 1819 ms, present 1808 - Driver.Present.render_fence_wait (presenter) 35.8 ms at 4563 ms, present 1814 ### Worker stacks _No response_ ### 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
LeandroLP23 commented 2026-10-21 10:41:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-21T10:41:52Z.


An AMD iGPU data point for #6763's per-driver choice. AMD's Windows driver on an APU reads draw inputs in place about as fast as from copies, as SoRadGaming measured on the RX 9070 XT. So binding in place on AMD holds for iGPUs too.

Setup: Radeon 860M (RDNA 3.5, 1002:1114, driver 32.0.13058.8001, 512 MiB UMA carve-out, so the copies also land in host memory), Windows 11 26300, main 1381826358. SuperTuxKart (PPSA69421) tutorial race, three alternating pairs with APS5_PROFILE_GPU=1 and APS5_TRACE_SECONDS=95:20: default (in place) against APS5_NO_DRAW_INPUTS_IN_PLACE=1 (copied). draw is the [gputime] class summed over the last four 10 s windows of each run, divided by their presents:

Round in place: draw GPU ms/present copied: draw GPU ms/present in place: FPS / GPU busy copied: FPS / GPU busy
1 29.0 (84 presents) 40.6 (82) 2.14 / 70.3 ms 1.94 / 108.1 ms
2 26.4 (89) 25.7 (87) 2.22 / 69.4 ms 2.24 / 70.0 ms
3 25.6 (82) 24.3 (86) 2.03 / 72.2 ms 2.16 / 67.0 ms

The first copied run is an outlier across the whole GPU (108 ms busy against about 70 ms in every other run). Its shadow-publish and storage-writeback classes rose with draw, so I don't attribute it to the copies. Rounds 2 and 3 are within 1–2 ms per present.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6313991239 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5895#issuecomment-6313991239). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-21T10:41:52Z. --- An AMD iGPU data point for #6763's per-driver choice. AMD's Windows driver on an APU reads draw inputs in place about as fast as from copies, as SoRadGaming measured on the RX 9070 XT. So binding in place on AMD holds for iGPUs too. Setup: Radeon 860M (RDNA 3.5, `1002:1114`, driver 32.0.13058.8001, 512 MiB UMA carve-out, so the copies also land in host memory), Windows 11 26300, `main` `1381826358`. SuperTuxKart (PPSA69421) tutorial race, three alternating pairs with `APS5_PROFILE_GPU=1` and `APS5_TRACE_SECONDS=95:20`: default (in place) against `APS5_NO_DRAW_INPUTS_IN_PLACE=1` (copied). `draw` is the `[gputime]` class summed over the last four 10 s windows of each run, divided by their presents: | Round | in place: `draw` GPU ms/present | copied: `draw` GPU ms/present | in place: FPS / GPU busy | copied: FPS / GPU busy | |---|---|---|---|---| | 1 | 29.0 (84 presents) | 40.6 (82) | 2.14 / 70.3 ms | 1.94 / 108.1 ms | | 2 | 26.4 (89) | 25.7 (87) | 2.22 / 69.4 ms | 2.24 / 70.0 ms | | 3 | 25.6 (82) | 24.3 (86) | 2.03 / 72.2 ms | 2.16 / 67.0 ms | The first copied run is an outlier across the whole GPU (108 ms busy against about 70 ms in every other run). Its `shadow-publish` and `storage-writeback` classes rose with `draw`, so I don't attribute it to the copies. Rounds 2 and 3 are within 1–2 ms per present.
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#5895
No description provided.