perf(shader): keep the device's f16 NaN results with IEEE_MODE clear when a startup probe matches RDNA #15719

Merged
Nesyth merged 6 commits from upstream-pr/15719 into main 2026-11-15 10:55:24 +00:00
Nesyth commented 2026-11-04 09:30:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Nesyth on 2026-11-04T09:30:30Z.


What

A startup-probe step of #11183, on top of #15718 (the scalar fma PR). With IEEE_MODE clear, the native packed f16 add, mul, fma and fmac keep the device's NaN result when a startup probe shows that it is already the one RDNA selects. So do the native scalar fma forms.

Today every native v_pk_add_f16, v_pk_mul_f16, v_pk_fma_f16 and v_pk_fmac_f16 picks its NaN result on the bits afterwards, in each lane: the first NaN source (quieted only with IEEE_MODE set), with the addend skipped after an inf * 0 product, or the default NaN 0xfe00. That is three or four compares and selects per lane on top of the one native instruction. The native scalar fma forms test for the default NaN of an invalid operation in the same way.

On a Radeon RX 7900 XTX (AMD Software 26.10.1) the device already returns exactly those bits when IEEE_MODE is clear, with one exception. When both operands are NaNs, the driver may swap the operands of an add (it did for op_sel and neg operands), and then returns the second NaN. So the host path replaces the second operand by the first when the first is a NaN: one compare and one select per lane, and the order no longer matters. With IEEE_MODE set, the device returns a signalling NaN source unchanged where RDNA quiets it, so that mode keeps the selection.

  • ProbeFloat16HostNans (Execution/src/Float16NanProbe.cpp) runs when the device is created, after the f32 denormal flush and preserve probes, on devices with native f16 math. It compiles the instruction templates of agc_driver_packed_float16_native (add, mul, fma, fmac with op_sel, neg and clamp) and the scalar fma forms of agc_driver_float16_native twice: with the selection and with the host path.
  • Inputs: 4096 operand triples of 16 halves, in both lanes and read from a buffer. The halves are quiet and signalling NaNs of both signs, infinities, zeros, a denormal, the smallest normal, ±1, 1/3 and the largest finite half.
  • Float modes: none, and IEEE_MODE clear with FP16_OVFL, with and without DX10_CLAMP.
  • Packed results must match bit for bit. Scalar fma results must match too, except that two NaNs may differ where the selected result is not the default NaN: their payload is already the driver's (docs/dev/debt/shader.md).
  • The probe stops at the first batch of 256 triples with a mismatch, and it compiles a float mode's scalar programs only after that mode's packed results matched. A device that does not keep the selected NaNs therefore pays for two compilations and two dispatches; a device that keeps them runs the whole probe as before.
  • SpirvTarget::float16HostNans is set only when nothing differs, and it is part of the cache key. Recompile requests saved with APS5_DUMP_SHADERS do not carry it (#11351 and #11483 already queue changes to the request format); agc_shader_replay --f16-host-nans sets it on a replay. APS5_NO_HOST_F16_NANS skips the probe.
  • An instruction with a literal NaN source keeps the selection: a driver may fold a constant at compile time, and the probe reads its inputs from a buffer.

New test agc_driver_float16_nan_probe:

  • _spirv (no device): with the flag and IEEE_MODE clear, both programs have fewer selects; with IEEE_MODE set, the module is the same with and without the flag.
  • On the device: the probe compares something; a device that keeps its NaNs had no mismatch; a device without mismatches keeps them unless APS5_NO_HOST_F16_NANS is set.

The existing agc_driver_packed_float16_native (589,824 halves against the f32 path, bit for bit) and agc_driver_float16_native run with the device's target, so on a device where the probe passes they check the host path too.

Tested

Windows 11 Pro 26300, Radeon RX 7900 XTX (AMD Software 26.10.1), Ryzen 7 7800X3D, MinGW-w64 GCC 15.2, Ninja, Release, BUILD_TESTING=ON, this head on #15718 and main b11c7bf84f, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1.

  • Focused tests (ctest -R "fma|float16|f16|packed_alu|dx10_clamp|dpp8_pk_fmac|dpp16_operands|request_serializer|agc_shader_memory", 51 tests including the two new ones): 50 pass and agc_driver_float16_unused_nan_payloads skips, as it does on main on this device. The same with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation: 44 layer insertions with VK_LOADER_DEBUG=layer, no was not found line, no VUID- line.

  • Probe on the RX 7900 XTX: [float-controls] f16 NaN results with IEEE_MODE clear: host (0 of 270336 probe results differ from the selected NaN, 36 ms). agc_driver_packed_float16_native: packed f16 native tests passed (589824 halves, fused f16 fma).

  • ^agc (-E "^agc_driver_bda_device$", -j12): 1363 of 1366. agc_driver_direct_write_completion and agc_driver_sample_order_grid_reference fail on main b11c7bf84f too. agc_driver_dumped_constant_capture is intermittent and not changed by this PR: run alone it failed 3 of 127 times on this head, 3 of 134 with APS5_NO_HOST_F16_NANS=1 and 3 of 111 on main (the draw after a CPU write over a dumped constant still read the dumped 1.0).

  • Head c51af50be5 (rebased on main e8b1bd3d7f; the probe stops at the first differing batch): the probe tests pass (agc_driver_float16_nan_probe reports host (0 of 270336 probe results differ), agc_driver_float16_nan_probe_spirv), and the cache key, request serializer and disk cache tests pass 26 of 26. ctest -R "float16|f16|nan|NaN|probe|ieee" passes 67 of 74 with 1 device skip. The 6 failures (agc_driver_f16_conversion_float_mode, agc_driver_float16_misc, agc_driver_float16_modifiers, agc_driver_float16_rounding, agc_driver_ldexp_f16_inline_constants, agc_driver_sdwa_ldexp_f16, each +0 where -0 is expected) fail the same way on main e8b1bd3d7f; they pass with APS5_NO_NATIVE_F16_NANS=1, so they come from main's native f32-to-f16 conversion probe on this RX 7900 XTX.

  • Before the change, agc_driver_packed_float16_native without the selection and without the operand replacement: 0 mismatches with IEEE_MODE clear except v_pk_add_f16 ... op_sel neg (40-54 per mode, both operands NaN, second NaN returned); 400-560 per instruction with IEEE_MODE set (signalling NaN not quieted). With the replacement: 0 in every IEEE_MODE clear mode.

  • Size, PPSA04264 compute shaders (agc_shader_replay --spv --shader-fma, IEEE_MODE clear):

    request #15718 this PR (--f16-host-nans)
    0x25b16a200 (the 1440p to 2160p upscale) 129,192 86,942
    0x25b16ca00 (RCAS) 35,629 31,221
  • In game, PPSA04264 (city gameplay, 3840x2160 output, APS5_PROFILE_GPU, this head's driver), measured before the rebase: [float-controls] f16 NaN results with IEEE_MODE clear: host (0 of 270336 probe results differ from the selected NaN, 41 ms). The upscale takes 2.29-2.42 ms of GPU per dispatch (4.44-4.63 ms with #15718 alone), RCAS 0.80 ms (0.86 ms).

  • Frames, within one run (APS5_AB, 30 s phases, 20 phases, B against the neighbouring A): on a local build, dispatching the upscale four times instead of once (about +7 ms of GPU) costs 11.0 % of the presents (-12.6 +- 5.8 per 10 s) and adds 10.9 +- 5.2 ms per frame. Skipping it costs nothing at 2.4 ms (-2.7 +- 5.1 %), where it gave +11.6 % (SE 3.7) at 8.9 ms. So in this scene the upscale's GPU time is on the frame's path, and #11265, #15718 and this PR together are worth about +10 % presents. Comparing whole boots instead (three interleaved pairs, warm caches) only shows the GPU part: GPU busy 39.2 -> 32.8 ms per present, and FPS 7.13 -> 7.26, inside the boot-to-boot noise of that scene.

Performance report (Performance report form): PPSA04264 open-world gameplay after the opening, 3840x2160 output, Performance graphics mode, APS5_TRACE_SECONDS=300:30, no other APS5_TRACE_* or APS5_PROFILE_* switch, the log not redirected. Each build ran the scene once and the title was restarted before its captures, and all captures come from this machine in one session. The base is #15718.

  • The frame is bound by the CPU in this scene (queue worker 0x0 busy 97.4-97.7 %), so the frame time follows the scene rather than the shaders. gpu_busy_ms_per_present is 27.87 ms with #15718 and 24.68 ms in this PR's second capture; the GPU time per dispatch above is the cleaner measure of the change.
  • The first capture of this PR ran into a busier moment of the scene: its draw phases were about 1.5 times longer (Driver.Draw 68.3 ms per frame, against 44.5 ms in the second capture and 45.6 ms with #15718), with 299 presents and 30.80 ms of GPU busy per present. Its line is the second one below.
  • The scene also moves the FPS between boots of one build: over ~5 minutes of gameplay the window title averaged 10.86 and 12.72 FPS in this PR's two boots and 11.15 FPS with #15718.
  • The traces dropped events after their worker and committer buffers filled (trace_dropped, with totals_full false), so the summary lines are complete while the traces hold the first 6-15 s of those threads.
{"commit":"476df725ba14","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":4887,"ms":30006.986},"presents":390,"frame_ms":{"p50":75.630,"p90":80.178,"p99":114.688,"max":139.883},"gpu_busy_ms_per_present":27.870,"worker_busy_pct":{"queue worker 0x0":97.719},"top_phases_ms_per_frame":{"Driver.Packet":71.331,"Graphics.Draw":49.609,"Driver.Packet.draw":46.031,"Driver.Draw":45.594,"Graphics.Draw.draw_and_resource_release":43.795,"Driver.Draw.shader_compile_and_link":26.977,"Shader.DrawStage":20.800,"Driver.Packet.dispatch":16.838},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.614,"events_lost":911231,"totals_full":false},"draw committer":{"events_full_after_s":14.926,"events_lost":253977,"totals_full":false}},"trace":"aps5-trace-476df725ba14-26272.json.gz"}
{"commit":"e7ef41a7add1","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":5191,"ms":30041.302},"presents":299,"frame_ms":{"p50":107.511,"p90":113.276,"p99":134.383,"max":167.236},"gpu_busy_ms_per_present":30.801,"worker_busy_pct":{"queue worker 0x0":97.435},"top_phases_ms_per_frame":{"Driver.Packet":92.893,"Graphics.Draw":71.279,"Driver.Packet.draw":68.987,"Driver.Draw":68.333,"Graphics.Draw.draw_and_resource_release":62.897,"Driver.Draw.shader_compile_and_link":41.868,"Shader.DrawStage":32.931,"Driver.Draw.draw_enqueued":16.416},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.226,"events_lost":1139325,"totals_full":false},"draw committer":{"events_full_after_s":12.852,"events_lost":390826,"totals_full":false}},"trace":"aps5-trace-e7ef41a7add1-17208.json.gz"}
{"commit":"e7ef41a7add1","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":5086,"ms":30041.236},"presents":417,"frame_ms":{"p50":68.603,"p90":82.234,"p99":91.440,"max":124.561},"gpu_busy_ms_per_present":24.683,"worker_busy_pct":{"queue worker 0x0":97.506},"top_phases_ms_per_frame":{"Driver.Packet":65.869,"Graphics.Draw":47.574,"Driver.Packet.draw":44.935,"Driver.Draw":44.475,"Graphics.Draw.draw_and_resource_release":41.933,"Driver.Draw.shader_compile_and_link":26.907,"Shader.DrawStage":20.735,"Driver.Packet.dispatch":12.367},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.552,"events_lost":963457,"totals_full":false},"draw committer":{"events_full_after_s":14.967,"events_lost":289464,"totals_full":false}},"trace":"aps5-trace-e7ef41a7add1-1056.json.gz"}

Traces: aps5-trace-476df725ba14-26272.json.gz (#15718), aps5-trace-e7ef41a7add1-17208.json.gz and aps5-trace-e7ef41a7add1-1056.json.gz (this PR, first and second capture), attached below.

tools/trace_digest.py of the #15718 capture

seconds 300:30 from present 4887: 390 presents, frame p50 75.6 / p90 80.2 / p99 114.7 / max 139.9 ms, GPU busy 27.9 ms per present
AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 476df725ba, dropped: yes

{"commit":"476df725ba14","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":4887,"ms":30006.986},"presents":390,"frame_ms":{"p50":75.63,"p90":80.178,"p99":114.688,"max":139.883},"gpu_busy_ms_per_present":27.87,"worker_busy_pct":{"queue worker 0x0":97.719},"top_phases_ms_per_frame":{"Driver.Packet":71.331,"Graphics.Draw":49.609,"Driver.Packet.draw":46.031,"Driver.Draw":45.594,"Graphics.Draw.draw_and_resource_release":43.795,"Driver.Draw.shader_compile_and_link":26.977,"Shader.DrawStage":20.8,"Driver.Packet.dispatch":16.838},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.614,"events_lost":911231,"totals_full":false},"draw committer":{"events_full_after_s":14.926,"events_lost":253977,"totals_full":false}},"trace":"aps5-trace-476df725ba14-26272.json.gz"}

Incomplete trace: recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately.

  • queue worker 0x0: 911231 events lost; buffer full at 6614.3 ms
  • draw committer: 253977 events lost; buffer full at 14926.4 ms

Slowest frames (largest slices inside each, inclusive)

  • present 4887: 139.9 ms at 0 ms: Driver.Packet (queue worker 0x0) 108.9, Driver.Packet.draw (queue worker 0x0) 88.7, Driver.Draw (queue worker 0x0) 88.0, Driver.Draw.shader_compile_and_link (queue worker 0x0) 68.0
  • present 5228: 128.2 ms at 26087 ms: batch (gpu) 27.0, VideoOut.Flip (presenter) 9.9, VideoOut.Flip.present (presenter) 9.0, Driver.Present (presenter) 9.0
  • present 5192: 128.0 ms at 23405 ms: batch (gpu) 24.9, VideoOut.Flip (presenter) 7.2, VideoOut.Flip.present (presenter) 7.1, Driver.Present (presenter) 7.1
  • present 4992: 114.7 ms at 8201 ms: Graphics.Draw (draw committer) 46.4, Graphics.Draw.draw_and_resource_release (draw committer) 38.2, batch (gpu) 28.7, VideoOut.Flip (presenter) 10.3
  • present 5259: 113.3 ms at 28596 ms: batch (gpu) 29.0, VideoOut.Flip (presenter) 13.7, VideoOut.Flip.present (presenter) 13.3, Driver.Present (presenter) 13.3

Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)

  • present 4887: 139.9 ms at 0 ms, persistence 71.3 ms
  • present 5228: 128.2 ms at 26087 ms, persistence 59.6 ms
  • present 5192: 128.0 ms at 23405 ms, persistence 58.2 ms
  • present 5259: 113.3 ms at 28596 ms, persistence 43.3 ms
  • present 4992: 114.7 ms at 8201 ms, persistence 41.9 ms
  • present 5240: 111.3 ms at 27057 ms, persistence 40.7 ms
  • present 5254: 107.7 ms at 28200 ms, persistence 37.3 ms
  • present 5047: 96.2 ms at 12439 ms, persistence 24.9 ms
  • present 5252: 97.1 ms at 28033 ms, persistence 24.1 ms
  • present 5202: 93.0 ms at 24194 ms, persistence 22.4 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 0.0 (0 %) 76.9 0.0 Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x0 11.7 (15 %) 0.3 (0 %) 64.9 26.6 Driver.Packet 11.2, Driver.Rewind 0.6
draw committer 22.3 (29 %) 0.1 (0 %) 54.5 17.5 Graphics.Draw 17.1, Recorder.Sync 3.7
presenter 2.2 (3 %) 7.9 (10 %) 66.9 0.1 VideoOut.Flip 10.0, Driver.Present 0.0
gpu 27.9 (36 %) 0.0 (0 %) 49.1 0.0 batch 27.9

Largest slices (ms per frame, inclusive, all threads): batch 27.9, Graphics.Draw 17.3, Graphics.Draw.draw_and_resource_release 14.2, Driver.Packet 11.2, VideoOut.Flip 10.0, Driver.Present 9.9, VideoOut.Flip.present 9.9, Driver.Packet.draw 6.9, Driver.Draw 6.8, Recorder.Sync 4.8

Longest waits

  • Driver.Present.gpu_mutex_wait (presenter) 8.2 ms at 22224 ms, present 5176
  • Driver.Present.gpu_mutex_wait (presenter) 8.0 ms at 15864 ms, present 5092
  • Driver.Present.gpu_mutex_wait (presenter) 7.9 ms at 22072 ms, present 5174
  • Driver.Present.gpu_mutex_wait (presenter) 7.9 ms at 4526 ms, present 4944
  • Driver.Present.gpu_mutex_wait (presenter) 7.8 ms at 3763 ms, present 4934
  • Driver.Present.gpu_mutex_wait (presenter) 7.8 ms at 16238 ms, present 5097
  • Driver.Present.gpu_mutex_wait (presenter) 7.8 ms at 5821 ms, present 4961
  • Driver.Present.gpu_mutex_wait (presenter) 7.7 ms at 9634 ms, present 5010
  • Driver.Present.gpu_mutex_wait (presenter) 7.7 ms at 23117 ms, present 5188
  • Driver.Present.gpu_mutex_wait (presenter) 7.6 ms at 21084 ms, present 5161

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

  • batch 24085: 8.2 ms at 16759 ms, present 5103: GPU no ranges; recorded by no CPU slices
  • batch 17907: 8.1 ms at 12535 ms, present 5047: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Recorder.Submit (draw committer) 0.0
  • batch 39106: 8.0 ms at 27056 ms, present 5239: GPU no ranges; recorded by no CPU slices
  • batch 11158: 8.0 ms at 7825 ms, present 4986: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0
  • batch 18348: 8.0 ms at 12843 ms, present 5051: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0
tools/trace_digest.py of this PR's first capture

seconds 300:30 from present 5191: 299 presents, frame p50 107.5 / p90 113.3 / p99 134.4 / max 167.2 ms, GPU busy 30.8 ms per present
AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit e7ef41a7add1, dropped: yes

{"commit":"e7ef41a7add1","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":5191,"ms":30041.302},"presents":299,"frame_ms":{"p50":107.511,"p90":113.276,"p99":134.383,"max":167.236},"gpu_busy_ms_per_present":30.801,"worker_busy_pct":{"queue worker 0x0":97.435},"top_phases_ms_per_frame":{"Driver.Packet":92.893,"Graphics.Draw":71.279,"Driver.Packet.draw":68.987,"Driver.Draw":68.333,"Graphics.Draw.draw_and_resource_release":62.897,"Driver.Draw.shader_compile_and_link":41.868,"Shader.DrawStage":32.931,"Driver.Draw.draw_enqueued":16.416},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.226,"events_lost":1139325,"totals_full":false},"draw committer":{"events_full_after_s":12.852,"events_lost":390826,"totals_full":false}},"trace":"aps5-trace-e7ef41a7add1-17208.json.gz"}

Incomplete trace: recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately.

  • queue worker 0x0: 1139325 events lost; buffer full at 6226.0 ms
  • draw committer: 390826 events lost; buffer full at 12851.6 ms

Slowest frames (largest slices inside each, inclusive)

  • present 5321: 167.2 ms at 11268 ms: Graphics.Draw (draw committer) 55.5, Graphics.Draw.draw_and_resource_release (draw committer) 44.3, batch (gpu) 31.8, Recorder.Sync (draw committer) 8.5
  • present 5434: 163.6 ms at 23829 ms: batch (gpu) 34.0, VideoOut.Flip (presenter) 6.3, VideoOut.Flip.present (presenter) 6.2, Driver.Present (presenter) 6.2
  • present 5374: 134.4 ms at 17189 ms: batch (gpu) 34.1, VideoOut.Flip (presenter) 5.9, VideoOut.Flip.present (presenter) 5.7, Driver.Present (presenter) 5.7
  • present 5370: 130.7 ms at 16739 ms: batch (gpu) 34.4, VideoOut.Flip (presenter) 7.0, VideoOut.Flip.present (presenter) 6.8, Driver.Present (presenter) 6.8
  • present 5311: 129.9 ms at 10171 ms: Graphics.Draw (draw committer) 54.5, Graphics.Draw.draw_and_resource_release (draw committer) 43.6, batch (gpu) 33.1, Recorder.Sync (draw committer) 7.8

Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)

  • present 5321: 167.2 ms at 11268 ms, persistence 96.9 ms
  • present 5434: 163.6 ms at 23829 ms, persistence 59.4 ms
  • present 5228: 109.4 ms at 2777 ms, persistence 37.0 ms
  • present 5374: 134.4 ms at 17189 ms, persistence 29.6 ms
  • present 5311: 129.9 ms at 10171 ms, persistence 27.3 ms
  • present 5370: 130.7 ms at 16739 ms, persistence 25.3 ms
  • present 5477: 125.9 ms at 28613 ms, persistence 21.6 ms
  • present 5308: 125.2 ms at 9828 ms, persistence 20.5 ms
  • present 5343: 126.4 ms at 13757 ms, persistence 20.4 ms
  • present 5261: 97.7 ms at 5373 ms, persistence 18.7 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 0.0 (0 %) 100.5 0.0 Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x0 14.3 (14 %) 0.5 (0 %) 85.7 32.5 Driver.Packet 13.8, Driver.Rewind 0.7
draw committer 25.0 (25 %) 0.0 (0 %) 75.4 20.7 Graphics.Draw 21.0, Recorder.Sync 2.4
presenter 2.2 (2 %) 5.2 (5 %) 93.1 0.0 VideoOut.Flip 7.4, Driver.Present 0.0
gpu 30.8 (31 %) 0.0 (0 %) 69.6 0.0 batch 30.8

Largest slices (ms per frame, inclusive, all threads): batch 30.8, Graphics.Draw 21.3, Graphics.Draw.draw_and_resource_release 17.2, Driver.Packet 13.8, Driver.Packet.draw 9.0, Driver.Draw 8.8, VideoOut.Flip 7.4, Driver.Present 7.2, VideoOut.Flip.present 7.2, Driver.Packet.dispatch 3.9

Longest waits

  • Driver.Present.render_fence_wait (presenter) 7.4 ms at 10409 ms, present 5313
  • Driver.Present.gpu_mutex_wait (presenter) 6.2 ms at 27407 ms, present 5466
  • Driver.Present.gpu_mutex_wait (presenter) 6.1 ms at 5881 ms, present 5267
  • Driver.Present.gpu_mutex_wait (presenter) 6.0 ms at 1 ms, present 5191
  • Driver.Present.gpu_mutex_wait (presenter) 5.8 ms at 17983 ms, present 5381
  • Driver.Present.gpu_mutex_wait (presenter) 5.5 ms at 1768 ms, present 5215
  • Driver.Present.gpu_mutex_wait (presenter) 5.2 ms at 8152 ms, present 5292
  • Driver.Present.gpu_mutex_wait (presenter) 5.0 ms at 7492 ms, present 5285
  • Driver.Present.gpu_mutex_wait (presenter) 4.9 ms at 1256 ms, present 5208
  • Driver.Present.gpu_mutex_wait (presenter) 4.9 ms at 7400 ms, present 5284

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

  • batch 28433: 5.9 ms at 22074 ms, present 5418: GPU no ranges; recorded by no CPU slices
  • batch 28704: 5.8 ms at 22294 ms, present 5420: GPU no ranges; recorded by no CPU slices
  • batch 12426: 5.7 ms at 8868 ms, present 5298: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0
  • batch 13594: 5.7 ms at 9828 ms, present 5308: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0
  • batch 5758: 5.5 ms at 3950 ms, present 5242: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.0
tools/trace_digest.py of this PR's second capture

seconds 300:30 from present 5086: 417 presents, frame p50 68.6 / p90 82.2 / p99 91.4 / max 124.6 ms, GPU busy 24.7 ms per present
AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit e7ef41a7add1, dropped: yes

{"commit":"e7ef41a7add1","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":5086,"ms":30041.236},"presents":417,"frame_ms":{"p50":68.603,"p90":82.234,"p99":91.44,"max":124.561},"gpu_busy_ms_per_present":24.683,"worker_busy_pct":{"queue worker 0x0":97.506},"top_phases_ms_per_frame":{"Driver.Packet":65.869,"Graphics.Draw":47.574,"Driver.Packet.draw":44.935,"Driver.Draw":44.475,"Graphics.Draw.draw_and_resource_release":41.933,"Driver.Draw.shader_compile_and_link":26.907,"Shader.DrawStage":20.735,"Driver.Packet.dispatch":12.367},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.552,"events_lost":963457,"totals_full":false},"draw committer":{"events_full_after_s":14.967,"events_lost":289464,"totals_full":false}},"trace":"aps5-trace-e7ef41a7add1-1056.json.gz"}

Incomplete trace: recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately.

  • queue worker 0x0: 963457 events lost; buffer full at 6551.8 ms
  • draw committer: 289464 events lost; buffer full at 14966.6 ms

Slowest frames (largest slices inside each, inclusive)

  • present 5338: 124.6 ms at 16849 ms: batch (gpu) 22.9, VideoOut.Flip (presenter) 6.1, VideoOut.Flip.present (presenter) 5.9, Driver.Present (presenter) 5.9
  • present 5340: 109.0 ms at 17044 ms: batch (gpu) 25.5, VideoOut.Flip (presenter) 13.4, VideoOut.Flip.present (presenter) 13.2, Driver.Present (presenter) 13.2
  • present 5497: 100.1 ms at 29523 ms: batch (gpu) 27.6, VideoOut.Flip (presenter) 11.6, VideoOut.Flip.present (presenter) 11.5, Driver.Present (presenter) 11.5
  • present 5498: 95.4 ms at 29623 ms: batch (gpu) 25.6, VideoOut.Flip (presenter) 7.8, VideoOut.Flip.present (presenter) 7.6, Driver.Present (presenter) 7.6
  • present 5387: 91.4 ms at 20640 ms: batch (gpu) 27.2, VideoOut.Flip (presenter) 8.3, VideoOut.Flip.present (presenter) 8.0, Driver.Present (presenter) 8.0

Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)

  • present 5338: 124.6 ms at 16849 ms, persistence 62.3 ms
  • present 5340: 109.0 ms at 17044 ms, persistence 38.6 ms
  • present 5497: 100.1 ms at 29523 ms, persistence 30.0 ms
  • present 5333: 87.9 ms at 16474 ms, persistence 19.8 ms
  • present 5223: 78.1 ms at 9107 ms, persistence 15.8 ms
  • present 5387: 91.4 ms at 20640 ms, persistence 15.4 ms
  • present 5146: 77.5 ms at 3974 ms, persistence 14.5 ms
  • present 5330: 81.9 ms at 16252 ms, persistence 14.1 ms
  • present 5195: 77.2 ms at 7219 ms, persistence 13.4 ms
  • present 5364: 86.5 ms at 18856 ms, persistence 13.4 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 0.0 (0 %) 72.0 0.0 Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x0 10.5 (15 %) 0.3 (0 %) 61.2 25.4 Driver.Packet 9.8, Driver.Rewind 0.5
draw committer 19.6 (27 %) 0.0 (0 %) 52.4 17.8 Graphics.Draw 15.4, Recorder.Sync 2.5
presenter 2.2 (3 %) 5.7 (8 %) 64.1 0.0 VideoOut.Flip 7.9, Driver.Present 0.0
gpu 24.7 (34 %) 0.0 (0 %) 47.4 0.0 batch 24.7

Largest slices (ms per frame, inclusive, all threads): batch 24.7, Graphics.Draw 15.7, Graphics.Draw.draw_and_resource_release 12.7, Driver.Packet 9.8, VideoOut.Flip 7.9, Driver.Present 7.8, VideoOut.Flip.present 7.8, Driver.Packet.draw 6.2, Driver.Draw 6.1, Recorder.Sync 3.3

Longest waits

  • Driver.Present.gpu_mutex_wait (presenter) 7.5 ms at 17048 ms, present 5340
  • Driver.Present.gpu_mutex_wait (presenter) 6.0 ms at 28152 ms, present 5480
  • Driver.Present.gpu_mutex_wait (presenter) 5.9 ms at 15836 ms, present 5324
  • Driver.Present.gpu_mutex_wait (presenter) 5.7 ms at 277 ms, present 5090
  • Driver.Present.gpu_mutex_wait (presenter) 5.5 ms at 29439 ms, present 5496
  • Driver.Present.gpu_mutex_wait (presenter) 5.5 ms at 29526 ms, present 5497
  • Driver.Present.gpu_mutex_wait (presenter) 5.5 ms at 24180 ms, present 5431
  • Driver.Present.gpu_mutex_wait (presenter) 5.5 ms at 16632 ms, present 5335
  • Driver.Present.gpu_mutex_wait (presenter) 5.4 ms at 23541 ms, present 5423
  • Driver.Present.gpu_mutex_wait (presenter) 5.2 ms at 28470 ms, present 5484

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

  • batch 36266: 6.0 ms at 22428 ms, present 5408: GPU no ranges; recorded by no CPU slices
  • batch 26005: 5.8 ms at 15416 ms, present 5317: GPU no ranges; recorded by no CPU slices
  • batch 18549: 5.8 ms at 10991 ms, present 5250: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0
  • batch 18773: 5.8 ms at 11123 ms, present 5253: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0
  • batch 45283: 5.7 ms at 28633 ms, present 5485: GPU no ranges; recorded by no CPU slices

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: #15718
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD Radeon RX 7900 XTX, AMD Software 26.10.1 (32.0.32015.7029), Windows 11 Pro 26300
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5152087467 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15719). Originally posted by [Nesyth](https://github.com/Nesyth) on 2026-11-04T09:30:30Z. --- ### What A startup-probe step of #11183, on top of #15718 (the scalar fma PR). With `IEEE_MODE` clear, the native packed f16 add, mul, fma and fmac keep the device's NaN result when a startup probe shows that it is already the one RDNA selects. So do the native scalar fma forms. Today every native `v_pk_add_f16`, `v_pk_mul_f16`, `v_pk_fma_f16` and `v_pk_fmac_f16` picks its NaN result on the bits afterwards, in each lane: the first NaN source (quieted only with `IEEE_MODE` set), with the addend skipped after an inf * 0 product, or the default NaN 0xfe00. That is three or four compares and selects per lane on top of the one native instruction. The native scalar fma forms test for the default NaN of an invalid operation in the same way. On a Radeon RX 7900 XTX (AMD Software 26.10.1) the device already returns exactly those bits when `IEEE_MODE` is clear, with one exception. When both operands are NaNs, the driver may swap the operands of an add (it did for `op_sel` and `neg` operands), and then returns the second NaN. So the host path replaces the second operand by the first when the first is a NaN: one compare and one select per lane, and the order no longer matters. With `IEEE_MODE` set, the device returns a signalling NaN source unchanged where RDNA quiets it, so that mode keeps the selection. - `ProbeFloat16HostNans` (`Execution/src/Float16NanProbe.cpp`) runs when the device is created, after the f32 denormal flush and preserve probes, on devices with native f16 math. It compiles the instruction templates of `agc_driver_packed_float16_native` (add, mul, fma, fmac with `op_sel`, `neg` and clamp) and the scalar fma forms of `agc_driver_float16_native` twice: with the selection and with the host path. - Inputs: 4096 operand triples of 16 halves, in both lanes and read from a buffer. The halves are quiet and signalling NaNs of both signs, infinities, zeros, a denormal, the smallest normal, ±1, 1/3 and the largest finite half. - Float modes: none, and `IEEE_MODE` clear with `FP16_OVFL`, with and without `DX10_CLAMP`. - Packed results must match bit for bit. Scalar fma results must match too, except that two NaNs may differ where the selected result is not the default NaN: their payload is already the driver's (`docs/dev/debt/shader.md`). - The probe stops at the first batch of 256 triples with a mismatch, and it compiles a float mode's scalar programs only after that mode's packed results matched. A device that does not keep the selected NaNs therefore pays for two compilations and two dispatches; a device that keeps them runs the whole probe as before. - `SpirvTarget::float16HostNans` is set only when nothing differs, and it is part of the cache key. Recompile requests saved with `APS5_DUMP_SHADERS` do not carry it (#11351 and #11483 already queue changes to the request format); `agc_shader_replay --f16-host-nans` sets it on a replay. `APS5_NO_HOST_F16_NANS` skips the probe. - An instruction with a literal NaN source keeps the selection: a driver may fold a constant at compile time, and the probe reads its inputs from a buffer. New test `agc_driver_float16_nan_probe`: - `_spirv` (no device): with the flag and `IEEE_MODE` clear, both programs have fewer selects; with `IEEE_MODE` set, the module is the same with and without the flag. - On the device: the probe compares something; a device that keeps its NaNs had no mismatch; a device without mismatches keeps them unless `APS5_NO_HOST_F16_NANS` is set. The existing `agc_driver_packed_float16_native` (589,824 halves against the f32 path, bit for bit) and `agc_driver_float16_native` run with the device's target, so on a device where the probe passes they check the host path too. ### Tested Windows 11 Pro 26300, Radeon RX 7900 XTX (AMD Software 26.10.1), Ryzen 7 7800X3D, MinGW-w64 GCC 15.2, Ninja, Release, `BUILD_TESTING=ON`, this head on #15718 and main `b11c7bf84f`, `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`. - Focused tests (`ctest -R "fma|float16|f16|packed_alu|dx10_clamp|dpp8_pk_fmac|dpp16_operands|request_serializer|agc_shader_memory"`, 51 tests including the two new ones): 50 pass and `agc_driver_float16_unused_nan_payloads` skips, as it does on `main` on this device. The same with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`: 44 layer insertions with `VK_LOADER_DEBUG=layer`, no `was not found` line, no `VUID-` line. - Probe on the RX 7900 XTX: `[float-controls] f16 NaN results with IEEE_MODE clear: host (0 of 270336 probe results differ from the selected NaN, 36 ms)`. `agc_driver_packed_float16_native`: `packed f16 native tests passed (589824 halves, fused f16 fma)`. - `^agc` (`-E "^agc_driver_bda_device$"`, `-j12`): 1363 of 1366. `agc_driver_direct_write_completion` and `agc_driver_sample_order_grid_reference` fail on `main` `b11c7bf84f` too. `agc_driver_dumped_constant_capture` is intermittent and not changed by this PR: run alone it failed 3 of 127 times on this head, 3 of 134 with `APS5_NO_HOST_F16_NANS=1` and 3 of 111 on `main` (the draw after a CPU write over a dumped constant still read the dumped 1.0). - Head `c51af50be5` (rebased on `main` `e8b1bd3d7f`; the probe stops at the first differing batch): the probe tests pass (`agc_driver_float16_nan_probe` reports `host (0 of 270336 probe results differ)`, `agc_driver_float16_nan_probe_spirv`), and the cache key, request serializer and disk cache tests pass 26 of 26. `ctest -R "float16|f16|nan|NaN|probe|ieee"` passes 67 of 74 with 1 device skip. The 6 failures (`agc_driver_f16_conversion_float_mode`, `agc_driver_float16_misc`, `agc_driver_float16_modifiers`, `agc_driver_float16_rounding`, `agc_driver_ldexp_f16_inline_constants`, `agc_driver_sdwa_ldexp_f16`, each +0 where -0 is expected) fail the same way on `main` `e8b1bd3d7f`; they pass with `APS5_NO_NATIVE_F16_NANS=1`, so they come from main's native f32-to-f16 conversion probe on this RX 7900 XTX. - Before the change, `agc_driver_packed_float16_native` without the selection and without the operand replacement: 0 mismatches with `IEEE_MODE` clear except `v_pk_add_f16 ... op_sel neg` (40-54 per mode, both operands NaN, second NaN returned); 400-560 per instruction with `IEEE_MODE` set (signalling NaN not quieted). With the replacement: 0 in every `IEEE_MODE` clear mode. - **Size, PPSA04264 compute shaders** (`agc_shader_replay --spv --shader-fma`, `IEEE_MODE` clear): | request | #15718 | this PR (`--f16-host-nans`) | |---|---|---| | `0x25b16a200` (the 1440p to 2160p upscale) | 129,192 | 86,942 | | `0x25b16ca00` (RCAS) | 35,629 | 31,221 | - **In game, PPSA04264** (city gameplay, 3840x2160 output, `APS5_PROFILE_GPU`, this head's driver), measured before the rebase: `[float-controls] f16 NaN results with IEEE_MODE clear: host (0 of 270336 probe results differ from the selected NaN, 41 ms)`. The upscale takes 2.29-2.42 ms of GPU per dispatch (4.44-4.63 ms with #15718 alone), RCAS 0.80 ms (0.86 ms). - Frames, within one run (`APS5_AB`, 30 s phases, 20 phases, B against the neighbouring A): on a local build, dispatching the upscale four times instead of once (about +7 ms of GPU) costs 11.0 % of the presents (-12.6 +- 5.8 per 10 s) and adds 10.9 +- 5.2 ms per frame. Skipping it costs nothing at 2.4 ms (-2.7 +- 5.1 %), where it gave +11.6 % (SE 3.7) at 8.9 ms. So in this scene the upscale's GPU time is on the frame's path, and #11265, #15718 and this PR together are worth about +10 % presents. Comparing whole boots instead (three interleaved pairs, warm caches) only shows the GPU part: GPU busy 39.2 -> 32.8 ms per present, and FPS 7.13 -> 7.26, inside the boot-to-boot noise of that scene. **Performance report** (Performance report form): PPSA04264 open-world gameplay after the opening, 3840x2160 output, Performance graphics mode, `APS5_TRACE_SECONDS=300:30`, no other `APS5_TRACE_*` or `APS5_PROFILE_*` switch, the log not redirected. Each build ran the scene once and the title was restarted before its captures, and all captures come from this machine in one session. The base is #15718. - The frame is bound by the CPU in this scene (`queue worker 0x0` busy 97.4-97.7 %), so the frame time follows the scene rather than the shaders. `gpu_busy_ms_per_present` is 27.87 ms with #15718 and 24.68 ms in this PR's second capture; the GPU time per dispatch above is the cleaner measure of the change. - The first capture of this PR ran into a busier moment of the scene: its draw phases were about 1.5 times longer (`Driver.Draw` 68.3 ms per frame, against 44.5 ms in the second capture and 45.6 ms with #15718), with 299 presents and 30.80 ms of GPU busy per present. Its line is the second one below. - The scene also moves the FPS between boots of one build: over ~5 minutes of gameplay the window title averaged 10.86 and 12.72 FPS in this PR's two boots and 11.15 FPS with #15718. - The traces dropped events after their worker and committer buffers filled (`trace_dropped`, with `totals_full` false), so the summary lines are complete while the traces hold the first 6-15 s of those threads. ```json {"commit":"476df725ba14","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":4887,"ms":30006.986},"presents":390,"frame_ms":{"p50":75.630,"p90":80.178,"p99":114.688,"max":139.883},"gpu_busy_ms_per_present":27.870,"worker_busy_pct":{"queue worker 0x0":97.719},"top_phases_ms_per_frame":{"Driver.Packet":71.331,"Graphics.Draw":49.609,"Driver.Packet.draw":46.031,"Driver.Draw":45.594,"Graphics.Draw.draw_and_resource_release":43.795,"Driver.Draw.shader_compile_and_link":26.977,"Shader.DrawStage":20.800,"Driver.Packet.dispatch":16.838},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.614,"events_lost":911231,"totals_full":false},"draw committer":{"events_full_after_s":14.926,"events_lost":253977,"totals_full":false}},"trace":"aps5-trace-476df725ba14-26272.json.gz"} {"commit":"e7ef41a7add1","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":5191,"ms":30041.302},"presents":299,"frame_ms":{"p50":107.511,"p90":113.276,"p99":134.383,"max":167.236},"gpu_busy_ms_per_present":30.801,"worker_busy_pct":{"queue worker 0x0":97.435},"top_phases_ms_per_frame":{"Driver.Packet":92.893,"Graphics.Draw":71.279,"Driver.Packet.draw":68.987,"Driver.Draw":68.333,"Graphics.Draw.draw_and_resource_release":62.897,"Driver.Draw.shader_compile_and_link":41.868,"Shader.DrawStage":32.931,"Driver.Draw.draw_enqueued":16.416},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.226,"events_lost":1139325,"totals_full":false},"draw committer":{"events_full_after_s":12.852,"events_lost":390826,"totals_full":false}},"trace":"aps5-trace-e7ef41a7add1-17208.json.gz"} {"commit":"e7ef41a7add1","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":5086,"ms":30041.236},"presents":417,"frame_ms":{"p50":68.603,"p90":82.234,"p99":91.440,"max":124.561},"gpu_busy_ms_per_present":24.683,"worker_busy_pct":{"queue worker 0x0":97.506},"top_phases_ms_per_frame":{"Driver.Packet":65.869,"Graphics.Draw":47.574,"Driver.Packet.draw":44.935,"Driver.Draw":44.475,"Graphics.Draw.draw_and_resource_release":41.933,"Driver.Draw.shader_compile_and_link":26.907,"Shader.DrawStage":20.735,"Driver.Packet.dispatch":12.367},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.552,"events_lost":963457,"totals_full":false},"draw committer":{"events_full_after_s":14.967,"events_lost":289464,"totals_full":false}},"trace":"aps5-trace-e7ef41a7add1-1056.json.gz"} ``` Traces: `aps5-trace-476df725ba14-26272.json.gz` (#15718), `aps5-trace-e7ef41a7add1-17208.json.gz` and `aps5-trace-e7ef41a7add1-1056.json.gz` (this PR, first and second capture), attached below. <details><summary><code>tools/trace_digest.py</code> of the #15718 capture</summary> **seconds 300:30** from present 4887: 390 presents, frame p50 75.6 / p90 80.2 / p99 114.7 / max 139.9 ms, GPU busy 27.9 ms per present AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 476df725ba14, dropped: yes ```json {"commit":"476df725ba14","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":4887,"ms":30006.986},"presents":390,"frame_ms":{"p50":75.63,"p90":80.178,"p99":114.688,"max":139.883},"gpu_busy_ms_per_present":27.87,"worker_busy_pct":{"queue worker 0x0":97.719},"top_phases_ms_per_frame":{"Driver.Packet":71.331,"Graphics.Draw":49.609,"Driver.Packet.draw":46.031,"Driver.Draw":45.594,"Graphics.Draw.draw_and_resource_release":43.795,"Driver.Draw.shader_compile_and_link":26.977,"Shader.DrawStage":20.8,"Driver.Packet.dispatch":16.838},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.614,"events_lost":911231,"totals_full":false},"draw committer":{"events_full_after_s":14.926,"events_lost":253977,"totals_full":false}},"trace":"aps5-trace-476df725ba14-26272.json.gz"} ``` **Incomplete trace:** recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately. - queue worker 0x0: 911231 events lost; buffer full at 6614.3 ms - draw committer: 253977 events lost; buffer full at 14926.4 ms **Slowest frames** (largest slices inside each, inclusive) - present 4887: 139.9 ms at 0 ms: Driver.Packet (queue worker 0x0) 108.9, Driver.Packet.draw (queue worker 0x0) 88.7, Driver.Draw (queue worker 0x0) 88.0, Driver.Draw.shader_compile_and_link (queue worker 0x0) 68.0 - present 5228: 128.2 ms at 26087 ms: batch (gpu) 27.0, VideoOut.Flip (presenter) 9.9, VideoOut.Flip.present (presenter) 9.0, Driver.Present (presenter) 9.0 - present 5192: 128.0 ms at 23405 ms: batch (gpu) 24.9, VideoOut.Flip (presenter) 7.2, VideoOut.Flip.present (presenter) 7.1, Driver.Present (presenter) 7.1 - present 4992: 114.7 ms at 8201 ms: Graphics.Draw (draw committer) 46.4, Graphics.Draw.draw_and_resource_release (draw committer) 38.2, batch (gpu) 28.7, VideoOut.Flip (presenter) 10.3 - present 5259: 113.3 ms at 28596 ms: batch (gpu) 29.0, VideoOut.Flip (presenter) 13.7, VideoOut.Flip.present (presenter) 13.3, Driver.Present (presenter) 13.3 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 4887: 139.9 ms at 0 ms, persistence 71.3 ms - present 5228: 128.2 ms at 26087 ms, persistence 59.6 ms - present 5192: 128.0 ms at 23405 ms, persistence 58.2 ms - present 5259: 113.3 ms at 28596 ms, persistence 43.3 ms - present 4992: 114.7 ms at 8201 ms, persistence 41.9 ms - present 5240: 111.3 ms at 27057 ms, persistence 40.7 ms - present 5254: 107.7 ms at 28200 ms, persistence 37.3 ms - present 5047: 96.2 ms at 12439 ms, persistence 24.9 ms - present 5252: 97.1 ms at 28033 ms, persistence 24.1 ms - present 5202: 93.0 ms at 24194 ms, persistence 22.4 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.0 (0 %) | 0.0 (0 %) | 76.9 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x0 | 11.7 (15 %) | 0.3 (0 %) | 64.9 | 26.6 | Driver.Packet 11.2, Driver.Rewind 0.6 | | draw committer | 22.3 (29 %) | 0.1 (0 %) | 54.5 | 17.5 | Graphics.Draw 17.1, Recorder.Sync 3.7 | | presenter | 2.2 (3 %) | 7.9 (10 %) | 66.9 | 0.1 | VideoOut.Flip 10.0, Driver.Present 0.0 | | gpu | 27.9 (36 %) | 0.0 (0 %) | 49.1 | 0.0 | batch 27.9 | **Largest slices** (ms per frame, inclusive, all threads): batch 27.9, Graphics.Draw 17.3, Graphics.Draw.draw_and_resource_release 14.2, Driver.Packet 11.2, VideoOut.Flip 10.0, Driver.Present 9.9, VideoOut.Flip.present 9.9, Driver.Packet.draw 6.9, Driver.Draw 6.8, Recorder.Sync 4.8 **Longest waits** - Driver.Present.gpu_mutex_wait (presenter) 8.2 ms at 22224 ms, present 5176 - Driver.Present.gpu_mutex_wait (presenter) 8.0 ms at 15864 ms, present 5092 - Driver.Present.gpu_mutex_wait (presenter) 7.9 ms at 22072 ms, present 5174 - Driver.Present.gpu_mutex_wait (presenter) 7.9 ms at 4526 ms, present 4944 - Driver.Present.gpu_mutex_wait (presenter) 7.8 ms at 3763 ms, present 4934 - Driver.Present.gpu_mutex_wait (presenter) 7.8 ms at 16238 ms, present 5097 - Driver.Present.gpu_mutex_wait (presenter) 7.8 ms at 5821 ms, present 4961 - Driver.Present.gpu_mutex_wait (presenter) 7.7 ms at 9634 ms, present 5010 - Driver.Present.gpu_mutex_wait (presenter) 7.7 ms at 23117 ms, present 5188 - Driver.Present.gpu_mutex_wait (presenter) 7.6 ms at 21084 ms, present 5161 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 24085: 8.2 ms at 16759 ms, present 5103: GPU no ranges; recorded by no CPU slices - batch 17907: 8.1 ms at 12535 ms, present 5047: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Recorder.Submit (draw committer) 0.0 - batch 39106: 8.0 ms at 27056 ms, present 5239: GPU no ranges; recorded by no CPU slices - batch 11158: 8.0 ms at 7825 ms, present 4986: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 - batch 18348: 8.0 ms at 12843 ms, present 5051: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 </details> <details><summary><code>tools/trace_digest.py</code> of this PR's first capture</summary> **seconds 300:30** from present 5191: 299 presents, frame p50 107.5 / p90 113.3 / p99 134.4 / max 167.2 ms, GPU busy 30.8 ms per present AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit e7ef41a7add1, dropped: yes ```json {"commit":"e7ef41a7add1","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":5191,"ms":30041.302},"presents":299,"frame_ms":{"p50":107.511,"p90":113.276,"p99":134.383,"max":167.236},"gpu_busy_ms_per_present":30.801,"worker_busy_pct":{"queue worker 0x0":97.435},"top_phases_ms_per_frame":{"Driver.Packet":92.893,"Graphics.Draw":71.279,"Driver.Packet.draw":68.987,"Driver.Draw":68.333,"Graphics.Draw.draw_and_resource_release":62.897,"Driver.Draw.shader_compile_and_link":41.868,"Shader.DrawStage":32.931,"Driver.Draw.draw_enqueued":16.416},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.226,"events_lost":1139325,"totals_full":false},"draw committer":{"events_full_after_s":12.852,"events_lost":390826,"totals_full":false}},"trace":"aps5-trace-e7ef41a7add1-17208.json.gz"} ``` **Incomplete trace:** recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately. - queue worker 0x0: 1139325 events lost; buffer full at 6226.0 ms - draw committer: 390826 events lost; buffer full at 12851.6 ms **Slowest frames** (largest slices inside each, inclusive) - present 5321: 167.2 ms at 11268 ms: Graphics.Draw (draw committer) 55.5, Graphics.Draw.draw_and_resource_release (draw committer) 44.3, batch (gpu) 31.8, Recorder.Sync (draw committer) 8.5 - present 5434: 163.6 ms at 23829 ms: batch (gpu) 34.0, VideoOut.Flip (presenter) 6.3, VideoOut.Flip.present (presenter) 6.2, Driver.Present (presenter) 6.2 - present 5374: 134.4 ms at 17189 ms: batch (gpu) 34.1, VideoOut.Flip (presenter) 5.9, VideoOut.Flip.present (presenter) 5.7, Driver.Present (presenter) 5.7 - present 5370: 130.7 ms at 16739 ms: batch (gpu) 34.4, VideoOut.Flip (presenter) 7.0, VideoOut.Flip.present (presenter) 6.8, Driver.Present (presenter) 6.8 - present 5311: 129.9 ms at 10171 ms: Graphics.Draw (draw committer) 54.5, Graphics.Draw.draw_and_resource_release (draw committer) 43.6, batch (gpu) 33.1, Recorder.Sync (draw committer) 7.8 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 5321: 167.2 ms at 11268 ms, persistence 96.9 ms - present 5434: 163.6 ms at 23829 ms, persistence 59.4 ms - present 5228: 109.4 ms at 2777 ms, persistence 37.0 ms - present 5374: 134.4 ms at 17189 ms, persistence 29.6 ms - present 5311: 129.9 ms at 10171 ms, persistence 27.3 ms - present 5370: 130.7 ms at 16739 ms, persistence 25.3 ms - present 5477: 125.9 ms at 28613 ms, persistence 21.6 ms - present 5308: 125.2 ms at 9828 ms, persistence 20.5 ms - present 5343: 126.4 ms at 13757 ms, persistence 20.4 ms - present 5261: 97.7 ms at 5373 ms, persistence 18.7 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.0 (0 %) | 0.0 (0 %) | 100.5 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x0 | 14.3 (14 %) | 0.5 (0 %) | 85.7 | 32.5 | Driver.Packet 13.8, Driver.Rewind 0.7 | | draw committer | 25.0 (25 %) | 0.0 (0 %) | 75.4 | 20.7 | Graphics.Draw 21.0, Recorder.Sync 2.4 | | presenter | 2.2 (2 %) | 5.2 (5 %) | 93.1 | 0.0 | VideoOut.Flip 7.4, Driver.Present 0.0 | | gpu | 30.8 (31 %) | 0.0 (0 %) | 69.6 | 0.0 | batch 30.8 | **Largest slices** (ms per frame, inclusive, all threads): batch 30.8, Graphics.Draw 21.3, Graphics.Draw.draw_and_resource_release 17.2, Driver.Packet 13.8, Driver.Packet.draw 9.0, Driver.Draw 8.8, VideoOut.Flip 7.4, Driver.Present 7.2, VideoOut.Flip.present 7.2, Driver.Packet.dispatch 3.9 **Longest waits** - Driver.Present.render_fence_wait (presenter) 7.4 ms at 10409 ms, present 5313 - Driver.Present.gpu_mutex_wait (presenter) 6.2 ms at 27407 ms, present 5466 - Driver.Present.gpu_mutex_wait (presenter) 6.1 ms at 5881 ms, present 5267 - Driver.Present.gpu_mutex_wait (presenter) 6.0 ms at 1 ms, present 5191 - Driver.Present.gpu_mutex_wait (presenter) 5.8 ms at 17983 ms, present 5381 - Driver.Present.gpu_mutex_wait (presenter) 5.5 ms at 1768 ms, present 5215 - Driver.Present.gpu_mutex_wait (presenter) 5.2 ms at 8152 ms, present 5292 - Driver.Present.gpu_mutex_wait (presenter) 5.0 ms at 7492 ms, present 5285 - Driver.Present.gpu_mutex_wait (presenter) 4.9 ms at 1256 ms, present 5208 - Driver.Present.gpu_mutex_wait (presenter) 4.9 ms at 7400 ms, present 5284 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 28433: 5.9 ms at 22074 ms, present 5418: GPU no ranges; recorded by no CPU slices - batch 28704: 5.8 ms at 22294 ms, present 5420: GPU no ranges; recorded by no CPU slices - batch 12426: 5.7 ms at 8868 ms, present 5298: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 - batch 13594: 5.7 ms at 9828 ms, present 5308: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 - batch 5758: 5.5 ms at 3950 ms, present 5242: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.0 </details> <details><summary><code>tools/trace_digest.py</code> of this PR's second capture</summary> **seconds 300:30** from present 5086: 417 presents, frame p50 68.6 / p90 82.2 / p99 91.4 / max 124.6 ms, GPU busy 24.7 ms per present AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit e7ef41a7add1, dropped: yes ```json {"commit":"e7ef41a7add1","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":5086,"ms":30041.236},"presents":417,"frame_ms":{"p50":68.603,"p90":82.234,"p99":91.44,"max":124.561},"gpu_busy_ms_per_present":24.683,"worker_busy_pct":{"queue worker 0x0":97.506},"top_phases_ms_per_frame":{"Driver.Packet":65.869,"Graphics.Draw":47.574,"Driver.Packet.draw":44.935,"Driver.Draw":44.475,"Graphics.Draw.draw_and_resource_release":41.933,"Driver.Draw.shader_compile_and_link":26.907,"Shader.DrawStage":20.735,"Driver.Packet.dispatch":12.367},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.552,"events_lost":963457,"totals_full":false},"draw committer":{"events_full_after_s":14.967,"events_lost":289464,"totals_full":false}},"trace":"aps5-trace-e7ef41a7add1-1056.json.gz"} ``` **Incomplete trace:** recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately. - queue worker 0x0: 963457 events lost; buffer full at 6551.8 ms - draw committer: 289464 events lost; buffer full at 14966.6 ms **Slowest frames** (largest slices inside each, inclusive) - present 5338: 124.6 ms at 16849 ms: batch (gpu) 22.9, VideoOut.Flip (presenter) 6.1, VideoOut.Flip.present (presenter) 5.9, Driver.Present (presenter) 5.9 - present 5340: 109.0 ms at 17044 ms: batch (gpu) 25.5, VideoOut.Flip (presenter) 13.4, VideoOut.Flip.present (presenter) 13.2, Driver.Present (presenter) 13.2 - present 5497: 100.1 ms at 29523 ms: batch (gpu) 27.6, VideoOut.Flip (presenter) 11.6, VideoOut.Flip.present (presenter) 11.5, Driver.Present (presenter) 11.5 - present 5498: 95.4 ms at 29623 ms: batch (gpu) 25.6, VideoOut.Flip (presenter) 7.8, VideoOut.Flip.present (presenter) 7.6, Driver.Present (presenter) 7.6 - present 5387: 91.4 ms at 20640 ms: batch (gpu) 27.2, VideoOut.Flip (presenter) 8.3, VideoOut.Flip.present (presenter) 8.0, Driver.Present (presenter) 8.0 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 5338: 124.6 ms at 16849 ms, persistence 62.3 ms - present 5340: 109.0 ms at 17044 ms, persistence 38.6 ms - present 5497: 100.1 ms at 29523 ms, persistence 30.0 ms - present 5333: 87.9 ms at 16474 ms, persistence 19.8 ms - present 5223: 78.1 ms at 9107 ms, persistence 15.8 ms - present 5387: 91.4 ms at 20640 ms, persistence 15.4 ms - present 5146: 77.5 ms at 3974 ms, persistence 14.5 ms - present 5330: 81.9 ms at 16252 ms, persistence 14.1 ms - present 5195: 77.2 ms at 7219 ms, persistence 13.4 ms - present 5364: 86.5 ms at 18856 ms, persistence 13.4 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.0 (0 %) | 0.0 (0 %) | 72.0 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x0 | 10.5 (15 %) | 0.3 (0 %) | 61.2 | 25.4 | Driver.Packet 9.8, Driver.Rewind 0.5 | | draw committer | 19.6 (27 %) | 0.0 (0 %) | 52.4 | 17.8 | Graphics.Draw 15.4, Recorder.Sync 2.5 | | presenter | 2.2 (3 %) | 5.7 (8 %) | 64.1 | 0.0 | VideoOut.Flip 7.9, Driver.Present 0.0 | | gpu | 24.7 (34 %) | 0.0 (0 %) | 47.4 | 0.0 | batch 24.7 | **Largest slices** (ms per frame, inclusive, all threads): batch 24.7, Graphics.Draw 15.7, Graphics.Draw.draw_and_resource_release 12.7, Driver.Packet 9.8, VideoOut.Flip 7.9, Driver.Present 7.8, VideoOut.Flip.present 7.8, Driver.Packet.draw 6.2, Driver.Draw 6.1, Recorder.Sync 3.3 **Longest waits** - Driver.Present.gpu_mutex_wait (presenter) 7.5 ms at 17048 ms, present 5340 - Driver.Present.gpu_mutex_wait (presenter) 6.0 ms at 28152 ms, present 5480 - Driver.Present.gpu_mutex_wait (presenter) 5.9 ms at 15836 ms, present 5324 - Driver.Present.gpu_mutex_wait (presenter) 5.7 ms at 277 ms, present 5090 - Driver.Present.gpu_mutex_wait (presenter) 5.5 ms at 29439 ms, present 5496 - Driver.Present.gpu_mutex_wait (presenter) 5.5 ms at 29526 ms, present 5497 - Driver.Present.gpu_mutex_wait (presenter) 5.5 ms at 24180 ms, present 5431 - Driver.Present.gpu_mutex_wait (presenter) 5.5 ms at 16632 ms, present 5335 - Driver.Present.gpu_mutex_wait (presenter) 5.4 ms at 23541 ms, present 5423 - Driver.Present.gpu_mutex_wait (presenter) 5.2 ms at 28470 ms, present 5484 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 36266: 6.0 ms at 22428 ms, present 5408: GPU no ranges; recorded by no CPU slices - batch 26005: 5.8 ms at 15416 ms, present 5317: GPU no ranges; recorded by no CPU slices - batch 18549: 5.8 ms at 10991 ms, present 5250: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 - batch 18773: 5.8 ms at 11123 ms, present 5253: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 - batch 45283: 5.7 ms at 28633 ms, present 5485: GPU no ranges; recorded by no CPU slices </details> ### Checklist - [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: #15718 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: AMD Radeon RX 7900 XTX, AMD Software 26.10.1 (32.0.32015.7029), Windows 11 Pro 26300 - [x] AI-assisted: yes
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!15719
No description provided.