perf(shader): let APS5_FAST_F32 compile f32 arithmetic with host float rules #10720

Merged
meh7an merged 2 commits from upstream-pr/10720 into main 2026-11-01 03:41:30 +00:00
meh7an commented 2026-10-24 19:33:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by meh7an on 2026-10-24T19:33:43Z.


What

APS5_FAST_F32 (set to anything but 0) compiles f32 arithmetic with the host GPU's float rules instead of emulating RDNA's.

  • nanResultF32 returns the instruction's host result. On main it picks RDNA's NaN: the first NaN source, quieted in IEEE mode; else 0xffc00000 when the result is NaN.
  • f32DenormalFlushFor asks for no software flush. On main it emulates RDNA's denormal flush in software wherever the device's own flush (ProbeFloat32FlushToZero) does not cover the instruction.
  • The shader disk cache keeps the two modes apart (SourceVersion differs).

Results differ from RDNA's only when a result is a NaN (its sign and payload bits) or a denormal (the host's rules decide whether it is flushed). The switch is off by default, so nothing changes unless it is set.

A question for the maintainers. On the page measured below, the exact rules cost about a quarter of the GPU time. Would you take host rules as the default, with an exact opt-in, the way v_rcp_f32 uses the driver's division unless APS5_EXACT_RCP is set? I kept it opt-in here so that is your call. If you'd rather have it as the default, I'll flip it in this PR and rename the switch.

Test. agc_driver_f32_arithmetic_nan_fast (new) runs the f32 NaN program of agc_driver_f32_arithmetic_nan with APS5_FAST_F32=1. Every non-NaN result must match RDNA as before; a result that RDNA gives as a NaN only has to be a NaN. Without that allowance it fails at lane 0's v_add_f32, which returns 0x7fffffff (NVIDIA's NaN) where RDNA returns 0x7f812345. The default test is unchanged.

Related. Both of these stay exact; this switch is for users who accept host NaN payloads and denormals:

  • #4287 trims the NaN selects.
  • #4278 and #8958 drop flushes of results that cannot be denormal.

tools/pr_overlap.py lists one conflict: #4287 rewrites the body of nanResultF32, where this PR adds an early return as the first line. The proposed order is #4287 first (comment). Once it merges, this PR rebases onto it and keeps that line as the function's first statement. It found no other overlap. Of the PRs it could not compare, #5925, #6858 and #6924 only call ShaderDiskCache::SourceVersion(), which returns each mode's own version.

Tested

Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 2080 Ti, driver 617.14, i9-9900K, on main 29f539a5f3.

Sonic Origins Plus (PPSA05324), Sonic 2 page of the main menu, main's defaults otherwise. One build, two arms: the default (exact) and APS5_FAST_F32=1. Each arm got one warm-up boot (each mode has its own shader cache version), then one traced round (APS5_TRACE_SECONDS=200:15). The build is 991731d42276, which differs from this PR's head only in the test and its registration.

frame p50 (ms) GPU busy per present (ms) Driver.Packet (ms/frame) title FPS (median of six)
default (exact) 82.9 68.7 81.8 12.99
APS5_FAST_F32=1 82.5 50.5 82.3 12.75
  • GPU busy per present drops by 18.2 ms (-26 %).
  • The queue worker is about 97 % busy in both arms, so on this page the frame time stays bound by it. The warm-up boots read 12.57 (exact) and 13.02 (fast) FPS: the title readings move within noise.
  • The scene renders the same in both arms (per-reading thumbnails).
  • ctest (2159 tests) on main plus this PR: everything passes except agc_driver_depth_plane_partial_store ("repeated lookups of the first layer of an unchanged array proved no refresh"), which fails the same way on plain main 29f539a5f3 on this machine.
  • ctest --test-dir build -R "f32|f16|nan|denormal|rcp|float|fma" -V with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation: 88/88 on main, 89/89 on this PR (the extra one is agc_driver_f32_arithmetic_nan_fast). Neither log has was not found but was requested by env var VK_INSTANCE_LAYERS, and neither has a VUID- line.

The two summaries and their digests (both traces are attached):

fast-f32-s2-traces.zip

default (exact)

seconds 200:15 from present 3536: 179 presents, frame p50 82.9 / p90 91.5 / p99 99.3 / max 100.9 ms, GPU busy 68.7 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 991731d42276, dropped: yes

{"commit":"991731d42276","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32684,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":3536,"ms":15057.73},"presents":179,"frame_ms":{"p50":82.867,"p90":91.489,"p99":99.282,"max":100.922},"gpu_busy_ms_per_present":68.708,"worker_busy_pct":{"queue worker 0x0":97.332},"top_phases_ms_per_frame":{"Driver.Packet":81.817,"Driver.Packet.draw":63.141,"Graphics.Draw":62.47,"Driver.Draw":62.079,"Graphics.Draw.draw_and_resource_release":51.314,"Driver.Draw.shader_compile_and_link":41.913,"Shader.DrawStage":31.065,"Driver.Present":27.175},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.65,"events_lost":424742,"totals_full":false},"draw committer":{"events_full_after_s":12.969,"events_lost":42124,"totals_full":false}},"trace":"aps5-trace-991731d42276-35344.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 3693: 100.9 ms at 13186 ms: batch (gpu) 68.3, VideoOut.Flip (presenter) 25.3, VideoOut.Flip.present (presenter) 25.1, Driver.Present (presenter) 25.1
  • present 3599: 99.3 ms at 5215 ms: batch (gpu) 67.7, Driver.Packet (queue worker 0x0) 60.9, Graphics.Draw (draw committer) 50.5, Driver.Packet.draw (queue worker 0x0) 49.2
  • present 3641: 97.4 ms at 8800 ms: batch (gpu) 68.8, Graphics.Draw (draw committer) 48.7, Graphics.Draw.draw_and_resource_release (draw committer) 42.8, VideoOut.Flip (presenter) 28.0
  • present 3709: 97.0 ms at 14541 ms: batch (gpu) 69.7, VideoOut.Flip (presenter) 27.2, VideoOut.Flip.present (presenter) 27.1, Driver.Present (presenter) 27.1
  • present 3603: 96.7 ms at 5570 ms: batch (gpu) 70.1, Graphics.Draw (draw committer) 51.9, Graphics.Draw.draw_and_resource_release (draw committer) 44.8, Driver.Packet (queue worker 0x0) 41.4

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.7 (1 %) 0.0 (0 %) 83.4 0.6 Shader.ResolveGraphicsStagesAbi 0.3, Shader.ResolveGraphicsAbi 0.3
queue worker 0x0 16.3 (19 %) 0.0 (0 %) 67.8 73.6 Driver.Packet 16.3, Driver.Completion 0.0
draw committer 32.6 (39 %) 0.4 (1 %) 51.0 50.7 Graphics.Draw 30.9, Recorder.Submit 1.2
title 0.2 (0 %) 0.0 (0 %) 83.9 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 83.9 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 83.9 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
presenter 0.7 (1 %) 26.7 (32 %) 56.8 0.0 VideoOut.Flip 27.2, Driver.Present 0.2
title 0.2 (0 %) 0.0 (0 %) 83.9 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 83.9 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 83.9 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 83.9 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 83.9 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 83.9 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 83.9 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 83.9 0.1 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 83.9 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
gpu 68.6 (82 %) 0.0 (0 %) 15.5 0.0 batch 68.6

Largest slices (ms per frame, inclusive, all threads): batch 68.6, Graphics.Draw 30.9, Driver.Present 27.2, VideoOut.Flip 27.2, VideoOut.Flip.present 27.0, Driver.Present.render_fence_wait 26.6, Vulkan.Retire 26.6, Vulkan.Retire.wait 26.6, Graphics.Draw.draw_and_resource_release 25.1, Driver.Packet 16.3

Longest waits

  • Driver.Present.render_fence_wait (presenter) 33.0 ms at 1 ms, present 3536
  • Driver.Present.render_fence_wait (presenter) 31.1 ms at 498 ms, present 3542
  • Driver.Present.render_fence_wait (presenter) 30.6 ms at 3151 ms, present 3574
  • Driver.Present.render_fence_wait (presenter) 30.6 ms at 4471 ms, present 3590
  • Driver.Present.render_fence_wait (presenter) 30.2 ms at 4631 ms, present 3592
  • Driver.Present.render_fence_wait (presenter) 30.0 ms at 3316 ms, present 3576
  • Driver.Present.render_fence_wait (presenter) 30.0 ms at 4550 ms, present 3591
  • Driver.Present.render_fence_wait (presenter) 29.8 ms at 659 ms, present 3544
  • Driver.Present.render_fence_wait (presenter) 29.8 ms at 3230 ms, present 3575
  • Driver.Present.render_fence_wait (presenter) 29.8 ms at 579 ms, present 3543

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

  • batch 4018: 13.5 ms at 4629 ms, present 3591: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.1, Driver.Packet.dispatch (queue worker 0x0) 0.5, Driver.Dispatch (queue worker 0x0) 0.5, Vulkan.Dispatch (queue worker 0x0) 0.3
  • batch 9869: 13.5 ms at 11519 ms, present 3672: GPU no ranges; recorded by no CPU slices
  • batch 11537: 13.4 ms at 13453 ms, present 3695: GPU no ranges; recorded by no CPU slices
  • batch 11612: 13.4 ms at 13537 ms, present 3696: GPU no ranges; recorded by no CPU slices
  • batch 11031: 13.4 ms at 12847 ms, present 3688: GPU no ranges; recorded by no CPU slices

APS5_FAST_F32=1

seconds 200:15 from present 3652: 177 presents, frame p50 82.5 / p90 94.9 / p99 110.9 / max 115.6 ms, GPU busy 50.5 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 991731d42276, dropped: yes

{"commit":"991731d42276","dirty":false,"env":{"APS5_FAST_F32":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32684,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":3652,"ms":15012.498},"presents":177,"frame_ms":{"p50":82.519,"p90":94.855,"p99":110.893,"max":115.578},"gpu_busy_ms_per_present":50.452,"worker_busy_pct":{"queue worker 0x0":97.16},"top_phases_ms_per_frame":{"Driver.Packet":82.34,"Driver.Packet.draw":63.581,"Driver.Draw":62.584,"Graphics.Draw":62.527,"Graphics.Draw.draw_and_resource_release":51.211,"Driver.Draw.shader_compile_and_link":42.519,"Shader.DrawStage":31.644,"Shader.DrawStage.materialize":19.099},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.696,"events_lost":427832,"totals_full":false},"draw committer":{"events_full_after_s":13.125,"events_lost":37963,"totals_full":false}},"trace":"aps5-trace-991731d42276-33916.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 3724: 115.6 ms at 6102 ms: Graphics.Draw (draw committer) 55.1, batch (gpu) 51.0, Graphics.Draw.draw_and_resource_release (draw committer) 49.5, VideoOut.Flip (presenter) 18.1
  • present 3727: 110.9 ms at 6395 ms: Graphics.Draw (draw committer) 63.5, batch (gpu) 51.9, Graphics.Draw.draw_and_resource_release (draw committer) 44.2, VideoOut.Flip (presenter) 15.2
  • present 3808: 108.3 ms at 13233 ms: batch (gpu) 51.6, VideoOut.Flip (presenter) 16.8, VideoOut.Flip.present (presenter) 16.7, Driver.Present (presenter) 16.7
  • present 3762: 107.5 ms at 9314 ms: Graphics.Draw (draw committer) 60.8, batch (gpu) 51.7, Graphics.Draw.draw_and_resource_release (draw committer) 51.6, VideoOut.Flip (presenter) 19.2
  • present 3676: 107.3 ms at 2035 ms: Driver.Packet (queue worker 0x0) 71.6, Driver.Packet.draw (queue worker 0x0) 61.2, Driver.Draw (queue worker 0x0) 60.6, Graphics.Draw (draw committer) 54.0

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.7 (1 %) 0.0 (0 %) 84.1 0.7 Shader.ResolveGraphicsAbi 0.3, Shader.ResolveGraphicsStagesAbi 0.3
queue worker 0x0 17.0 (20 %) 0.0 (0 %) 67.8 74.7 Driver.Packet 17.0, Driver.Completion 0.0
draw committer 34.0 (40 %) 0.4 (0 %) 50.4 49.9 Graphics.Draw 32.1, Recorder.Submit 1.4
title 0.2 (0 %) 0.0 (0 %) 84.6 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 84.6 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 84.6 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
presenter 0.6 (1 %) 17.3 (20 %) 67.0 0.1 VideoOut.Flip 17.7, Driver.Present 0.1
title 0.2 (0 %) 0.0 (0 %) 84.6 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 84.6 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 84.6 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 84.6 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 84.6 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 84.6 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 84.6 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.3 (0 %) 0.0 (0 %) 84.5 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
title 0.2 (0 %) 0.0 (0 %) 84.6 0.1 Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1
gpu 50.4 (59 %) 0.0 (0 %) 34.4 0.0 batch 50.4

Largest slices (ms per frame, inclusive, all threads): batch 50.4, Graphics.Draw 32.1, Graphics.Draw.draw_and_resource_release 26.4, Driver.Present 17.7, VideoOut.Flip 17.7, VideoOut.Flip.present 17.6, Driver.Present.render_fence_wait 17.2, Vulkan.Retire 17.2, Vulkan.Retire.wait 17.2, Driver.Packet 17.0

Longest waits

  • Driver.Present.render_fence_wait (presenter) 20.4 ms at 2 ms, present 3652
  • Driver.Present.render_fence_wait (presenter) 19.6 ms at 14079 ms, present 3818
  • Driver.Present.render_fence_wait (presenter) 19.0 ms at 14600 ms, present 3824
  • Driver.Present.render_fence_wait (presenter) 18.9 ms at 12529 ms, present 3800
  • Driver.Present.render_fence_wait (presenter) 18.9 ms at 14180 ms, present 3819
  • Driver.Present.render_fence_wait (presenter) 18.6 ms at 9908 ms, present 3769
  • Driver.Present.render_fence_wait (presenter) 18.6 ms at 9314 ms, present 3762
  • Driver.Present.render_fence_wait (presenter) 18.5 ms at 4997 ms, present 3711
  • Driver.Present.render_fence_wait (presenter) 18.5 ms at 9588 ms, present 3765
  • Driver.Present.render_fence_wait (presenter) 18.5 ms at 7247 ms, present 3737

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

  • batch 10046: 10.9 ms at 11748 ms, present 3790: GPU no ranges; recorded by Graphics.Draw (draw committer) 2.0, Graphics.Draw.draw_and_resource_release (draw committer) 1.9, Recorder.Submit (draw committer) 0.1, Resources.Prepare (draw committer) 0.1
  • batch 9469: 10.9 ms at 11068 ms, present 3782: GPU no ranges; recorded by Graphics.Draw (draw committer) 3.6, Graphics.Draw.draw_and_resource_release (draw committer) 3.2, Graphics.Draw.validate (draw committer) 0.2, Recorder.Submit (draw committer) 0.1
  • batch 493: 10.9 ms at 617 ms, present 3658: GPU no ranges; recorded by Graphics.Draw (draw committer) 3.9, Graphics.Draw.draw_and_resource_release (draw committer) 3.5, Graphics.Draw.validate (draw committer) 0.2, Recorder.Submit (draw committer) 0.2
  • batch 6645: 10.8 ms at 7830 ms, present 3743: GPU no ranges; recorded by Graphics.Draw (draw committer) 2.1, Graphics.Draw.draw_and_resource_release (draw committer) 2.0, Resources.Prepare (draw committer) 0.1, Recorder.Submit (draw committer) 0.1
  • batch 6574: 10.7 ms at 7751 ms, present 3742: GPU no ranges; recorded by Graphics.Draw (draw committer) 2.2, Graphics.Draw.draw_and_resource_release (draw committer) 2.0, Recorder.Submit (draw committer) 0.1, Resources.Prepare (draw committer) 0.1

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: #4287
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 2080 Ti, driver 617.14, Windows 11 Pro 10.0.26300
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4998479618 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10720). Originally posted by [meh7an](https://github.com/meh7an) on 2026-10-24T19:33:43Z. --- ### What `APS5_FAST_F32` (set to anything but `0`) compiles f32 arithmetic with the host GPU's float rules instead of emulating RDNA's. - `nanResultF32` returns the instruction's host result. On `main` it picks RDNA's NaN: the first NaN source, quieted in IEEE mode; else `0xffc00000` when the result is NaN. - `f32DenormalFlushFor` asks for no software flush. On `main` it emulates RDNA's denormal flush in software wherever the device's own flush (`ProbeFloat32FlushToZero`) does not cover the instruction. - The shader disk cache keeps the two modes apart (`SourceVersion` differs). Results differ from RDNA's only when a result is a NaN (its sign and payload bits) or a denormal (the host's rules decide whether it is flushed). The switch is off by default, so nothing changes unless it is set. **A question for the maintainers.** On the page measured below, the exact rules cost about a quarter of the GPU time. Would you take host rules as the default, with an exact opt-in, the way `v_rcp_f32` uses the driver's division unless `APS5_EXACT_RCP` is set? I kept it opt-in here so that is your call. If you'd rather have it as the default, I'll flip it in this PR and rename the switch. **Test.** `agc_driver_f32_arithmetic_nan_fast` (new) runs the f32 NaN program of `agc_driver_f32_arithmetic_nan` with `APS5_FAST_F32=1`. Every non-NaN result must match RDNA as before; a result that RDNA gives as a NaN only has to be a NaN. Without that allowance it fails at lane 0's `v_add_f32`, which returns `0x7fffffff` (NVIDIA's NaN) where RDNA returns `0x7f812345`. The default test is unchanged. **Related.** Both of these stay exact; this switch is for users who accept host NaN payloads and denormals: - #4287 trims the NaN selects. - #4278 and #8958 drop flushes of results that cannot be denormal. `tools/pr_overlap.py` lists one conflict: #4287 rewrites the body of `nanResultF32`, where this PR adds an early return as the first line. The proposed order is #4287 first ([comment](https://github.com/boykopovar/AnyPS5/pull/4287#issuecomment-6388753259)). Once it merges, this PR rebases onto it and keeps that line as the function's first statement. It found no other overlap. Of the PRs it could not compare, #5925, #6858 and #6924 only call `ShaderDiskCache::SourceVersion()`, which returns each mode's own version. ### Tested Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 2080 Ti, driver 617.14, i9-9900K, on `main` 29f539a5f3. Sonic Origins Plus (PPSA05324), Sonic 2 page of the main menu, `main`'s defaults otherwise. One build, two arms: the default (exact) and `APS5_FAST_F32=1`. Each arm got one warm-up boot (each mode has its own shader cache version), then one traced round (`APS5_TRACE_SECONDS=200:15`). The build is 991731d42276, which differs from this PR's head only in the test and its registration. | | frame p50 (ms) | GPU busy per present (ms) | `Driver.Packet` (ms/frame) | title FPS (median of six) | |---|---|---|---|---| | default (exact) | 82.9 | 68.7 | 81.8 | 12.99 | | `APS5_FAST_F32=1` | 82.5 | 50.5 | 82.3 | 12.75 | - GPU busy per present drops by 18.2 ms (-26 %). - The queue worker is about 97 % busy in both arms, so on this page the frame time stays bound by it. The warm-up boots read 12.57 (exact) and 13.02 (fast) FPS: the title readings move within noise. - The scene renders the same in both arms (per-reading thumbnails). - `ctest` (2159 tests) on `main` plus this PR: everything passes except `agc_driver_depth_plane_partial_store` ("repeated lookups of the first layer of an unchanged array proved no refresh"), which fails the same way on plain `main` 29f539a5f3 on this machine. - `ctest --test-dir build -R "f32|f16|nan|denormal|rcp|float|fma" -V` with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`: 88/88 on `main`, 89/89 on this PR (the extra one is `agc_driver_f32_arithmetic_nan_fast`). Neither log has `was not found but was requested by env var VK_INSTANCE_LAYERS`, and neither has a `VUID-` line. The two summaries and their digests (both traces are attached): [fast-f32-s2-traces.zip](https://github.com/user-attachments/files/33912299/fast-f32-s2-traces.zip) **default (exact)** **seconds 200:15** from present 3536: 179 presents, frame p50 82.9 / p90 91.5 / p99 99.3 / max 100.9 ms, GPU busy 68.7 ms per present NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 991731d42276, dropped: yes ```json {"commit":"991731d42276","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32684,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":3536,"ms":15057.73},"presents":179,"frame_ms":{"p50":82.867,"p90":91.489,"p99":99.282,"max":100.922},"gpu_busy_ms_per_present":68.708,"worker_busy_pct":{"queue worker 0x0":97.332},"top_phases_ms_per_frame":{"Driver.Packet":81.817,"Driver.Packet.draw":63.141,"Graphics.Draw":62.47,"Driver.Draw":62.079,"Graphics.Draw.draw_and_resource_release":51.314,"Driver.Draw.shader_compile_and_link":41.913,"Shader.DrawStage":31.065,"Driver.Present":27.175},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.65,"events_lost":424742,"totals_full":false},"draw committer":{"events_full_after_s":12.969,"events_lost":42124,"totals_full":false}},"trace":"aps5-trace-991731d42276-35344.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 3693: 100.9 ms at 13186 ms: batch (gpu) 68.3, VideoOut.Flip (presenter) 25.3, VideoOut.Flip.present (presenter) 25.1, Driver.Present (presenter) 25.1 - present 3599: 99.3 ms at 5215 ms: batch (gpu) 67.7, Driver.Packet (queue worker 0x0) 60.9, Graphics.Draw (draw committer) 50.5, Driver.Packet.draw (queue worker 0x0) 49.2 - present 3641: 97.4 ms at 8800 ms: batch (gpu) 68.8, Graphics.Draw (draw committer) 48.7, Graphics.Draw.draw_and_resource_release (draw committer) 42.8, VideoOut.Flip (presenter) 28.0 - present 3709: 97.0 ms at 14541 ms: batch (gpu) 69.7, VideoOut.Flip (presenter) 27.2, VideoOut.Flip.present (presenter) 27.1, Driver.Present (presenter) 27.1 - present 3603: 96.7 ms at 5570 ms: batch (gpu) 70.1, Graphics.Draw (draw committer) 51.9, Graphics.Draw.draw_and_resource_release (draw committer) 44.8, Driver.Packet (queue worker 0x0) 41.4 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.7 (1 %) | 0.0 (0 %) | 83.4 | 0.6 | Shader.ResolveGraphicsStagesAbi 0.3, Shader.ResolveGraphicsAbi 0.3 | | queue worker 0x0 | 16.3 (19 %) | 0.0 (0 %) | 67.8 | 73.6 | Driver.Packet 16.3, Driver.Completion 0.0 | | draw committer | 32.6 (39 %) | 0.4 (1 %) | 51.0 | 50.7 | Graphics.Draw 30.9, Recorder.Submit 1.2 | | title | 0.2 (0 %) | 0.0 (0 %) | 83.9 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 83.9 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 83.9 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | presenter | 0.7 (1 %) | 26.7 (32 %) | 56.8 | 0.0 | VideoOut.Flip 27.2, Driver.Present 0.2 | | title | 0.2 (0 %) | 0.0 (0 %) | 83.9 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 83.9 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 83.9 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 83.9 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 83.9 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 83.9 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 83.9 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 83.9 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 83.9 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | gpu | 68.6 (82 %) | 0.0 (0 %) | 15.5 | 0.0 | batch 68.6 | **Largest slices** (ms per frame, inclusive, all threads): batch 68.6, Graphics.Draw 30.9, Driver.Present 27.2, VideoOut.Flip 27.2, VideoOut.Flip.present 27.0, Driver.Present.render_fence_wait 26.6, Vulkan.Retire 26.6, Vulkan.Retire.wait 26.6, Graphics.Draw.draw_and_resource_release 25.1, Driver.Packet 16.3 **Longest waits** - Driver.Present.render_fence_wait (presenter) 33.0 ms at 1 ms, present 3536 - Driver.Present.render_fence_wait (presenter) 31.1 ms at 498 ms, present 3542 - Driver.Present.render_fence_wait (presenter) 30.6 ms at 3151 ms, present 3574 - Driver.Present.render_fence_wait (presenter) 30.6 ms at 4471 ms, present 3590 - Driver.Present.render_fence_wait (presenter) 30.2 ms at 4631 ms, present 3592 - Driver.Present.render_fence_wait (presenter) 30.0 ms at 3316 ms, present 3576 - Driver.Present.render_fence_wait (presenter) 30.0 ms at 4550 ms, present 3591 - Driver.Present.render_fence_wait (presenter) 29.8 ms at 659 ms, present 3544 - Driver.Present.render_fence_wait (presenter) 29.8 ms at 3230 ms, present 3575 - Driver.Present.render_fence_wait (presenter) 29.8 ms at 579 ms, present 3543 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 4018: 13.5 ms at 4629 ms, present 3591: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.1, Driver.Packet.dispatch (queue worker 0x0) 0.5, Driver.Dispatch (queue worker 0x0) 0.5, Vulkan.Dispatch (queue worker 0x0) 0.3 - batch 9869: 13.5 ms at 11519 ms, present 3672: GPU no ranges; recorded by no CPU slices - batch 11537: 13.4 ms at 13453 ms, present 3695: GPU no ranges; recorded by no CPU slices - batch 11612: 13.4 ms at 13537 ms, present 3696: GPU no ranges; recorded by no CPU slices - batch 11031: 13.4 ms at 12847 ms, present 3688: GPU no ranges; recorded by no CPU slices **APS5_FAST_F32=1** **seconds 200:15** from present 3652: 177 presents, frame p50 82.5 / p90 94.9 / p99 110.9 / max 115.6 ms, GPU busy 50.5 ms per present NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 991731d42276, dropped: yes ```json {"commit":"991731d42276","dirty":false,"env":{"APS5_FAST_F32":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32684,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":3652,"ms":15012.498},"presents":177,"frame_ms":{"p50":82.519,"p90":94.855,"p99":110.893,"max":115.578},"gpu_busy_ms_per_present":50.452,"worker_busy_pct":{"queue worker 0x0":97.16},"top_phases_ms_per_frame":{"Driver.Packet":82.34,"Driver.Packet.draw":63.581,"Driver.Draw":62.584,"Graphics.Draw":62.527,"Graphics.Draw.draw_and_resource_release":51.211,"Driver.Draw.shader_compile_and_link":42.519,"Shader.DrawStage":31.644,"Shader.DrawStage.materialize":19.099},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.696,"events_lost":427832,"totals_full":false},"draw committer":{"events_full_after_s":13.125,"events_lost":37963,"totals_full":false}},"trace":"aps5-trace-991731d42276-33916.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 3724: 115.6 ms at 6102 ms: Graphics.Draw (draw committer) 55.1, batch (gpu) 51.0, Graphics.Draw.draw_and_resource_release (draw committer) 49.5, VideoOut.Flip (presenter) 18.1 - present 3727: 110.9 ms at 6395 ms: Graphics.Draw (draw committer) 63.5, batch (gpu) 51.9, Graphics.Draw.draw_and_resource_release (draw committer) 44.2, VideoOut.Flip (presenter) 15.2 - present 3808: 108.3 ms at 13233 ms: batch (gpu) 51.6, VideoOut.Flip (presenter) 16.8, VideoOut.Flip.present (presenter) 16.7, Driver.Present (presenter) 16.7 - present 3762: 107.5 ms at 9314 ms: Graphics.Draw (draw committer) 60.8, batch (gpu) 51.7, Graphics.Draw.draw_and_resource_release (draw committer) 51.6, VideoOut.Flip (presenter) 19.2 - present 3676: 107.3 ms at 2035 ms: Driver.Packet (queue worker 0x0) 71.6, Driver.Packet.draw (queue worker 0x0) 61.2, Driver.Draw (queue worker 0x0) 60.6, Graphics.Draw (draw committer) 54.0 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.7 (1 %) | 0.0 (0 %) | 84.1 | 0.7 | Shader.ResolveGraphicsAbi 0.3, Shader.ResolveGraphicsStagesAbi 0.3 | | queue worker 0x0 | 17.0 (20 %) | 0.0 (0 %) | 67.8 | 74.7 | Driver.Packet 17.0, Driver.Completion 0.0 | | draw committer | 34.0 (40 %) | 0.4 (0 %) | 50.4 | 49.9 | Graphics.Draw 32.1, Recorder.Submit 1.4 | | title | 0.2 (0 %) | 0.0 (0 %) | 84.6 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 84.6 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 84.6 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | presenter | 0.6 (1 %) | 17.3 (20 %) | 67.0 | 0.1 | VideoOut.Flip 17.7, Driver.Present 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 84.6 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 84.6 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 84.6 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 84.6 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 84.6 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 84.6 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 84.6 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.3 (0 %) | 0.0 (0 %) | 84.5 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.2 (0 %) | 0.0 (0 %) | 84.6 | 0.1 | Shader.ResolveGraphicsAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.1 | | gpu | 50.4 (59 %) | 0.0 (0 %) | 34.4 | 0.0 | batch 50.4 | **Largest slices** (ms per frame, inclusive, all threads): batch 50.4, Graphics.Draw 32.1, Graphics.Draw.draw_and_resource_release 26.4, Driver.Present 17.7, VideoOut.Flip 17.7, VideoOut.Flip.present 17.6, Driver.Present.render_fence_wait 17.2, Vulkan.Retire 17.2, Vulkan.Retire.wait 17.2, Driver.Packet 17.0 **Longest waits** - Driver.Present.render_fence_wait (presenter) 20.4 ms at 2 ms, present 3652 - Driver.Present.render_fence_wait (presenter) 19.6 ms at 14079 ms, present 3818 - Driver.Present.render_fence_wait (presenter) 19.0 ms at 14600 ms, present 3824 - Driver.Present.render_fence_wait (presenter) 18.9 ms at 12529 ms, present 3800 - Driver.Present.render_fence_wait (presenter) 18.9 ms at 14180 ms, present 3819 - Driver.Present.render_fence_wait (presenter) 18.6 ms at 9908 ms, present 3769 - Driver.Present.render_fence_wait (presenter) 18.6 ms at 9314 ms, present 3762 - Driver.Present.render_fence_wait (presenter) 18.5 ms at 4997 ms, present 3711 - Driver.Present.render_fence_wait (presenter) 18.5 ms at 9588 ms, present 3765 - Driver.Present.render_fence_wait (presenter) 18.5 ms at 7247 ms, present 3737 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 10046: 10.9 ms at 11748 ms, present 3790: GPU no ranges; recorded by Graphics.Draw (draw committer) 2.0, Graphics.Draw.draw_and_resource_release (draw committer) 1.9, Recorder.Submit (draw committer) 0.1, Resources.Prepare (draw committer) 0.1 - batch 9469: 10.9 ms at 11068 ms, present 3782: GPU no ranges; recorded by Graphics.Draw (draw committer) 3.6, Graphics.Draw.draw_and_resource_release (draw committer) 3.2, Graphics.Draw.validate (draw committer) 0.2, Recorder.Submit (draw committer) 0.1 - batch 493: 10.9 ms at 617 ms, present 3658: GPU no ranges; recorded by Graphics.Draw (draw committer) 3.9, Graphics.Draw.draw_and_resource_release (draw committer) 3.5, Graphics.Draw.validate (draw committer) 0.2, Recorder.Submit (draw committer) 0.2 - batch 6645: 10.8 ms at 7830 ms, present 3743: GPU no ranges; recorded by Graphics.Draw (draw committer) 2.1, Graphics.Draw.draw_and_resource_release (draw committer) 2.0, Resources.Prepare (draw committer) 0.1, Recorder.Submit (draw committer) 0.1 - batch 6574: 10.7 ms at 7751 ms, present 3742: GPU no ranges; recorded by Graphics.Draw (draw committer) 2.2, Graphics.Draw.draw_and_resource_release (draw committer) 2.0, Recorder.Submit (draw committer) 0.1, Resources.Prepare (draw committer) 0.1 ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #4287 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 2080 Ti, driver 617.14, Windows 11 Pro 10.0.26300 - [x] AI-assisted: yes
MarcZX10 commented 2026-10-24 19:36:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T19:36:48Z.

Review: CHANGES_REQUESTED


Reviewed exact head 7d6cc57fdf7fb9b6ad5e683807329d4a8a24d50a. The opt-in switch is applied consistently to NaN-result selection, denormal handling, and shader-cache versioning; the PR reports paired focused Vulkan tests and performance traces. Local diff-check and conventions pass; I could not run the GPU tests in this environment. One integration blocker remains: open #4287 changes the body of nanResultF32, where this PR adds its early return. The description says whichever lands second should preserve the line, but the checklist says Depends on: none and does not record an agreed order. CONTRIBUTING requires coordinating overlapping changes and recording the dependency/order. Please confirm the plan with the other author and update the checklist.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5639657151 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10720#pullrequestreview-5639657151). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-24T19:36:48Z. **Review:** CHANGES_REQUESTED --- Reviewed exact head `7d6cc57fdf7fb9b6ad5e683807329d4a8a24d50a`. The opt-in switch is applied consistently to NaN-result selection, denormal handling, and shader-cache versioning; the PR reports paired focused Vulkan tests and performance traces. Local diff-check and conventions pass; I could not run the GPU tests in this environment. One integration blocker remains: open #4287 changes the body of `nanResultF32`, where this PR adds its early return. The description says whichever lands second should preserve the line, but the checklist says `Depends on: none` and does not record an agreed order. CONTRIBUTING requires coordinating overlapping changes and recording the dependency/order. Please confirm the plan with the other author and update the checklist.
MarcZX10 commented 2026-10-24 20:20:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T20:20:58Z.

Review: COMMENTED


The implementation is opt-in, changes the shader cache key, and the author reports paired focused Vulkan runs with validation enabled and no VUIDs, so the change itself is well scoped. I would keep the default decision with maintainers as the PR does. One evidence caveat for the performance data: both trace captures say trace_dropped: true, with hundreds of thousands of lost events on the queue worker and draw committer. GPU-busy-per-present is still reported by the trace tool, but please clarify whether that aggregate remains complete when event buffers fill, and attach/compare tools/trace_digest.py summaries as the repository performance rule requires. The current PR text has detailed summaries but no visible trace-digest output in the body; I cannot validate the 26% GPU-busy claim from the pasted excerpts alone. I am leaving this as a non-blocking comment pending that clarification.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5639804722 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10720#pullrequestreview-5639804722). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-24T20:20:58Z. **Review:** COMMENTED --- The implementation is opt-in, changes the shader cache key, and the author reports paired focused Vulkan runs with validation enabled and no VUIDs, so the change itself is well scoped. I would keep the default decision with maintainers as the PR does. One evidence caveat for the performance data: both trace captures say `trace_dropped: true`, with hundreds of thousands of lost events on the queue worker and draw committer. GPU-busy-per-present is still reported by the trace tool, but please clarify whether that aggregate remains complete when event buffers fill, and attach/compare `tools/trace_digest.py` summaries as the repository performance rule requires. The current PR text has detailed summaries but no visible trace-digest output in the body; I cannot validate the 26% GPU-busy claim from the pasted excerpts alone. I am leaving this as a non-blocking comment pending that clarification.
MarcZX10 commented 2026-10-25 04:24:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T04:24:09Z.

Review: APPROVED


Re-reviewed exact head 7d6cc57fdf7fb9b6ad5e683807329d4a8a24d50a. The checklist now records Depends on: #4287, matching the stated merge order. The attached archive and body include the trace_digest.py summaries for both arms, with dropped-event counts and the higher p90/p99 for the fast arm disclosed. I checked the current trace implementation: gpu_busy_ms_per_present is derived from the Vulkan present counters, which accumulate completed GPU timestamp batch durations; it does not use the bounded per-thread event buffers that dropped queue-worker and draw-committer slices in these traces. The JSON also does not report the GPU range snapshot as dropped. That supports the reported aggregate GPU-busy metric while limiting the dropped traces’ completeness for CPU slice attribution. The PR reports paired main/change validation runs and no VUIDs on the RTX 2080 Ti; I did not rerun the Vulkan tests locally. Product jobs are skipped by hosted PR policy. The opt-in remains off by default as described. No remaining review blocker found.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5641480093 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10720#pullrequestreview-5641480093). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T04:24:09Z. **Review:** APPROVED --- Re-reviewed exact head `7d6cc57fdf7fb9b6ad5e683807329d4a8a24d50a`. The checklist now records `Depends on: #4287`, matching the stated merge order. The attached archive and body include the `trace_digest.py` summaries for both arms, with dropped-event counts and the higher p90/p99 for the fast arm disclosed. I checked the current trace implementation: `gpu_busy_ms_per_present` is derived from the Vulkan present counters, which accumulate completed GPU timestamp batch durations; it does not use the bounded per-thread event buffers that dropped queue-worker and draw-committer slices in these traces. The JSON also does not report the GPU range snapshot as dropped. That supports the reported aggregate GPU-busy metric while limiting the dropped traces’ completeness for CPU slice attribution. The PR reports paired main/change validation runs and no VUIDs on the RTX 2080 Ti; I did not rerun the Vulkan tests locally. Product jobs are skipped by hosted PR policy. The opt-in remains off by default as described. No remaining review blocker found.
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!10720
No description provided.