perf(agc): keep a staged element in place when its frames are faster #13373

Merged
mrfelek merged 3 commits from upstream-pr/13373 into main 2026-10-30 19:57:01 +00:00
mrfelek commented 2026-10-30 13:37:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mrfelek on 2026-10-30T13:37:21Z.


What

Follow-up to #7618. Staging a swept write-only element costs a copy-in and a copy-back per use. In Diablo II: Resurrected (PPSA03912) that saves GPU time in town, but in the main menu the 202 MiB element it stages is faster in place (73 vs 91 ms of GPU time per frame), so #7618 cost the menu about a fifth of its frames.

This decides per element by measurement instead of by size:

  • The busiest staged element (at least a tenth of the staged bytes) is probed: its current mode, the other mode, its current mode again, each for 4 frames left to settle and 8 measured.
  • The other mode is kept when its frames are faster by more than twice the standard error. The probe ends early when every frame of the other mode is slower than every frame of the current one.
  • A repeated answer doubles the wait for the next probe, from 20 s up to 160 s. A move of the frame GPU time by more than a quarter (a scene change) probes again at once.
  • The frame GPU time comes from the whole-batch timestamps (Recorder::NoteFrameGpuBusy); the first probe turns them on, so no profiling switch is needed.
  • A resource build made under the other decision is not reused (StagingDecisionsCurrent).
  • APS5_NO_ADAPTIVE_STAGING=1 stages every eligible element, as before. Each decision prints one [staging] adaptive: line.

The policy is in AdaptiveStaging.hpp and takes frame counts and time from its caller. agc_adaptive_staging covers keeping the faster mode either way, frame noise, the back-off cap, a scene change and the share threshold; each check fails with the matching part of the policy broken.

Tested

Diablo II: Resurrected (PPSA03912 01.039.000), Linux 7.3, Ryzen 9 5950X, RTX 3080 Ti (NVIDIA 615.71.09), 3840x2160. A = main da026c7065, B = this head 9fe0de059d. One warm-up run per arm, then A B A B per scene. No other APS5_TRACE_* / APS5_PROFILE_* switch; APS5_TRACE_EVENTS=2097152 so queue worker 0's buffer does not fill. The log is redirected because the run script waits for the save to open.

scene, window main this PR
main menu, APS5_TRACE_SECONDS=250:10: presents 101 / 99 122 / 120 +21.0 %
frame p50 99.0 / 100.7 ms 81.6 / 82.5 ms
GPU busy per present 92.3 / 92.4 ms 73.5 / 73.4 ms
town, APS5_TRACE_SECONDS=490:15: presents 135 / 140 138 / 136 level
frame p50 111.3 / 107.1 ms 108.9 / 109.1 ms
  • In the menu the 202 MiB element goes in place (GPU 90.2 ms/frame staged, 71.5 in place -> in place). Entering town the frame GPU time jumps (72.9 -> 129.4 ms, probing again) and it goes back to staged (83.6 staged, 117.1 in place -> staged). No decision falls inside a town window.
  • Same pictures on both sides in both scenes.
  • One run of this head (the last town run) crashed at boot, 28 s in, before the menu and before any staging decision; it passed on the automatic retry. Earlier runs of main builds crashed the same way at D2R boot.
  • An earlier pair of the same policy on main 20d3cd84bc gave the same result: menu 101 / 101 against 123 / 123, town level.

Traces: Am1 · Bm1 · Am2 · Bm2 · At1 · Bt1 · At2 · Bt2. trace_digest.py output is in the first comment.

Summary lines (aps5-summary.jsonl)
{"commit":"da026c70655a","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"2097152","APS5_TRACE_SECONDS":"250:10"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.3.0-9-generic","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":32003,"title_id":"PPSA03912","title":"Diablo® II: Resurrected™","content_version":"01.039.000","resolution":"3840x2160","window":{"spec":"seconds 250:10","first_present":4025,"ms":10043.854},"presents":101,"frame_ms":{"p50":98.972,"p90":100.827,"p99":105.966,"max":106.020},"gpu_busy_ms_per_present":92.272,"worker_busy_pct":{"queue worker 0x23":58.797,"queue worker 0x0":98.565},"top_phases_ms_per_frame":{"Driver.Packet":156.232,"Driver.Packet.draw":85.104,"Driver.Draw":84.750,"Driver.Packet.memory_wait":58.306,"Graphics.Draw":49.802,"Graphics.Draw.draw_and_resource_release":44.624,"Driver.Draw.empty_indirect_skipped":38.495,"Driver.Draw.shader_compile_and_link":33.614},"trace_dropped":false,"trace":"aps5-trace-da026c70655a-564753.json.gz"}
{"commit":"9fe0de059d86","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"2097152","APS5_TRACE_SECONDS":"250:10"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.3.0-9-generic","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":32003,"title_id":"PPSA03912","title":"Diablo® II: Resurrected™","content_version":"01.039.000","resolution":"3840x2160","window":{"spec":"seconds 250:10","first_present":4169,"ms":10002.197},"presents":122,"frame_ms":{"p50":81.550,"p90":84.160,"p99":87.278,"max":88.383},"gpu_busy_ms_per_present":73.463,"worker_busy_pct":{"queue worker 0x0":98.024,"queue worker 0x23":49.502},"top_phases_ms_per_frame":{"Driver.Packet":120.691,"Driver.Packet.draw":67.638,"Driver.Draw":67.328,"Graphics.Draw":51.588,"Graphics.Draw.draw_and_resource_release":46.398,"Driver.Packet.memory_wait":40.419,"Driver.Draw.shader_compile_and_link":35.411,"Driver.Present":32.600},"trace_dropped":false,"trace":"aps5-trace-9fe0de059d86-567941.json.gz"}
{"commit":"da026c70655a","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"2097152","APS5_TRACE_SECONDS":"250:10"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.3.0-9-generic","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":32003,"title_id":"PPSA03912","title":"Diablo® II: Resurrected™","content_version":"01.039.000","resolution":"3840x2160","window":{"spec":"seconds 250:10","first_present":3996,"ms":10033.896},"presents":99,"frame_ms":{"p50":100.664,"p90":105.918,"p99":107.824,"max":107.824},"gpu_busy_ms_per_present":92.433,"worker_busy_pct":{"queue worker 0x23":59.568,"queue worker 0x0":98.404},"top_phases_ms_per_frame":{"Driver.Packet":159.825,"Driver.Packet.draw":86.709,"Driver.Draw":86.353,"Driver.Packet.memory_wait":60.181,"Graphics.Draw":52.685,"Graphics.Draw.draw_and_resource_release":47.092,"Driver.Draw.empty_indirect_skipped":37.042,"Driver.Draw.shader_compile_and_link":36.119},"trace_dropped":false,"trace":"aps5-trace-da026c70655a-571065.json.gz"}
{"commit":"9fe0de059d86","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"2097152","APS5_TRACE_SECONDS":"250:10"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.3.0-9-generic","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":32003,"title_id":"PPSA03912","title":"Diablo® II: Resurrected™","content_version":"01.039.000","resolution":"3840x2160","window":{"spec":"seconds 250:10","first_present":4096,"ms":10062.879},"presents":120,"frame_ms":{"p50":82.548,"p90":91.134,"p99":101.932,"max":105.975},"gpu_busy_ms_per_present":73.368,"worker_busy_pct":{"queue worker 0x23":50.693,"queue worker 0x0":97.889},"top_phases_ms_per_frame":{"Driver.Packet":124.327,"Driver.Packet.draw":68.586,"Driver.Draw":68.249,"Graphics.Draw":54.596,"Graphics.Draw.draw_and_resource_release":49.071,"Driver.Packet.memory_wait":42.341,"Driver.Draw.shader_compile_and_link":37.575,"Shader.DrawStage":33.204},"trace_dropped":false,"trace":"aps5-trace-9fe0de059d86-574461.json.gz"}
{"commit":"da026c70655a","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"2097152","APS5_TRACE_SECONDS":"490:15"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.3.0-9-generic","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":32003,"title_id":"PPSA03912","title":"Diablo® II: Resurrected™","content_version":"01.039.000","resolution":"3840x2160","window":{"spec":"seconds 490:15","first_present":5961,"ms":15060.213},"presents":135,"frame_ms":{"p50":111.316,"p90":114.025,"p99":118.415,"max":119.302},"gpu_busy_ms_per_present":84.350,"worker_busy_pct":{"queue worker 0x0":96.884,"queue worker 0x23":67.678},"top_phases_ms_per_frame":{"Driver.Packet":183.139,"Driver.Packet.draw":87.588,"Driver.Draw":86.990,"Driver.Packet.memory_wait":75.090,"Graphics.Draw":68.074,"Graphics.Draw.draw_and_resource_release":58.284,"Driver.Draw.shader_compile_and_link":48.732,"Shader.DrawStage":41.492},"trace_dropped":false,"trace":"aps5-trace-da026c70655a-578407.json.gz"}
{"commit":"9fe0de059d86","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"2097152","APS5_TRACE_SECONDS":"490:15"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.3.0-9-generic","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":32003,"title_id":"PPSA03912","title":"Diablo® II: Resurrected™","content_version":"01.039.000","resolution":"3840x2160","window":{"spec":"seconds 490:15","first_present":6483,"ms":15076.389},"presents":138,"frame_ms":{"p50":108.923,"p90":112.606,"p99":116.211,"max":117.784},"gpu_busy_ms_per_present":84.806,"worker_busy_pct":{"queue worker 0x23":65.572,"queue worker 0x0":96.888},"top_phases_ms_per_frame":{"Driver.Packet":177.124,"Driver.Packet.draw":86.882,"Driver.Draw":86.339,"Driver.Packet.memory_wait":71.312,"Graphics.Draw":67.414,"Graphics.Draw.draw_and_resource_release":57.737,"Driver.Draw.shader_compile_and_link":48.756,"Shader.DrawStage":41.388},"trace_dropped":false,"trace":"aps5-trace-9fe0de059d86-583786.json.gz"}
{"commit":"da026c70655a","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"2097152","APS5_TRACE_SECONDS":"490:15"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.3.0-9-generic","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":32003,"title_id":"PPSA03912","title":"Diablo® II: Resurrected™","content_version":"01.039.000","resolution":"3840x2160","window":{"spec":"seconds 490:15","first_present":6077,"ms":15075.633},"presents":140,"frame_ms":{"p50":107.094,"p90":110.477,"p99":135.211,"max":138.070},"gpu_busy_ms_per_present":83.919,"worker_busy_pct":{"queue worker 0x23":64.606,"queue worker 0x0":97.124},"top_phases_ms_per_frame":{"Driver.Packet":173.849,"Driver.Packet.draw":85.537,"Driver.Draw":84.914,"Driver.Packet.memory_wait":69.298,"Graphics.Draw":67.438,"Graphics.Draw.draw_and_resource_release":57.676,"Driver.Draw.shader_compile_and_link":48.179,"Shader.DrawStage":41.013},"trace_dropped":false,"trace":"aps5-trace-da026c70655a-589324.json.gz"}
{"commit":"9fe0de059d86","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"2097152","APS5_TRACE_SECONDS":"490:15"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.3.0-9-generic","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":32003,"title_id":"PPSA03912","title":"Diablo® II: Resurrected™","content_version":"01.039.000","resolution":"3840x2160","window":{"spec":"seconds 490:15","first_present":6508,"ms":15009.449},"presents":136,"frame_ms":{"p50":109.076,"p90":114.484,"p99":126.888,"max":140.966},"gpu_busy_ms_per_present":85.650,"worker_busy_pct":{"queue worker 0x0":96.875,"queue worker 0x23":65.825},"top_phases_ms_per_frame":{"Driver.Packet":179.201,"Driver.Packet.draw":87.075,"Driver.Draw":86.530,"Driver.Packet.memory_wait":72.320,"Graphics.Draw":65.935,"Graphics.Draw.draw_and_resource_release":56.551,"Driver.Draw.shader_compile_and_link":48.912,"Shader.DrawStage":41.729},"trace_dropped":false,"trace":"aps5-trace-9fe0de059d86-595163.json.gz"}

Tests:

  • ctest -R 'agc|shader' at this head: 1150 of 1150 pass.
  • Validation layer on the focused tests (agc_adaptive_staging, written-buffer, BDA-staging, read/written staging, storage flush ordering, staged clear, partially resident snapshot, recorder and pool tests), with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 ctest -V: main da026c7065 12 of 12, this head 13 of 13 (with the new test). No missing-layer line and no VUID- message on either side.

Help wanted on other titles. This changes only titles that stage a large element, and so far it is measured on one title. If you have one of these, a main vs PR run of the same scene would show whether it picks the faster mode there too. The [staging] adaptive: lines from a run also help.

  • GTA V (PPSA04263 / PPSA04264): @CPritch (you ran #8104 on it), @Tehshortbus
  • 007 First Light (PPSA11386): @SleglJan (you ran #8336 on its main menu)

I'm setting up GTA V (PPSA04263) here as well.

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: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 3080 Ti, driver 615.71.09, Ubuntu 26.10
  • AI-assisted: yes

AI-assisted. Tested by me on my own machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5085227171 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13373). Originally posted by [mrfelek](https://github.com/mrfelek) on 2026-10-30T13:37:21Z. --- ### What Follow-up to #7618. Staging a swept write-only element costs a copy-in and a copy-back per use. In Diablo II: Resurrected (PPSA03912) that saves GPU time in town, but in the main menu the 202 MiB element it stages is faster in place (73 vs 91 ms of GPU time per frame), so #7618 cost the menu about a fifth of its frames. This decides per element by measurement instead of by size: - The busiest staged element (at least a tenth of the staged bytes) is probed: its current mode, the other mode, its current mode again, each for 4 frames left to settle and 8 measured. - The other mode is kept when its frames are faster by more than twice the standard error. The probe ends early when every frame of the other mode is slower than every frame of the current one. - A repeated answer doubles the wait for the next probe, from 20 s up to 160 s. A move of the frame GPU time by more than a quarter (a scene change) probes again at once. - The frame GPU time comes from the whole-batch timestamps (`Recorder::NoteFrameGpuBusy`); the first probe turns them on, so no profiling switch is needed. - A resource build made under the other decision is not reused (`StagingDecisionsCurrent`). - `APS5_NO_ADAPTIVE_STAGING=1` stages every eligible element, as before. Each decision prints one `[staging] adaptive:` line. The policy is in `AdaptiveStaging.hpp` and takes frame counts and time from its caller. `agc_adaptive_staging` covers keeping the faster mode either way, frame noise, the back-off cap, a scene change and the share threshold; each check fails with the matching part of the policy broken. ### Tested Diablo II: Resurrected (PPSA03912 01.039.000), Linux 7.3, Ryzen 9 5950X, RTX 3080 Ti (NVIDIA 615.71.09), 3840x2160. A = `main` `da026c7065`, B = this head `9fe0de059d`. One warm-up run per arm, then A B A B per scene. No other `APS5_TRACE_*` / `APS5_PROFILE_*` switch; `APS5_TRACE_EVENTS=2097152` so queue worker 0's buffer does not fill. The log is redirected because the run script waits for the save to open. | scene, window | `main` | this PR | | |---|---|---|---| | main menu, `APS5_TRACE_SECONDS=250:10`: presents | 101 / 99 | 122 / 120 | **+21.0 %** | | frame p50 | 99.0 / 100.7 ms | 81.6 / 82.5 ms | | | GPU busy per present | 92.3 / 92.4 ms | 73.5 / 73.4 ms | | | town, `APS5_TRACE_SECONDS=490:15`: presents | 135 / 140 | 138 / 136 | level | | frame p50 | 111.3 / 107.1 ms | 108.9 / 109.1 ms | | - In the menu the 202 MiB element goes in place (`GPU 90.2 ms/frame staged, 71.5 in place -> in place`). Entering town the frame GPU time jumps (`72.9 -> 129.4 ms, probing again`) and it goes back to staged (`83.6 staged, 117.1 in place -> staged`). No decision falls inside a town window. - Same pictures on both sides in both scenes. - One run of this head (the last town run) crashed at boot, 28 s in, before the menu and before any staging decision; it passed on the automatic retry. Earlier runs of `main` builds crashed the same way at D2R boot. - An earlier pair of the same policy on `main` `20d3cd84bc` gave the same result: menu 101 / 101 against 123 / 123, town level. Traces: [Am1](https://github.com/mrfelek/AnyPS5/releases/download/perf-13373-traces/aps5-trace-da026c70655a-564753.json.gz) · [Bm1](https://github.com/mrfelek/AnyPS5/releases/download/perf-13373-traces/aps5-trace-9fe0de059d86-567941.json.gz) · [Am2](https://github.com/mrfelek/AnyPS5/releases/download/perf-13373-traces/aps5-trace-da026c70655a-571065.json.gz) · [Bm2](https://github.com/mrfelek/AnyPS5/releases/download/perf-13373-traces/aps5-trace-9fe0de059d86-574461.json.gz) · [At1](https://github.com/mrfelek/AnyPS5/releases/download/perf-13373-traces/aps5-trace-da026c70655a-578407.json.gz) · [Bt1](https://github.com/mrfelek/AnyPS5/releases/download/perf-13373-traces/aps5-trace-9fe0de059d86-583786.json.gz) · [At2](https://github.com/mrfelek/AnyPS5/releases/download/perf-13373-traces/aps5-trace-da026c70655a-589324.json.gz) · [Bt2](https://github.com/mrfelek/AnyPS5/releases/download/perf-13373-traces/aps5-trace-9fe0de059d86-595163.json.gz). `trace_digest.py` output is in the first comment. <details> <summary>Summary lines (aps5-summary.jsonl)</summary> ```json {"commit":"da026c70655a","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"2097152","APS5_TRACE_SECONDS":"250:10"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.3.0-9-generic","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":32003,"title_id":"PPSA03912","title":"Diablo® II: Resurrected™","content_version":"01.039.000","resolution":"3840x2160","window":{"spec":"seconds 250:10","first_present":4025,"ms":10043.854},"presents":101,"frame_ms":{"p50":98.972,"p90":100.827,"p99":105.966,"max":106.020},"gpu_busy_ms_per_present":92.272,"worker_busy_pct":{"queue worker 0x23":58.797,"queue worker 0x0":98.565},"top_phases_ms_per_frame":{"Driver.Packet":156.232,"Driver.Packet.draw":85.104,"Driver.Draw":84.750,"Driver.Packet.memory_wait":58.306,"Graphics.Draw":49.802,"Graphics.Draw.draw_and_resource_release":44.624,"Driver.Draw.empty_indirect_skipped":38.495,"Driver.Draw.shader_compile_and_link":33.614},"trace_dropped":false,"trace":"aps5-trace-da026c70655a-564753.json.gz"} {"commit":"9fe0de059d86","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"2097152","APS5_TRACE_SECONDS":"250:10"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.3.0-9-generic","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":32003,"title_id":"PPSA03912","title":"Diablo® II: Resurrected™","content_version":"01.039.000","resolution":"3840x2160","window":{"spec":"seconds 250:10","first_present":4169,"ms":10002.197},"presents":122,"frame_ms":{"p50":81.550,"p90":84.160,"p99":87.278,"max":88.383},"gpu_busy_ms_per_present":73.463,"worker_busy_pct":{"queue worker 0x0":98.024,"queue worker 0x23":49.502},"top_phases_ms_per_frame":{"Driver.Packet":120.691,"Driver.Packet.draw":67.638,"Driver.Draw":67.328,"Graphics.Draw":51.588,"Graphics.Draw.draw_and_resource_release":46.398,"Driver.Packet.memory_wait":40.419,"Driver.Draw.shader_compile_and_link":35.411,"Driver.Present":32.600},"trace_dropped":false,"trace":"aps5-trace-9fe0de059d86-567941.json.gz"} {"commit":"da026c70655a","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"2097152","APS5_TRACE_SECONDS":"250:10"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.3.0-9-generic","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":32003,"title_id":"PPSA03912","title":"Diablo® II: Resurrected™","content_version":"01.039.000","resolution":"3840x2160","window":{"spec":"seconds 250:10","first_present":3996,"ms":10033.896},"presents":99,"frame_ms":{"p50":100.664,"p90":105.918,"p99":107.824,"max":107.824},"gpu_busy_ms_per_present":92.433,"worker_busy_pct":{"queue worker 0x23":59.568,"queue worker 0x0":98.404},"top_phases_ms_per_frame":{"Driver.Packet":159.825,"Driver.Packet.draw":86.709,"Driver.Draw":86.353,"Driver.Packet.memory_wait":60.181,"Graphics.Draw":52.685,"Graphics.Draw.draw_and_resource_release":47.092,"Driver.Draw.empty_indirect_skipped":37.042,"Driver.Draw.shader_compile_and_link":36.119},"trace_dropped":false,"trace":"aps5-trace-da026c70655a-571065.json.gz"} {"commit":"9fe0de059d86","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"2097152","APS5_TRACE_SECONDS":"250:10"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.3.0-9-generic","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":32003,"title_id":"PPSA03912","title":"Diablo® II: Resurrected™","content_version":"01.039.000","resolution":"3840x2160","window":{"spec":"seconds 250:10","first_present":4096,"ms":10062.879},"presents":120,"frame_ms":{"p50":82.548,"p90":91.134,"p99":101.932,"max":105.975},"gpu_busy_ms_per_present":73.368,"worker_busy_pct":{"queue worker 0x23":50.693,"queue worker 0x0":97.889},"top_phases_ms_per_frame":{"Driver.Packet":124.327,"Driver.Packet.draw":68.586,"Driver.Draw":68.249,"Graphics.Draw":54.596,"Graphics.Draw.draw_and_resource_release":49.071,"Driver.Packet.memory_wait":42.341,"Driver.Draw.shader_compile_and_link":37.575,"Shader.DrawStage":33.204},"trace_dropped":false,"trace":"aps5-trace-9fe0de059d86-574461.json.gz"} {"commit":"da026c70655a","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"2097152","APS5_TRACE_SECONDS":"490:15"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.3.0-9-generic","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":32003,"title_id":"PPSA03912","title":"Diablo® II: Resurrected™","content_version":"01.039.000","resolution":"3840x2160","window":{"spec":"seconds 490:15","first_present":5961,"ms":15060.213},"presents":135,"frame_ms":{"p50":111.316,"p90":114.025,"p99":118.415,"max":119.302},"gpu_busy_ms_per_present":84.350,"worker_busy_pct":{"queue worker 0x0":96.884,"queue worker 0x23":67.678},"top_phases_ms_per_frame":{"Driver.Packet":183.139,"Driver.Packet.draw":87.588,"Driver.Draw":86.990,"Driver.Packet.memory_wait":75.090,"Graphics.Draw":68.074,"Graphics.Draw.draw_and_resource_release":58.284,"Driver.Draw.shader_compile_and_link":48.732,"Shader.DrawStage":41.492},"trace_dropped":false,"trace":"aps5-trace-da026c70655a-578407.json.gz"} {"commit":"9fe0de059d86","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"2097152","APS5_TRACE_SECONDS":"490:15"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.3.0-9-generic","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":32003,"title_id":"PPSA03912","title":"Diablo® II: Resurrected™","content_version":"01.039.000","resolution":"3840x2160","window":{"spec":"seconds 490:15","first_present":6483,"ms":15076.389},"presents":138,"frame_ms":{"p50":108.923,"p90":112.606,"p99":116.211,"max":117.784},"gpu_busy_ms_per_present":84.806,"worker_busy_pct":{"queue worker 0x23":65.572,"queue worker 0x0":96.888},"top_phases_ms_per_frame":{"Driver.Packet":177.124,"Driver.Packet.draw":86.882,"Driver.Draw":86.339,"Driver.Packet.memory_wait":71.312,"Graphics.Draw":67.414,"Graphics.Draw.draw_and_resource_release":57.737,"Driver.Draw.shader_compile_and_link":48.756,"Shader.DrawStage":41.388},"trace_dropped":false,"trace":"aps5-trace-9fe0de059d86-583786.json.gz"} {"commit":"da026c70655a","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"2097152","APS5_TRACE_SECONDS":"490:15"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.3.0-9-generic","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":32003,"title_id":"PPSA03912","title":"Diablo® II: Resurrected™","content_version":"01.039.000","resolution":"3840x2160","window":{"spec":"seconds 490:15","first_present":6077,"ms":15075.633},"presents":140,"frame_ms":{"p50":107.094,"p90":110.477,"p99":135.211,"max":138.070},"gpu_busy_ms_per_present":83.919,"worker_busy_pct":{"queue worker 0x23":64.606,"queue worker 0x0":97.124},"top_phases_ms_per_frame":{"Driver.Packet":173.849,"Driver.Packet.draw":85.537,"Driver.Draw":84.914,"Driver.Packet.memory_wait":69.298,"Graphics.Draw":67.438,"Graphics.Draw.draw_and_resource_release":57.676,"Driver.Draw.shader_compile_and_link":48.179,"Shader.DrawStage":41.013},"trace_dropped":false,"trace":"aps5-trace-da026c70655a-589324.json.gz"} {"commit":"9fe0de059d86","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"2097152","APS5_TRACE_SECONDS":"490:15"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.3.0-9-generic","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":32003,"title_id":"PPSA03912","title":"Diablo® II: Resurrected™","content_version":"01.039.000","resolution":"3840x2160","window":{"spec":"seconds 490:15","first_present":6508,"ms":15009.449},"presents":136,"frame_ms":{"p50":109.076,"p90":114.484,"p99":126.888,"max":140.966},"gpu_busy_ms_per_present":85.650,"worker_busy_pct":{"queue worker 0x0":96.875,"queue worker 0x23":65.825},"top_phases_ms_per_frame":{"Driver.Packet":179.201,"Driver.Packet.draw":87.075,"Driver.Draw":86.530,"Driver.Packet.memory_wait":72.320,"Graphics.Draw":65.935,"Graphics.Draw.draw_and_resource_release":56.551,"Driver.Draw.shader_compile_and_link":48.912,"Shader.DrawStage":41.729},"trace_dropped":false,"trace":"aps5-trace-9fe0de059d86-595163.json.gz"} ``` </details> **Tests:** - `ctest -R 'agc|shader'` at this head: 1150 of 1150 pass. - Validation layer on the focused tests (`agc_adaptive_staging`, written-buffer, BDA-staging, read/written staging, storage flush ordering, staged clear, partially resident snapshot, recorder and pool tests), with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 ctest -V`: `main` `da026c7065` 12 of 12, this head 13 of 13 (with the new test). No missing-layer line and no `VUID-` message on either side. **Help wanted on other titles.** This changes only titles that stage a large element, and so far it is measured on one title. If you have one of these, a `main` vs PR run of the same scene would show whether it picks the faster mode there too. The `[staging] adaptive:` lines from a run also help. - GTA V (PPSA04263 / PPSA04264): @CPritch (you ran #8104 on it), @Tehshortbus - 007 First Light (PPSA11386): @SleglJan (you ran #8336 on its main menu) I'm setting up GTA V (PPSA04263) here as well. ### 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: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 3080 Ti, driver 615.71.09, Ubuntu 26.10 - [x] AI-assisted: yes AI-assisted. Tested by me on my own machine.
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!13373
No description provided.