perf: PPSA26344 buffer loads through V#s read from a user-data table fall back to read_bda_span #15780

Open
opened 2026-11-04 14:36:13 +00:00 by Dextroid17 · 0 comments
Dextroid17 commented 2026-11-04 14:36:13 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-11-04T14:36:13Z.


Title and scene

PPSA26344 01.008.000, 1920x1080. Fork: brightness screen. Stock main: black screen before it.

What is slow or what changed

This asks for a missing fast path. It is not a bug report about the existing path.

Builds

  • Stock main at b11c7bf84f: this is where the code references below come from. The cost figures come from a warm 1200 s run. The game stays on a black screen before the brightness-calibration screen for the whole run, and the window title shows 0.32 FPS at 1150 s.
  • The yotei/best fork at 4565a51dc4: built from local tree 66b1722d5b, which adds a GCC build fix and an inert local preset. This build reaches the brightness screen and the opening cinematic. I used it for the two programs below, because stock main has not reached the scene that dispatches them in my runs.

The code path

TakeGpuDescriptor (core/shader/recompiler/Optimization/src/ResourceTracker.cpp:2225 at b11c7bf84f) makes a buffer resource only when ValidateSource can follow the V# back to a fixed source. Otherwise it sets memory.gpuDescriptor = true (line 2244) and usesDma, and the backend emits each load as a read_bda_span call. That is the intended general path for GPU-selected V#s.

When a V# or T# is read from a table for an image, there are table lowerings already:

  • pointer-loaded image tables (#758)
  • waterfall selects in pointer image tables (#7388; the per-lane T# waterfall is still open in #6488)
  • nested tables through a V# hop (#7223)

I found no merged or open change that plans a buffer load through such a table. In #7223 the buffer=true table column only serves as the heap for a nested T# lookup. The other open table PRs I checked (#7642, #9790, #9969, #15555) are image or T# side.

Related: #7138 (cost of decoding a runtime V# with ReadConstBuffer, on a related runtime-V# path), #8721 (table-driven formatted loads) and #14260 (draft; a BDA range cache in span reads; it makes each read_bda_span call cheaper rather than removing the calls, see the Windows datapoint below).

What the V#s in this title look like

I replayed 0x801edd2700 and 0x801eef6c00 offline with agc_shader_replay --dis, with a temporary stderr print added in TakeGpuDescriptor right after memory.gpuDescriptor = true. The diff (bda-vsharp-trace.patch) was not committed.

The print stops after 40 loads. It recorded 40 distinct buffer loads per program, and it does not see loads that passed ValidateSource.

  • All 40 recorded loads fail on V# dword 0: LoadBufferU32 5, x2 3, x3 2, x4 30.
  • In every recorded load, dword 0 is a ReadConstBuffer of a GetBufferResource(GetUserData…) table, from 5 distinct pcs per program.
  • In 34 of the 40, the table index is IMul32(ReadLane(Phi …)) of a loop value, which looks like a per-lane waterfall. I have not checked this against the EXEC handling in the disassembly. The other 6 index with a loop-counter Phi.

The print ran on the fork's recompiler. TakeGpuDescriptor and ValidateSource are byte-identical in 4565a51dc4 and b11c7bf84f. However, the rest of ResourceTracker.cpp changed a lot between them (about 760 lines, including #7223), and I have not confirmed that these loads still reach the fallback on main.

Cost: per-program GPU time from APS5_PROFILE_GPU=1

[gputime] prints only the top 12 programs per line, so each share below is a range. The lower bound counts only listed time. The upper bound assumes all unlisted time belongs to read_bda_span programs.

Fork (yotei/best), brightness screen: 8 [gputime] lines, 197 presents, 25984 ms of GPU program time (131.9 ms per present). Top 5 programs by total GPU time:

program ms per dispatch dispatches read_bda_span calls
0x801edd2700 18.97 198 447
0x801eef6c00 19.58 132 375
0x801ee18b00 8.45 198 0
0x2145d00 7.93 197 0
0x80001fd400 7.76 197 0
  • The two programs at the top take 24.4% of GPU program time.
  • 30 of 414 programs contain read_bda_span. Together they take between 26.2% and 63.2%.
  • 0x80001fd400 has the same guest code length (6596 words) as 0x801edd2700, and runs at 7.76 ms against 18.97 ms. The code differs, so this is only a rough comparison.

Stock main (b11c7bf84f), black-screen phase: 37 [gputime] lines, 186 presents, 5629 ms of GPU program time. Top 8 programs by total GPU time:

program ms per dispatch dispatches read_bda_span calls
0x8000253100 6.15 132 0

| 0x80001e5f00 | 8.47 | 95 | 181 |

| 0x80002c4500 | 0.23 | 3048 | 1 |

| 0x80001fd400 | 10.61 | 54 | 0 |

| 0x800036e100 | 1.89 | 186 | 16 |

| 0x80003cee00 | 1.60 | 186 | 0 |

| 0x80001c0d00 | 239.00 | 1 | 277 |

| 0x80003d6000 | 1.07 | 181 | 0 |

  • 21 of 135 programs contain read_bda_span. Together they take between 44.6% and 54.4% of GPU program time.
  • I have not traced the V# chains of these main programs, so I don't know whether they use the same table pattern.

I have not measured what a buffer-table lowering would save. These figures show what the current path costs, not what a fix would gain.

Independent datapoint: Windows, 02.002 (from @shahulmubeen-a's comment below, 2026-11-06; RTX 4070 Ti SUPER, a yotei/best 4565a51dc4-based build)

  • Two programs that look like 0x801edd2700 and 0x801eef6c00 at new addresses: 0x801f64cc00 (6608 code words, 447 read_bda_span calls) and 0x801f808700 (375 calls). The call counts match the two programs above; the code length differs slightly (6608 vs 6596 words).
  • With APS5_TRACE_BDA=1 neither program shows an address access, so all of their span reads are GPU-selected V#s. That is an independent check of the pattern this issue describes; my own trace print above never looked at address-based reads.
  • At HOME (Ezo save, APS5_PROFILE_GPU=1) they take 7.9% and 5.9% of GPU program time. HOME is not GPU-bound on that build (about 42% busy), so he expects a lowering to matter most in the GPU-bound scenes measured here (brightness screen, opening cinematic).
  • The larger share at HOME, about 31%, is five large compute programs (0x8000193900, 0x80001aa100, 0x80001c0300, 0x800019ee00, 0x80001df900; 0.8M-1.35M SPIR-V words each) whose span reads are address-based global loads. A buffer-table lowering would not reach those.
  • In a frame replay of HOME, #14260's range cache cuts the two table programs by 31-33% and the address-based ones by 18-46% (his numbers are on #14260). My reading: the two mechanisms are complementary; #14260 cuts the cost of read_bda_span calls, a table lowering would remove the calls for the table-indexed subset.

Scope note: his figures and mine come from different machines, OS, game versions and scenes, so they are not comparable to each other; each supports the same qualitative point.

Order of the summary lines below

The JSON below has two lines:

  1. Stock main: the last window of the warm run, with APS5_PROFILE_GPU and APS5_DUMP_SHADERS on.
  2. Fork: the trace window (APS5_TRACE_SECONDS=240:10).

Summary lines

{"commit":"b11c7bf84f5d","dirty":false,"env":{"APS5_DUMP_SHADERS":"1","APS5_NO_PIPELINE_JOURNAL":"1","APS5_NO_RESULT_MEMO":"1","APS5_PIPELINE_DISPATCH":"1","APS5_PROFILE_GPU":"1","APS5_RESOURCE_CACHE_ENTRIES":"1024","APS5_TRACE_DIR":"<path>","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.78.08","os":"Linux 7.3.1-1-cachyos","cpu":"11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz","cpu_threads":16,"memory_mib":31912,"title_id":"PPSA26344","title":"Ghost of Yōtei","content_version":"01.008.000","resolution":"1920x1080","window":{"spec":"summary_every 10","first_present":181,"ms":56946.501},"interval_start_s":1124.601,"interval_end_s":1181.547,"presents":5,"frame_ms":{"p50":407.500,"p90":52707.690,"p99":52707.690,"max":52707.690},"gpu_busy_ms_per_present":196.978,"worker_busy_pct":{"queue worker 0x0":3.568,"queue worker 0x52":0.000,"queue worker 0x20":0.949,"queue worker 0x53":0.000,"queue worker 0x30":3.352,"queue worker 0x38":3.031,"queue worker 0x48":1.165,"queue worker 0x51":97.712},"top_phases_ms_per_frame":{"Driver.Packet":12502.180,"Driver.Packet.dispatch":11515.665,"Driver.Dispatch":11499.492,"Vulkan.ComputePipeline":10056.769,"Driver.Dispatch.materialize":1092.573,"Driver.Packet.memory_wait":729.339,"Vulkan.Dispatch":136.581,"Vulkan.Dispatch.shader_resources":131.504},"trace_dropped":false,"trace":""}
{"commit":"66b1722d5b58","dirty":false,"env":{"APS5_ASYNC_LANE":"51","APS5_BINDLESS_IMAGES":"1","APS5_BINDLESS_LAZY":"1","APS5_DEFER_REFRESH_FLUSH":"1","APS5_NO_ADDRESS_DRAW_REUSE":"1","APS5_NO_DRAW_AHEAD":"1","APS5_NO_PIPELINE_JOURNAL":"1","APS5_NO_RESULT_MEMO":"1","APS5_PIPELINE_DISPATCH":"1","APS5_PIPELINE_INDIRECT":"1","APS5_RESOURCE_CACHE_ENTRIES":"1024","APS5_SPANNED_WAVE":"1","APS5_STAGING_DIFF":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"240:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.78.08","os":"Linux 7.3.1-1-cachyos","cpu":"11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz","cpu_threads":16,"memory_mib":31912,"title_id":"PPSA26344","title":"Ghost of Yōtei","content_version":"01.008.000","resolution":"1920x1080","window":{"spec":"seconds 240:10","first_present":1046,"ms":10668.784},"presents":16,"frame_ms":{"p50":658.912,"p90":734.548,"p99":755.169,"max":755.169},"gpu_busy_ms_per_present":626.693,"worker_busy_pct":{"queue worker 0x0":43.752,"queue worker 0x20":70.294,"queue worker 0x52":12.252,"queue worker 0x53":12.078,"queue worker 0x30":37.177,"queue worker 0x48":2.746,"queue worker 0x38":37.101,"queue worker 0x51":2.181,"queue worker 0x50":36.692},"top_phases_ms_per_frame":{"Driver.Packet":1693.036,"Driver.Packet.dispatch":904.425,"Driver.Packet.memory_wait":692.608,"Driver.Dispatch":674.733,"Driver.Dispatch.capture_resources":290.973,"DrawPipeline.commit":187.099,"DrawPipeline.drain.packet":152.227,"GpuMutex.wait.hook":112.502},"trace_dropped":false,"trace":"aps5-trace-66b1722d5b58-113844.json.gz"}

Traces

Trace: aps5-trace-66b1722d5b58-113844.json.gz (2.4 MB, a release asset on my fork).

  • What it covers: 10 s from the 240 s mark on the fork build, during the opening cinematic (burning tree). No events were dropped.
  • Not the brightness screen: that scene timing varies from run to run, and the game had moved past it by then.
  • No main trace: stock main never left its black screen, so I have no comparable trace.
  • No program ids: traces don't record which program ran, so the per-program figures above come only from APS5_PROFILE_GPU.

Digest

python3 tools/trace_digest.py (from main) on that trace:

seconds 240:10 from present 1046: 16 presents, frame p50 658.9 / p90 734.5 / p99 755.2 / max 755.2 ms, GPU busy 626.7 ms per present
NVIDIA GeForce RTX 3080 Ti, NVIDIA 615.78.08, Linux 7.3.1-1-cachyos, 1920x1080, commit 66b1722d5b58, dropped: no

{"commit":"66b1722d5b58","dirty":false,"env":{"APS5_ASYNC_LANE":"51","APS5_BINDLESS_IMAGES":"1","APS5_BINDLESS_LAZY":"1","APS5_DEFER_REFRESH_FLUSH":"1","APS5_NO_ADDRESS_DRAW_REUSE":"1","APS5_NO_DRAW_AHEAD":"1","APS5_NO_PIPELINE_JOURNAL":"1","APS5_NO_RESULT_MEMO":"1","APS5_PIPELINE_DISPATCH":"1","APS5_PIPELINE_INDIRECT":"1","APS5_RESOURCE_CACHE_ENTRIES":"1024","APS5_SPANNED_WAVE":"1","APS5_STAGING_DIFF":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"240:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.78.08","os":"Linux 7.3.1-1-cachyos","cpu":"11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz","cpu_threads":16,"memory_mib":31912,"title_id":"PPSA26344","title":"Ghost of Y\u014dtei","content_version":"01.008.000","resolution":"1920x1080","window":{"spec":"seconds 240:10","first_present":1046,"ms":10668.784},"presents":16,"frame_ms":{"p50":658.912,"p90":734.548,"p99":755.169,"max":755.169},"gpu_busy_ms_per_present":626.693,"worker_busy_pct":{"queue worker 0x0":43.752,"queue worker 0x20":70.294,"queue worker 0x52":12.252,"queue worker 0x53":12.078,"queue worker 0x30":37.177,"queue worker 0x48":2.746,"queue worker 0x38":37.101,"queue worker 0x51":2.181,"queue worker 0x50":36.692},"top_phases_ms_per_frame":{"Driver.Packet":1693.036,"Driver.Packet.dispatch":904.425,"Driver.Packet.memory_wait":692.608,"Driver.Dispatch":674.733,"Driver.Dispatch.capture_resources":290.973,"DrawPipeline.commit":187.099,"DrawPipeline.drain.packet":152.227,"GpuMutex.wait.hook":112.502},"trace_dropped":false,"trace":"aps5-trace-66b1722d5b58-113844.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 1050: 755.2 ms at 2724 ms: Driver.WorkerWait (queue worker 0x48) 735.0, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x48) 735.0, batch (gpu) 690.5, Driver.WorkerWait (queue worker 0x51) 686.1
  • present 1058: 734.5 ms at 7967 ms: Driver.WorkerWait (queue worker 0x51) 724.7, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x51) 724.7, Driver.WorkerWait (queue worker 0x48) 720.1, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x48) 720.1
  • present 1047: 726.1 ms at 682 ms: Driver.WorkerWait (queue worker 0x51) 715.0, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x51) 715.0, Driver.WorkerWait (queue worker 0x48) 705.6, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x48) 705.6
  • present 1057: 713.0 ms at 7254 ms: Driver.WorkerWait (queue worker 0x51) 702.7, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x51) 702.7, Driver.WorkerWait (queue worker 0x48) 698.1, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x48) 698.1
  • present 1061: 697.2 ms at 9972 ms: batch (gpu) 586.7, Driver.Packet (queue worker 0x20) 481.4, Driver.WorkerWait (queue worker 0x51) 473.7, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x51) 473.7

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

  • present 1050: 755.2 ms at 2724 ms, persistence 206.4 ms
  • present 1058: 734.5 ms at 7967 ms, persistence 185.8 ms
  • present 1061: 697.2 ms at 9972 ms, persistence 85.2 ms
  • present 1047: 726.1 ms at 682 ms, persistence 68.4 ms
  • present 1054: 654.7 ms at 5362 ms, persistence 35.5 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 1.5 (0 %) 0.0 (0 %) 665.3 0.7 Shader.ResolveGraphicsStagesAbi 0.6, Shader.ResolveGraphicsAbi 0.5
shader prepare 0.3 (0 %) 0.0 (0 %) 666.5 0.0 Vulkan.GraphicsPipelinePrebuild 0.3
queue worker 0x0 260.8 (39 %) 397.7 (60 %) 8.4 76.1 Driver.Packet 284.5, Driver.Completion 0.1
queue worker 0x20 378.5 (57 %) 287.0 (43 %) 1.3 23.5 Driver.Packet 467.5, Driver.EndSubmission 0.2
queue worker 0x52 3.2 (0 %) 649.6 (97 %) 14.0 1.2 Driver.Packet 80.4, Driver.EndSubmission 1.2
queue worker 0x53 0.4 (0 %) 652.4 (98 %) 14.0 0.2 Driver.Packet 80.4, Driver.EndSubmission 0.1
title 1.3 (0 %) 0.0 (0 %) 665.5 0.4 Shader.ResolveGraphicsStagesAbi 0.5, Shader.ResolveGraphicsAbi 0.4
title 1.3 (0 %) 0.0 (0 %) 665.5 0.4 Shader.ResolveGraphicsAbi 0.6, Shader.ResolveGraphicsStagesAbi 0.5
title 1.4 (0 %) 0.0 (0 %) 665.4 0.4 Shader.ResolveGraphicsStagesAbi 0.6, Shader.ResolveGraphicsAbi 0.5
queue worker 0x30 65.8 (10 %) 597.3 (90 %) 3.7 2.3 Driver.Packet 247.6
queue worker 0x48 8.3 (1 %) 639.1 (96 %) 19.4 1.6 Driver.Packet 17.5, Driver.EndSubmission 0.7
queue worker 0x38 76.4 (11 %) 586.4 (88 %) 4.0 5.7 Driver.Packet 246.8, Driver.EndSubmission 0.1
draw committer 173.4 (26 %) 11.7 (2 %) 481.7 10.6 DrawPipeline.commit 185.1
draw preparer 8.5 (1 %) 1.7 (0 %) 656.6 4.0 Resources.Prepare 8.5
presenter 0.7 (0 %) 24.4 (4 %) 641.7 0.1 VideoOut.Flip 25.1
title 13.7 (2 %) 0.0 (0 %) 653.1 0.4 Shader.ResolveGraphicsStagesAbi 12.9, Shader.ResolveGraphicsAbi 0.5
title 1.4 (0 %) 0.0 (0 %) 665.4 0.4 Shader.ResolveGraphicsAbi 0.5, Shader.ResolveAbi 0.5
title 1.2 (0 %) 0.0 (0 %) 665.6 0.3 Shader.ResolveGraphicsStagesAbi 0.4, Shader.ResolveGraphicsAbi 0.4
title 1.3 (0 %) 0.0 (0 %) 665.5 0.4 Shader.ResolveGraphicsStagesAbi 0.5, Shader.ResolveGraphicsAbi 0.4
title 1.2 (0 %) 0.0 (0 %) 665.6 0.3 Shader.ResolveGraphicsAbi 0.5, Shader.ResolveGraphicsStagesAbi 0.4
title 1.2 (0 %) 0.0 (0 %) 665.6 0.4 Shader.ResolveGraphicsAbi 0.4, Shader.ResolveAbi 0.4
title 4.1 (1 %) 0.0 (0 %) 662.7 0.5 Shader.ResolveGraphicsStagesAbi 3.3, Shader.ResolveGraphicsAbi 0.4
queue worker 0x51 9.7 (1 %) 643.9 (97 %) 13.2 2.1 Driver.Packet 14.3, Driver.EndSubmission 0.1
queue worker 0x50 15.4 (2 %) 651.1 (98 %) 0.3 1.3 Driver.Packet 244.3, Driver.EndSubmission 0.1
gpu 561.5 (84 %) 0.0 (0 %) 105.3 0.0 batch 561.5

Largest slices (ms per frame, inclusive, all threads): Driver.WorkerWait 4237.2, Driver.WorkerWait.idle_and_completion_poll 4049.5, Driver.Packet 1683.4, Driver.Packet.dispatch 902.4, Driver.Packet.memory_wait 692.6, Driver.Dispatch 669.8, batch 594.6, Driver.Dispatch.capture_resources 283.1, Driver.WorkerWait.dequeue_order 187.7, DrawPipeline.commit 185.1

Longest waits

  • Driver.WorkerWait (queue worker 0x51) 826.7 ms at 7678 ms, present 1057
  • Driver.WorkerWait (queue worker 0x48) 825.1 ms at 7599 ms, present 1057
  • Driver.WorkerWait (queue worker 0x53) 760.9 ms at 7667 ms, present 1057
  • Driver.WorkerWait (queue worker 0x52) 759.7 ms at 7668 ms, present 1057
  • Driver.WorkerWait (queue worker 0x51) 746.4 ms at 2526 ms, present 1049
  • Driver.WorkerWait (queue worker 0x48) 741.1 ms at 2450 ms, present 1049
  • Driver.WorkerWait (queue worker 0x51) 699.9 ms at 492 ms, present 1046
  • Driver.WorkerWait (queue worker 0x48) 688.0 ms at 422 ms, present 1046
  • Driver.WorkerWait (queue worker 0x53) 679.5 ms at 2515 ms, present 1049
  • Driver.WorkerWait (queue worker 0x52) 678.4 ms at 2516 ms, present 1049

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

  • batch 48363: 397.4 ms at 2761 ms, present 1050: GPU no ranges; recorded by Driver.Dispatch (queue worker 0x20) 420.4, Driver.Dispatch.capture_resources (queue worker 0x20) 417.1, Driver.Packet (queue worker 0x20) 1.7, Driver.Packet.dispatch (queue worker 0x20) 1.7
  • batch 49346: 352.8 ms at 8041 ms, present 1058: GPU no ranges; recorded by Driver.Dispatch (queue worker 0x20) 7.8, Driver.Packet (queue worker 0x20) 4.3, Driver.Packet.dispatch (queue worker 0x20) 4.3, Vulkan.Dispatch (queue worker 0x20) 2.5
  • batch 49098: 352.5 ms at 6602 ms, present 1056: GPU no ranges; recorded by Driver.Dispatch (queue worker 0x20) 7.4, Driver.Dispatch.capture_resources (queue worker 0x20) 5.4, Driver.Packet (queue worker 0x20) 0.4, Driver.Packet.dispatch (queue worker 0x20) 0.4
  • batch 47994: 345.3 ms at 736 ms, present 1047: GPU no ranges; recorded by Driver.Dispatch (queue worker 0x20) 353.5, Driver.Dispatch.capture_resources (queue worker 0x20) 350.8, Driver.Packet (queue worker 0x20) 0.7, Driver.Packet.dispatch (queue worker 0x20) 0.7
  • batch 49605: 325.8 ms at 9345 ms, present 1060: GPU no ranges; recorded by Driver.Dispatch (queue worker 0x20) 348.3, Driver.Dispatch.capture_resources (queue worker 0x20) 344.9, Driver.Packet (queue worker 0x20) 1.6, Driver.Packet.dispatch (queue worker 0x20) 1.6

Capture

  • The caches were warm (the scene ran once and the title was restarted)
    • Fork: yes. Both fork runs used a cache from earlier runs: 15935 hits and 1 miss in the trace run, and about 15.6k hits and 1 miss in the profiled run.
    • main: no. The cache carried over from a previous 1200 s run, but this run still had 12062 hits and 3486 misses, and it was still compiling 2 programs in the next-to-last 10 s window.
  • No other APS5_TRACE_* or APS5_PROFILE_* switch was set and the log was not redirected
    • Logs: in every run, the log was redirected to a file.
    • Fork trace run: APS5_TRACE_SUMMARY_EVERY=10 plus the fork's README switches (in its summary line).
    • Fork profiled run: APS5_PROFILE_GPU=1, APS5_DUMP_SHADERS=1, APS5_TRACE_SUMMARY_EVERY, APS5_TRACE_DIR, APS5_TRACE_PAD, APS5_PAD_INPUT_FILE, APS5_PAD_SCRIPT_REPEAT (scripted pad input) and APS5_RESIDENT_LINEAR=1, plus the README switches.
    • main run: APS5_PROFILE_GPU=1, APS5_DUMP_SHADERS=1, APS5_TRACE_SUMMARY_EVERY=10, APS5_TRACE_DIR, plus four yotei/best switches that main recognises (NO_RESULT_MEMO, NO_PIPELINE_JOURNAL, RESOURCE_CACHE_ENTRIES=1024, PIPELINE_DISPATCH).
  • Captures compared here come from the same machine, scene and settings
    • Machine: the same for every capture.
    • Builds and scenes differ: main on the black screen; the fork on the brightness screen (profile) and the opening cinematic (trace).
    • Comparisons: none of the figures compare captures against each other. Each share is computed within one run.

Machine: RTX 3080 Ti, NVIDIA 615.78.08, i9-11900K, 32 GB, Linux 7.3.1-1-cachyos.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6204887475 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/15780). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-11-04T14:36:13Z. --- <!-- Filed as a blank issue that follows the Performance report template. The form needs all three Capture boxes ticked, and I can't honestly tick any of them; the reasons are under Capture. --> ### Title and scene PPSA26344 01.008.000, 1920x1080. Fork: brightness screen. Stock `main`: black screen before it. ### What is slow or what changed This asks for a missing fast path. It is not a bug report about the existing path. **Builds** - **Stock `main` at `b11c7bf84f`:** this is where the code references below come from. The cost figures come from a warm 1200 s run. The game stays on a black screen before the brightness-calibration screen for the whole run, and the window title shows 0.32 FPS at 1150 s. - **The `yotei/best` fork at `4565a51dc4`:** built from local tree `66b1722d5b`, which adds a GCC build fix and an inert local preset. This build reaches the brightness screen and the opening cinematic. I used it for the two programs below, because stock `main` has not reached the scene that dispatches them in my runs. **The code path** `TakeGpuDescriptor` (`core/shader/recompiler/Optimization/src/ResourceTracker.cpp:2225` at `b11c7bf84f`) makes a buffer resource only when `ValidateSource` can follow the V# back to a fixed source. Otherwise it sets `memory.gpuDescriptor = true` (line 2244) and `usesDma`, and the backend emits each load as a `read_bda_span` call. That is the intended general path for GPU-selected V#s. When a V# or T# is read from a table for an image, there are table lowerings already: - pointer-loaded image tables (#758) - waterfall selects in pointer image tables (#7388; the per-lane T# waterfall is still open in #6488) - nested tables through a V# hop (#7223) I found no merged or open change that plans a **buffer load** through such a table. In #7223 the `buffer=true` table column only serves as the heap for a nested T# lookup. The other open table PRs I checked (#7642, #9790, #9969, #15555) are image or T# side. Related: #7138 (cost of decoding a runtime V# with `ReadConstBuffer`, on a related runtime-V# path), #8721 (table-driven formatted loads) and #14260 (draft; a BDA range cache in span reads; it makes each `read_bda_span` call cheaper rather than removing the calls, see the Windows datapoint below). **What the V#s in this title look like** I replayed `0x801edd2700` and `0x801eef6c00` offline with `agc_shader_replay --dis`, with a temporary stderr print added in `TakeGpuDescriptor` right after `memory.gpuDescriptor = true`. The diff ([`bda-vsharp-trace.patch`](https://github.com/Dextroid17/AnyPS5/releases/download/goy-15780-evidence/bda-vsharp-trace.patch)) was not committed. The print stops after 40 loads. It recorded 40 distinct buffer loads per program, and it does not see loads that passed `ValidateSource`. - All 40 recorded loads fail on V# dword 0: `LoadBufferU32` 5, `x2` 3, `x3` 2, `x4` 30. - In every recorded load, dword 0 is a `ReadConstBuffer` of a `GetBufferResource(GetUserData…)` table, from 5 distinct pcs per program. - In 34 of the 40, the table index is `IMul32(ReadLane(Phi …))` of a loop value, which looks like a per-lane waterfall. I have not checked this against the EXEC handling in the disassembly. The other 6 index with a loop-counter `Phi`. The print ran on the fork's recompiler. `TakeGpuDescriptor` and `ValidateSource` are byte-identical in `4565a51dc4` and `b11c7bf84f`. However, the rest of `ResourceTracker.cpp` changed a lot between them (about 760 lines, including #7223), and I have not confirmed that these loads still reach the fallback on `main`. **Cost: per-program GPU time from `APS5_PROFILE_GPU=1`** `[gputime]` prints only the top 12 programs per line, so each share below is a range. The lower bound counts only listed time. The upper bound assumes all unlisted time belongs to `read_bda_span` programs. Fork (`yotei/best`), brightness screen: 8 `[gputime]` lines, 197 presents, 25984 ms of GPU program time (131.9 ms per present). Top 5 programs by total GPU time: | program | ms per dispatch | dispatches | `read_bda_span` calls | | --- | --- | --- | --- | | `0x801edd2700` | 18.97 | 198 | 447 | | `0x801eef6c00` | 19.58 | 132 | 375 | | `0x801ee18b00` | 8.45 | 198 | 0 | | `0x2145d00` | 7.93 | 197 | 0 | | `0x80001fd400` | 7.76 | 197 | 0 | - The two programs at the top take 24.4% of GPU program time. - 30 of 414 programs contain `read_bda_span`. Together they take between 26.2% and 63.2%. - `0x80001fd400` has the same guest code length (6596 words) as `0x801edd2700`, and runs at 7.76 ms against 18.97 ms. The code differs, so this is only a rough comparison. Stock `main` (`b11c7bf84f`), black-screen phase: 37 `[gputime]` lines, 186 presents, 5629 ms of GPU program time. Top 8 programs by total GPU time: | program | ms per dispatch | dispatches | `read_bda_span` calls | | --- | --- | --- | --- | | `0x8000253100` | 6.15 | 132 | 0 | | `0x80001e5f00` | 8.47 | 95 | 181 | | `0x80002c4500` | 0.23 | 3048 | 1 | | `0x80001fd400` | 10.61 | 54 | 0 | | `0x800036e100` | 1.89 | 186 | 16 | | `0x80003cee00` | 1.60 | 186 | 0 | | `0x80001c0d00` | 239.00 | 1 | 277 | | `0x80003d6000` | 1.07 | 181 | 0 | - 21 of 135 programs contain `read_bda_span`. Together they take between 44.6% and 54.4% of GPU program time. - I have not traced the V# chains of these `main` programs, so I don't know whether they use the same table pattern. I have not measured what a buffer-table lowering would save. These figures show what the current path costs, not what a fix would gain. **Independent datapoint: Windows, 02.002** (from @shahulmubeen-a's comment below, 2026-11-06; RTX 4070 Ti SUPER, a `yotei/best` `4565a51dc4`-based build) - Two programs that look like `0x801edd2700` and `0x801eef6c00` at new addresses: `0x801f64cc00` (6608 code words, 447 `read_bda_span` calls) and `0x801f808700` (375 calls). The call counts match the two programs above; the code length differs slightly (6608 vs 6596 words). - With `APS5_TRACE_BDA=1` neither program shows an address access, so all of their span reads are GPU-selected V#s. That is an independent check of the pattern this issue describes; my own trace print above never looked at address-based reads. - At HOME (Ezo save, `APS5_PROFILE_GPU=1`) they take 7.9% and 5.9% of GPU program time. HOME is not GPU-bound on that build (about 42% busy), so he expects a lowering to matter most in the GPU-bound scenes measured here (brightness screen, opening cinematic). - The larger share at HOME, about 31%, is five large compute programs (`0x8000193900`, `0x80001aa100`, `0x80001c0300`, `0x800019ee00`, `0x80001df900`; 0.8M-1.35M SPIR-V words each) whose span reads are address-based global loads. A buffer-table lowering would not reach those. - In a frame replay of HOME, #14260's range cache cuts the two table programs by 31-33% and the address-based ones by 18-46% (his numbers are on #14260). My reading: the two mechanisms are complementary; #14260 cuts the cost of `read_bda_span` calls, a table lowering would remove the calls for the table-indexed subset. Scope note: his figures and mine come from different machines, OS, game versions and scenes, so they are not comparable to each other; each supports the same qualitative point. **Order of the summary lines below** The JSON below has two lines: 1. Stock `main`: the last window of the warm run, with `APS5_PROFILE_GPU` and `APS5_DUMP_SHADERS` on. 2. Fork: the trace window (`APS5_TRACE_SECONDS=240:10`). ### Summary lines ```json {"commit":"b11c7bf84f5d","dirty":false,"env":{"APS5_DUMP_SHADERS":"1","APS5_NO_PIPELINE_JOURNAL":"1","APS5_NO_RESULT_MEMO":"1","APS5_PIPELINE_DISPATCH":"1","APS5_PROFILE_GPU":"1","APS5_RESOURCE_CACHE_ENTRIES":"1024","APS5_TRACE_DIR":"<path>","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.78.08","os":"Linux 7.3.1-1-cachyos","cpu":"11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz","cpu_threads":16,"memory_mib":31912,"title_id":"PPSA26344","title":"Ghost of Yōtei","content_version":"01.008.000","resolution":"1920x1080","window":{"spec":"summary_every 10","first_present":181,"ms":56946.501},"interval_start_s":1124.601,"interval_end_s":1181.547,"presents":5,"frame_ms":{"p50":407.500,"p90":52707.690,"p99":52707.690,"max":52707.690},"gpu_busy_ms_per_present":196.978,"worker_busy_pct":{"queue worker 0x0":3.568,"queue worker 0x52":0.000,"queue worker 0x20":0.949,"queue worker 0x53":0.000,"queue worker 0x30":3.352,"queue worker 0x38":3.031,"queue worker 0x48":1.165,"queue worker 0x51":97.712},"top_phases_ms_per_frame":{"Driver.Packet":12502.180,"Driver.Packet.dispatch":11515.665,"Driver.Dispatch":11499.492,"Vulkan.ComputePipeline":10056.769,"Driver.Dispatch.materialize":1092.573,"Driver.Packet.memory_wait":729.339,"Vulkan.Dispatch":136.581,"Vulkan.Dispatch.shader_resources":131.504},"trace_dropped":false,"trace":""} {"commit":"66b1722d5b58","dirty":false,"env":{"APS5_ASYNC_LANE":"51","APS5_BINDLESS_IMAGES":"1","APS5_BINDLESS_LAZY":"1","APS5_DEFER_REFRESH_FLUSH":"1","APS5_NO_ADDRESS_DRAW_REUSE":"1","APS5_NO_DRAW_AHEAD":"1","APS5_NO_PIPELINE_JOURNAL":"1","APS5_NO_RESULT_MEMO":"1","APS5_PIPELINE_DISPATCH":"1","APS5_PIPELINE_INDIRECT":"1","APS5_RESOURCE_CACHE_ENTRIES":"1024","APS5_SPANNED_WAVE":"1","APS5_STAGING_DIFF":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"240:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.78.08","os":"Linux 7.3.1-1-cachyos","cpu":"11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz","cpu_threads":16,"memory_mib":31912,"title_id":"PPSA26344","title":"Ghost of Yōtei","content_version":"01.008.000","resolution":"1920x1080","window":{"spec":"seconds 240:10","first_present":1046,"ms":10668.784},"presents":16,"frame_ms":{"p50":658.912,"p90":734.548,"p99":755.169,"max":755.169},"gpu_busy_ms_per_present":626.693,"worker_busy_pct":{"queue worker 0x0":43.752,"queue worker 0x20":70.294,"queue worker 0x52":12.252,"queue worker 0x53":12.078,"queue worker 0x30":37.177,"queue worker 0x48":2.746,"queue worker 0x38":37.101,"queue worker 0x51":2.181,"queue worker 0x50":36.692},"top_phases_ms_per_frame":{"Driver.Packet":1693.036,"Driver.Packet.dispatch":904.425,"Driver.Packet.memory_wait":692.608,"Driver.Dispatch":674.733,"Driver.Dispatch.capture_resources":290.973,"DrawPipeline.commit":187.099,"DrawPipeline.drain.packet":152.227,"GpuMutex.wait.hook":112.502},"trace_dropped":false,"trace":"aps5-trace-66b1722d5b58-113844.json.gz"} ``` ### Traces Trace: [`aps5-trace-66b1722d5b58-113844.json.gz`](https://github.com/Dextroid17/AnyPS5/releases/download/goy-15780-evidence/aps5-trace-66b1722d5b58-113844.json.gz) (2.4 MB, a release asset on my fork). - **What it covers:** 10 s from the 240 s mark on the fork build, during the opening cinematic (burning tree). No events were dropped. - **Not the brightness screen:** that scene timing varies from run to run, and the game had moved past it by then. - **No `main` trace:** stock `main` never left its black screen, so I have no comparable trace. - **No program ids:** traces don't record which program ran, so the per-program figures above come only from `APS5_PROFILE_GPU`. ### Digest `python3 tools/trace_digest.py` (from `main`) on that trace: **seconds 240:10** from present 1046: 16 presents, frame p50 658.9 / p90 734.5 / p99 755.2 / max 755.2 ms, GPU busy 626.7 ms per present NVIDIA GeForce RTX 3080 Ti, NVIDIA 615.78.08, Linux 7.3.1-1-cachyos, 1920x1080, commit 66b1722d5b58, dropped: no ```json {"commit":"66b1722d5b58","dirty":false,"env":{"APS5_ASYNC_LANE":"51","APS5_BINDLESS_IMAGES":"1","APS5_BINDLESS_LAZY":"1","APS5_DEFER_REFRESH_FLUSH":"1","APS5_NO_ADDRESS_DRAW_REUSE":"1","APS5_NO_DRAW_AHEAD":"1","APS5_NO_PIPELINE_JOURNAL":"1","APS5_NO_RESULT_MEMO":"1","APS5_PIPELINE_DISPATCH":"1","APS5_PIPELINE_INDIRECT":"1","APS5_RESOURCE_CACHE_ENTRIES":"1024","APS5_SPANNED_WAVE":"1","APS5_STAGING_DIFF":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"240:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.78.08","os":"Linux 7.3.1-1-cachyos","cpu":"11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz","cpu_threads":16,"memory_mib":31912,"title_id":"PPSA26344","title":"Ghost of Y\u014dtei","content_version":"01.008.000","resolution":"1920x1080","window":{"spec":"seconds 240:10","first_present":1046,"ms":10668.784},"presents":16,"frame_ms":{"p50":658.912,"p90":734.548,"p99":755.169,"max":755.169},"gpu_busy_ms_per_present":626.693,"worker_busy_pct":{"queue worker 0x0":43.752,"queue worker 0x20":70.294,"queue worker 0x52":12.252,"queue worker 0x53":12.078,"queue worker 0x30":37.177,"queue worker 0x48":2.746,"queue worker 0x38":37.101,"queue worker 0x51":2.181,"queue worker 0x50":36.692},"top_phases_ms_per_frame":{"Driver.Packet":1693.036,"Driver.Packet.dispatch":904.425,"Driver.Packet.memory_wait":692.608,"Driver.Dispatch":674.733,"Driver.Dispatch.capture_resources":290.973,"DrawPipeline.commit":187.099,"DrawPipeline.drain.packet":152.227,"GpuMutex.wait.hook":112.502},"trace_dropped":false,"trace":"aps5-trace-66b1722d5b58-113844.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 1050: 755.2 ms at 2724 ms: Driver.WorkerWait (queue worker 0x48) 735.0, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x48) 735.0, batch (gpu) 690.5, Driver.WorkerWait (queue worker 0x51) 686.1 - present 1058: 734.5 ms at 7967 ms: Driver.WorkerWait (queue worker 0x51) 724.7, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x51) 724.7, Driver.WorkerWait (queue worker 0x48) 720.1, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x48) 720.1 - present 1047: 726.1 ms at 682 ms: Driver.WorkerWait (queue worker 0x51) 715.0, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x51) 715.0, Driver.WorkerWait (queue worker 0x48) 705.6, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x48) 705.6 - present 1057: 713.0 ms at 7254 ms: Driver.WorkerWait (queue worker 0x51) 702.7, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x51) 702.7, Driver.WorkerWait (queue worker 0x48) 698.1, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x48) 698.1 - present 1061: 697.2 ms at 9972 ms: batch (gpu) 586.7, Driver.Packet (queue worker 0x20) 481.4, Driver.WorkerWait (queue worker 0x51) 473.7, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x51) 473.7 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 1050: 755.2 ms at 2724 ms, persistence 206.4 ms - present 1058: 734.5 ms at 7967 ms, persistence 185.8 ms - present 1061: 697.2 ms at 9972 ms, persistence 85.2 ms - present 1047: 726.1 ms at 682 ms, persistence 68.4 ms - present 1054: 654.7 ms at 5362 ms, persistence 35.5 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 1.5 (0 %) | 0.0 (0 %) | 665.3 | 0.7 | Shader.ResolveGraphicsStagesAbi 0.6, Shader.ResolveGraphicsAbi 0.5 | | shader prepare | 0.3 (0 %) | 0.0 (0 %) | 666.5 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.3 | | queue worker 0x0 | 260.8 (39 %) | 397.7 (60 %) | 8.4 | 76.1 | Driver.Packet 284.5, Driver.Completion 0.1 | | queue worker 0x20 | 378.5 (57 %) | 287.0 (43 %) | 1.3 | 23.5 | Driver.Packet 467.5, Driver.EndSubmission 0.2 | | queue worker 0x52 | 3.2 (0 %) | 649.6 (97 %) | 14.0 | 1.2 | Driver.Packet 80.4, Driver.EndSubmission 1.2 | | queue worker 0x53 | 0.4 (0 %) | 652.4 (98 %) | 14.0 | 0.2 | Driver.Packet 80.4, Driver.EndSubmission 0.1 | | title | 1.3 (0 %) | 0.0 (0 %) | 665.5 | 0.4 | Shader.ResolveGraphicsStagesAbi 0.5, Shader.ResolveGraphicsAbi 0.4 | | title | 1.3 (0 %) | 0.0 (0 %) | 665.5 | 0.4 | Shader.ResolveGraphicsAbi 0.6, Shader.ResolveGraphicsStagesAbi 0.5 | | title | 1.4 (0 %) | 0.0 (0 %) | 665.4 | 0.4 | Shader.ResolveGraphicsStagesAbi 0.6, Shader.ResolveGraphicsAbi 0.5 | | queue worker 0x30 | 65.8 (10 %) | 597.3 (90 %) | 3.7 | 2.3 | Driver.Packet 247.6 | | queue worker 0x48 | 8.3 (1 %) | 639.1 (96 %) | 19.4 | 1.6 | Driver.Packet 17.5, Driver.EndSubmission 0.7 | | queue worker 0x38 | 76.4 (11 %) | 586.4 (88 %) | 4.0 | 5.7 | Driver.Packet 246.8, Driver.EndSubmission 0.1 | | draw committer | 173.4 (26 %) | 11.7 (2 %) | 481.7 | 10.6 | DrawPipeline.commit 185.1 | | draw preparer | 8.5 (1 %) | 1.7 (0 %) | 656.6 | 4.0 | Resources.Prepare 8.5 | | presenter | 0.7 (0 %) | 24.4 (4 %) | 641.7 | 0.1 | VideoOut.Flip 25.1 | | title | 13.7 (2 %) | 0.0 (0 %) | 653.1 | 0.4 | Shader.ResolveGraphicsStagesAbi 12.9, Shader.ResolveGraphicsAbi 0.5 | | title | 1.4 (0 %) | 0.0 (0 %) | 665.4 | 0.4 | Shader.ResolveGraphicsAbi 0.5, Shader.ResolveAbi 0.5 | | title | 1.2 (0 %) | 0.0 (0 %) | 665.6 | 0.3 | Shader.ResolveGraphicsStagesAbi 0.4, Shader.ResolveGraphicsAbi 0.4 | | title | 1.3 (0 %) | 0.0 (0 %) | 665.5 | 0.4 | Shader.ResolveGraphicsStagesAbi 0.5, Shader.ResolveGraphicsAbi 0.4 | | title | 1.2 (0 %) | 0.0 (0 %) | 665.6 | 0.3 | Shader.ResolveGraphicsAbi 0.5, Shader.ResolveGraphicsStagesAbi 0.4 | | title | 1.2 (0 %) | 0.0 (0 %) | 665.6 | 0.4 | Shader.ResolveGraphicsAbi 0.4, Shader.ResolveAbi 0.4 | | title | 4.1 (1 %) | 0.0 (0 %) | 662.7 | 0.5 | Shader.ResolveGraphicsStagesAbi 3.3, Shader.ResolveGraphicsAbi 0.4 | | queue worker 0x51 | 9.7 (1 %) | 643.9 (97 %) | 13.2 | 2.1 | Driver.Packet 14.3, Driver.EndSubmission 0.1 | | queue worker 0x50 | 15.4 (2 %) | 651.1 (98 %) | 0.3 | 1.3 | Driver.Packet 244.3, Driver.EndSubmission 0.1 | | gpu | 561.5 (84 %) | 0.0 (0 %) | 105.3 | 0.0 | batch 561.5 | **Largest slices** (ms per frame, inclusive, all threads): Driver.WorkerWait 4237.2, Driver.WorkerWait.idle_and_completion_poll 4049.5, Driver.Packet 1683.4, Driver.Packet.dispatch 902.4, Driver.Packet.memory_wait 692.6, Driver.Dispatch 669.8, batch 594.6, Driver.Dispatch.capture_resources 283.1, Driver.WorkerWait.dequeue_order 187.7, DrawPipeline.commit 185.1 **Longest waits** - Driver.WorkerWait (queue worker 0x51) 826.7 ms at 7678 ms, present 1057 - Driver.WorkerWait (queue worker 0x48) 825.1 ms at 7599 ms, present 1057 - Driver.WorkerWait (queue worker 0x53) 760.9 ms at 7667 ms, present 1057 - Driver.WorkerWait (queue worker 0x52) 759.7 ms at 7668 ms, present 1057 - Driver.WorkerWait (queue worker 0x51) 746.4 ms at 2526 ms, present 1049 - Driver.WorkerWait (queue worker 0x48) 741.1 ms at 2450 ms, present 1049 - Driver.WorkerWait (queue worker 0x51) 699.9 ms at 492 ms, present 1046 - Driver.WorkerWait (queue worker 0x48) 688.0 ms at 422 ms, present 1046 - Driver.WorkerWait (queue worker 0x53) 679.5 ms at 2515 ms, present 1049 - Driver.WorkerWait (queue worker 0x52) 678.4 ms at 2516 ms, present 1049 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 48363: 397.4 ms at 2761 ms, present 1050: GPU no ranges; recorded by Driver.Dispatch (queue worker 0x20) 420.4, Driver.Dispatch.capture_resources (queue worker 0x20) 417.1, Driver.Packet (queue worker 0x20) 1.7, Driver.Packet.dispatch (queue worker 0x20) 1.7 - batch 49346: 352.8 ms at 8041 ms, present 1058: GPU no ranges; recorded by Driver.Dispatch (queue worker 0x20) 7.8, Driver.Packet (queue worker 0x20) 4.3, Driver.Packet.dispatch (queue worker 0x20) 4.3, Vulkan.Dispatch (queue worker 0x20) 2.5 - batch 49098: 352.5 ms at 6602 ms, present 1056: GPU no ranges; recorded by Driver.Dispatch (queue worker 0x20) 7.4, Driver.Dispatch.capture_resources (queue worker 0x20) 5.4, Driver.Packet (queue worker 0x20) 0.4, Driver.Packet.dispatch (queue worker 0x20) 0.4 - batch 47994: 345.3 ms at 736 ms, present 1047: GPU no ranges; recorded by Driver.Dispatch (queue worker 0x20) 353.5, Driver.Dispatch.capture_resources (queue worker 0x20) 350.8, Driver.Packet (queue worker 0x20) 0.7, Driver.Packet.dispatch (queue worker 0x20) 0.7 - batch 49605: 325.8 ms at 9345 ms, present 1060: GPU no ranges; recorded by Driver.Dispatch (queue worker 0x20) 348.3, Driver.Dispatch.capture_resources (queue worker 0x20) 344.9, Driver.Packet (queue worker 0x20) 1.6, Driver.Packet.dispatch (queue worker 0x20) 1.6 ### Capture - [ ] The caches were warm (the scene ran once and the title was restarted) - **Fork:** yes. Both fork runs used a cache from earlier runs: 15935 hits and 1 miss in the trace run, and about 15.6k hits and 1 miss in the profiled run. - **`main`:** no. The cache carried over from a previous 1200 s run, but this run still had 12062 hits and 3486 misses, and it was still compiling 2 programs in the next-to-last 10 s window. - [ ] No other APS5_TRACE_* or APS5_PROFILE_* switch was set and the log was not redirected - **Logs:** in every run, the log was redirected to a file. - **Fork trace run:** `APS5_TRACE_SUMMARY_EVERY=10` plus the fork's README switches (in its summary line). - **Fork profiled run:** `APS5_PROFILE_GPU=1`, `APS5_DUMP_SHADERS=1`, `APS5_TRACE_SUMMARY_EVERY`, `APS5_TRACE_DIR`, `APS5_TRACE_PAD`, `APS5_PAD_INPUT_FILE`, `APS5_PAD_SCRIPT_REPEAT` (scripted pad input) and `APS5_RESIDENT_LINEAR=1`, plus the README switches. - **`main` run:** `APS5_PROFILE_GPU=1`, `APS5_DUMP_SHADERS=1`, `APS5_TRACE_SUMMARY_EVERY=10`, `APS5_TRACE_DIR`, plus four `yotei/best` switches that `main` recognises (`NO_RESULT_MEMO`, `NO_PIPELINE_JOURNAL`, `RESOURCE_CACHE_ENTRIES=1024`, `PIPELINE_DISPATCH`). - [ ] Captures compared here come from the same machine, scene and settings - **Machine:** the same for every capture. - **Builds and scenes differ:** `main` on the black screen; the fork on the brightness screen (profile) and the opening cinematic (trace). - **Comparisons:** none of the figures compare captures against each other. Each share is computed within one run. Machine: RTX 3080 Ti, NVIDIA 615.78.08, i9-11900K, 32 GB, Linux 7.3.1-1-cachyos. AI-assisted: yes
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#15780
No description provided.