perf(agc): clear single-key DCC surfaces on a verified uniform color #6848

Merged
NFSS10 merged 4 commits from upstream-pr/6848 into main 2026-10-23 07:45:46 +00:00
NFSS10 commented 2026-10-16 14:12:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by NFSS10 on 2026-10-16T14:12:25Z.


What

A ClearSingle surface (all-zero keys, the DCC all-invalidate encoding) carries its clear color as the leading element of every 256-byte key block, but that value is not on the IsDccClear whitelist, so StorageTexture::upload fell through to a full host upload: for the 4K color targets a title clears through its DCC keys that is 63.8 MiB of guest read, staging fill and DMA per surface per frame, while the guest texel memory never changes.

Upload now reads that one key element and clears the image to it when DccMetadata::ProvedSingleUniform proves, for the current keys, that every 256-byte block clears to that one color: every block-leading element matches the first, gathered in 1 MiB chunks bounded to the surface (about 64 ReadCommitted calls instead of 261k one-element reads) and memoized until the next key upload. Any doubt falls back to the original CPU upload path, so FillClearColor's refusal behaviour is unchanged and a wrong clear color is not possible. IsDccClear keeps its whitelist meaning for its other callers.

The proof is what makes the fast path sound: a key of all zeros leaves the stored block-0 color behind, so a ClearSingle surface is not necessarily uniform and a single-element read alone is wrong (agc_driver_dcc_keys_first_write: 16296/16384 texels). The fast clear fires only on surfaces that are provably one color, which includes the 4K clear targets the win comes from. The gather is bounded to the surface (std::span(buffer).first(size)), so proving a surface never reads past the keys region it proves.

tools/check_conventions.py --base main passes.

Overlap: #6108 and #6820 edit the same StorageTexture::upload region and #7048 the same Texture.cpp lines (different
functions; the overlap bot flags the shared lines). No dependency on any of them.

Tested

Windows 11 23H2 (10.0.22631), AMD Radeon RX 7900 GRE, Adrenalin 25.6.1 (LLPC),
3840x2160, Release build.

  • Bendy and The Ink Machine (PPSA01325), Chapter 1 (level1), 30 s window at 45:30, gated A/B captured back to back in the same session; both runs had the load path identical (order: same, 26 points) and exited 0.
  • agc_driver_dcc_keys_first_write passes; it fails 3/3 without the uniformity proof (commit 9900a7ed7, superseded). Its RunUniformSingleClear case (third commit) covers the fast clear directly on a provably uniform surface: it asserts the upload is charged as a GPU clear (LookupOutcomes::UploadClear, not UploadCpu), that the write-back texels are the kernel's writes or the proved color, and that the keys land uncompressed. Forcing ProvedSingleUniform to return false makes it fail with "the first write read the surface and uploaded it instead of clearing it on the GPU", whichever block it runs on first (unwatched or write-watched). Full ctest green except two pre-existing failures that also fail on main (MinGW 15.2 toolchain).
  • Captures predate the rebase onto current main (c0a7468f6); the commits in 7dcfff559..c0a7468f6 that touch Texture.cpp/Texture.hpp change allocation (buffer pool), base-level view usage and format helpers, not the upload/clear path this PR changes. The community A/Bs below were run on builds rebased past them.

Result over the 30 s window (derived from the two summary lines below):

main this PR
frame p50 116.4 ms 112.3 ms −3.5 %
frame p90 122.8 ms 115.1 ms −6.2 %
frame p99 146.2 ms 117.8 ms −19.5 %
frame max 153.5 ms 121.6 ms −20.8 %
presents / 30 s 256 267 +4.3 % (8.5 → 8.9 fps)

The gain is CPU-side: Driver.Packet.draw 67.0 → 56.9 ms and Driver.Present 14.6 → 8.3 ms per frame. Profiled runs confirm the mechanism: the [storage] uploads by path counter for the clear targets goes from cpu 109 / 6948.8 MiB to cpu 0 / 0.0 per 10 s window. gpu_busy per present is unchanged in character (38.5 → 40.6 ms, more frames presented).

Summary lines of aps5-summary.jsonl (the main line's dirty is untracked scratch files in the worktree; the branch line's is the proof changes uncommitted at capture time — their content is this PR's second commit):

{"commit": "7dcfff559f68", "dirty": true, "env": {"APS5_PAD_INPUT_FILE": "<path>", "APS5_TRACE_DIR": "<path>", "APS5_TRACE_SECONDS": "45:30", "APS5_TRACE_SUMMARY_EVERY": "5"}, "gpu": "AMD Radeon RX 7900 GRE", "driver": "AMD proprietary driver 25.6.1 (LLPC)", "os": "Windows 10.0.22631", "resolution": "3840x2160", "window": {"spec": "seconds 45:30", "first_present": 1271, "ms": 30084.811}, "presents": 256, "frame_ms": {"p50": 116.398, "p90": 122.764, "p99": 146.225, "max": 153.545}, "gpu_busy_ms_per_present": 38.467, "worker_busy_pct": {"queue worker 0x0": 99.42}, "top_phases_ms_per_frame": {"Driver.Packet": 116.755, "Driver.Packet.draw": 67.022, "Driver.Draw": 66.682, "Driver.Draw.draw_enqueued": 48.171, "Driver.Present": 14.631, "Driver.Draw.shader_compile_and_link": 13.874, "Driver.Present.gpu_mutex_wait": 10.878, "GpuMutex.wait.present": 10.874}, "trace_dropped": true, "trace_dropped_threads": {"queue worker 0x0": {"events_full_after_s": 17.92, "events_lost": 161710, "totals_full": false}}, "trace": "aps5-trace-7dcfff559f68-4072.json.gz"}
{"commit": "9900a7ed7549", "dirty": true, "env": {"APS5_PAD_INPUT_FILE": "<path>", "APS5_TRACE_DIR": "<path>", "APS5_TRACE_SECONDS": "45:30", "APS5_TRACE_SUMMARY_EVERY": "5"}, "gpu": "AMD Radeon RX 7900 GRE", "driver": "AMD proprietary driver 25.6.1 (LLPC)", "os": "Windows 10.0.22631", "resolution": "3840x2160", "window": {"spec": "seconds 45:30", "first_present": 1067, "ms": 30036.883}, "presents": 267, "frame_ms": {"p50": 112.348, "p90": 115.111, "p99": 117.759, "max": 121.619}, "gpu_busy_ms_per_present": 40.627, "worker_busy_pct": {"queue worker 0x0": 99.354}, "top_phases_ms_per_frame": {"Driver.Packet": 111.689, "Driver.Packet.draw": 56.88, "Driver.Draw": 56.512, "Driver.Draw.draw_enqueued": 36.379, "Driver.Draw.shader_compile_and_link": 14.949, "Driver.Packet.dispatch": 13.075, "Driver.Present": 8.267, "Driver.Packet.device_lock": 7.953}, "trace_dropped": true, "trace_dropped_threads": {"queue worker 0x0": {"events_full_after_s": 15.315, "events_lost": 251527, "totals_full": false}}, "trace": "aps5-trace-9900a7ed7549-16288.json.gz"}

Community testing (independent A/B on the builds linked above; thanks to each tester):

tester GPU title / scene result
@tibzejoker RTX 4090 GTA V (PPSA04264), Story mode, 300 s 16.47 → 17.30 fps (+5 %), rendering unchanged. A GPU-detile alternative for the same surfaces measured 17.36, i.e. no further gain, because GTA's single-key surfaces are the uniform-color case this PR covers.
@parl0v RTX 3060 12 GB Minecraft Dungeons II (PPSA16064), title screen, 200 s 6.60 → 6.62/6.69 fps (+1.0 %), within row spread; no regression, 0 fatal. Scene is CPU-bound (45-47 ms idle gaps/frame).
@akkadbakkad89 RTX 3070 agc_driver ctest group 468/469 pass; the one failure (agc_driver_preparation_scope_settle) is a timing flake outside the DCC/texture code, 5/6 re-runs pass (known MinGW #6716 for the non-compiling test).

All three report no visual change and no regression; the uniform-color path is clean on Ampere and Ada.

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)
  • No new third-party code
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: AMD Radeon RX 7900 GRE, AMD proprietary driver 25.6.1 (LLPC), Windows 11 23H2 (10.0.22631)
  • AI-assisted: yes (the uniformity proof and this description were written with AI assistance; every line reviewed and measured by the author)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4889609131 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6848). Originally posted by [NFSS10](https://github.com/NFSS10) on 2026-10-16T14:12:25Z. --- ### What A ClearSingle surface (all-zero keys, the DCC all-invalidate encoding) carries its clear color as the leading element of every 256-byte key block, but that value is not on the `IsDccClear` whitelist, so `StorageTexture::upload` fell through to a full host upload: for the 4K color targets a title clears through its DCC keys that is 63.8 MiB of guest read, staging fill and DMA per surface per frame, while the guest texel memory never changes. Upload now reads that one key element and clears the image to it when `DccMetadata::ProvedSingleUniform` proves, for the current keys, that every 256-byte block clears to that one color: every block-leading element matches the first, gathered in 1 MiB chunks bounded to the surface (about 64 `ReadCommitted` calls instead of 261k one-element reads) and memoized until the next key upload. Any doubt falls back to the original CPU upload path, so `FillClearColor`'s refusal behaviour is unchanged and a wrong clear color is not possible. `IsDccClear` keeps its whitelist meaning for its other callers. The proof is what makes the fast path sound: a key of all zeros leaves the stored block-0 color behind, so a ClearSingle surface is not necessarily uniform and a single-element read alone is wrong (`agc_driver_dcc_keys_first_write`: 16296/16384 texels). The fast clear fires only on surfaces that are provably one color, which includes the 4K clear targets the win comes from. The gather is bounded to the surface (`std::span(buffer).first(size)`), so proving a surface never reads past the keys region it proves. `tools/check_conventions.py --base main` passes. Overlap: #6108 and #6820 edit the same `StorageTexture::upload` region and #7048 the same `Texture.cpp` lines (different functions; the overlap bot flags the shared lines). No dependency on any of them. ### Tested Windows 11 23H2 (10.0.22631), AMD Radeon RX 7900 GRE, Adrenalin 25.6.1 (LLPC), 3840x2160, Release build. - Bendy and The Ink Machine (PPSA01325), Chapter 1 (level1), 30 s window at 45:30, gated A/B captured back to back in the same session; both runs had the load path identical (`order: same, 26 points`) and exited 0. - `agc_driver_dcc_keys_first_write` passes; it fails 3/3 without the uniformity proof (commit `9900a7ed7`, superseded). Its `RunUniformSingleClear` case (third commit) covers the fast clear directly on a provably uniform surface: it asserts the upload is charged as a GPU clear (`LookupOutcomes::UploadClear`, not `UploadCpu`), that the write-back texels are the kernel's writes or the proved color, and that the keys land uncompressed. Forcing `ProvedSingleUniform` to `return false` makes it fail with "the first write read the surface and uploaded it instead of clearing it on the GPU", whichever block it runs on first (unwatched or write-watched). Full ctest green except two pre-existing failures that also fail on main (MinGW 15.2 toolchain). - Captures predate the rebase onto current `main` (`c0a7468f6`); the commits in `7dcfff559..c0a7468f6` that touch `Texture.cpp`/`Texture.hpp` change allocation (buffer pool), base-level view usage and format helpers, not the `upload`/clear path this PR changes. The community A/Bs below were run on builds rebased past them. Result over the 30 s window (derived from the two summary lines below): | | main | this PR | | |---|---|---|---| | frame p50 | 116.4 ms | 112.3 ms | −3.5 % | | frame p90 | 122.8 ms | 115.1 ms | −6.2 % | | frame p99 | 146.2 ms | 117.8 ms | −19.5 % | | frame max | 153.5 ms | 121.6 ms | −20.8 % | | presents / 30 s | 256 | 267 | +4.3 % (8.5 → 8.9 fps) | The gain is CPU-side: `Driver.Packet.draw` 67.0 → 56.9 ms and `Driver.Present` 14.6 → 8.3 ms per frame. Profiled runs confirm the mechanism: the `[storage] uploads by path` counter for the clear targets goes from `cpu 109 / 6948.8 MiB` to `cpu 0 / 0.0` per 10 s window. `gpu_busy` per present is unchanged in character (38.5 → 40.6 ms, more frames presented). Summary lines of `aps5-summary.jsonl` (the main line's `dirty` is untracked scratch files in the worktree; the branch line's is the proof changes uncommitted at capture time — their content is this PR's second commit): ```json {"commit": "7dcfff559f68", "dirty": true, "env": {"APS5_PAD_INPUT_FILE": "<path>", "APS5_TRACE_DIR": "<path>", "APS5_TRACE_SECONDS": "45:30", "APS5_TRACE_SUMMARY_EVERY": "5"}, "gpu": "AMD Radeon RX 7900 GRE", "driver": "AMD proprietary driver 25.6.1 (LLPC)", "os": "Windows 10.0.22631", "resolution": "3840x2160", "window": {"spec": "seconds 45:30", "first_present": 1271, "ms": 30084.811}, "presents": 256, "frame_ms": {"p50": 116.398, "p90": 122.764, "p99": 146.225, "max": 153.545}, "gpu_busy_ms_per_present": 38.467, "worker_busy_pct": {"queue worker 0x0": 99.42}, "top_phases_ms_per_frame": {"Driver.Packet": 116.755, "Driver.Packet.draw": 67.022, "Driver.Draw": 66.682, "Driver.Draw.draw_enqueued": 48.171, "Driver.Present": 14.631, "Driver.Draw.shader_compile_and_link": 13.874, "Driver.Present.gpu_mutex_wait": 10.878, "GpuMutex.wait.present": 10.874}, "trace_dropped": true, "trace_dropped_threads": {"queue worker 0x0": {"events_full_after_s": 17.92, "events_lost": 161710, "totals_full": false}}, "trace": "aps5-trace-7dcfff559f68-4072.json.gz"} {"commit": "9900a7ed7549", "dirty": true, "env": {"APS5_PAD_INPUT_FILE": "<path>", "APS5_TRACE_DIR": "<path>", "APS5_TRACE_SECONDS": "45:30", "APS5_TRACE_SUMMARY_EVERY": "5"}, "gpu": "AMD Radeon RX 7900 GRE", "driver": "AMD proprietary driver 25.6.1 (LLPC)", "os": "Windows 10.0.22631", "resolution": "3840x2160", "window": {"spec": "seconds 45:30", "first_present": 1067, "ms": 30036.883}, "presents": 267, "frame_ms": {"p50": 112.348, "p90": 115.111, "p99": 117.759, "max": 121.619}, "gpu_busy_ms_per_present": 40.627, "worker_busy_pct": {"queue worker 0x0": 99.354}, "top_phases_ms_per_frame": {"Driver.Packet": 111.689, "Driver.Packet.draw": 56.88, "Driver.Draw": 56.512, "Driver.Draw.draw_enqueued": 36.379, "Driver.Draw.shader_compile_and_link": 14.949, "Driver.Packet.dispatch": 13.075, "Driver.Present": 8.267, "Driver.Packet.device_lock": 7.953}, "trace_dropped": true, "trace_dropped_threads": {"queue worker 0x0": {"events_full_after_s": 15.315, "events_lost": 251527, "totals_full": false}}, "trace": "aps5-trace-9900a7ed7549-16288.json.gz"} ``` - Traces: [aps5-trace-7dcfff559f68-4072.json.gz](https://github.com/user-attachments/files/33555488/aps5-trace-7dcfff559f68-4072.json.gz) (main) and [aps5-trace-9900a7ed7549-16288.json.gz](https://github.com/user-attachments/files/33555493/aps5-trace-9900a7ed7549-16288.json.gz) (this PR). Both report `trace_dropped` on the queue worker buffer (`totals_full: false`). - Capture: caches warm (scene run once, title restarted); no switch beyond `APS5_TRACE_SECONDS`/`APS5_TRACE_DIR`; same machine, scene and settings. Community testing (independent A/B on the builds linked above; thanks to each tester): | tester | GPU | title / scene | result | |---|---|---|---| | @tibzejoker | RTX 4090 | GTA V (PPSA04264), Story mode, 300 s | 16.47 → 17.30 fps (+5 %), rendering unchanged. A GPU-detile alternative for the same surfaces measured 17.36, i.e. no further gain, because GTA's single-key surfaces are the uniform-color case this PR covers. | | @parl0v | RTX 3060 12 GB | Minecraft Dungeons II (PPSA16064), title screen, 200 s | 6.60 → 6.62/6.69 fps (+1.0 %), within row spread; no regression, 0 fatal. Scene is CPU-bound (45-47 ms idle gaps/frame). | | @akkadbakkad89 | RTX 3070 | agc_driver ctest group | 468/469 pass; the one failure (`agc_driver_preparation_scope_settle`) is a timing flake outside the DCC/texture code, 5/6 re-runs pass (known MinGW #6716 for the non-compiling test). | All three report no visual change and no regression; the uniform-color path is clean on Ampere and Ada. ### 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 - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical debt file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] No new third-party code - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: AMD Radeon RX 7900 GRE, AMD proprietary driver 25.6.1 (LLPC), Windows 11 23H2 (10.0.22631) - [x] AI-assisted: yes (the uniformity proof and this description were written with AI assistance; every line reviewed and measured by the author)
MarcZX10 commented 2026-10-16 14:27:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T14:27:41Z.


The conventions check still fails on ten newly added comment lines in core/libs/prx/libSceAgcDriver/Graphics/include/DccMetadata.hpp (lines 84–100 in the failed run). The repository checker allows code comments only when the PR also updates docs/dev/TechnicalDebt.md or docs/dev/debt/; these proof explanations may fit better in a debt entry with concise comments removed from the header. The failure annotation also points to the .github Ubuntu runner migration notice, which appears informational rather than a project check failure.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6217661438 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6848#issuecomment-6217661438). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T14:27:41Z. --- The conventions check still fails on ten newly added comment lines in `core/libs/prx/libSceAgcDriver/Graphics/include/DccMetadata.hpp` (lines 84–100 in the failed run). The repository checker allows code comments only when the PR also updates `docs/dev/TechnicalDebt.md` or `docs/dev/debt/`; these proof explanations may fit better in a debt entry with concise comments removed from the header. The failure annotation also points to the `.github` Ubuntu runner migration notice, which appears informational rather than a project check failure.
MarcZX10 commented 2026-10-16 14:30:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T14:30:27Z.


A separate reviewability gap remains in the performance report: the aps5-summary.jsonl block is still the literal ... TODO, and the two traces are described as attached but are not present in the PR files or issue attachments. Since both traces also report dropped queue-worker events, could you provide the actual comparable summary lines and attach the trace files (or another complete capture) so reviewers can assess the claimed change? Please keep the trace_dropped limitation explicit.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6217716165 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6848#issuecomment-6217716165). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T14:30:27Z. --- A separate reviewability gap remains in the performance report: the `aps5-summary.jsonl` block is still the literal `... TODO`, and the two traces are described as attached but are not present in the PR files or issue attachments. Since both traces also report dropped queue-worker events, could you provide the actual comparable summary lines and attach the trace files (or another complete capture) so reviewers can assess the claimed change? Please keep the `trace_dropped` limitation explicit.
MarcZX10 commented 2026-10-16 15:10:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T15:10:15Z.


Following up on the performance evidence request: the latest PR description still needs the actual comparable aps5-summary.jsonl values and the captures (or another complete capture) before the reported speedup can be independently assessed. The new overlap report also flags #6820 in Texture.cpp; please state the dependency/relationship if this change relies on it. I am not treating the benchmark claim as validated while the summary remains ... TODO and the traces are unavailable.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6218482256 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6848#issuecomment-6218482256). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T15:10:15Z. --- Following up on the performance evidence request: the latest PR description still needs the actual comparable `aps5-summary.jsonl` values and the captures (or another complete capture) before the reported speedup can be independently assessed. The new overlap report also flags #6820 in `Texture.cpp`; please state the dependency/relationship if this change relies on it. I am not treating the benchmark claim as validated while the summary remains `... TODO` and the traces are unavailable.
NFSS10 commented 2026-10-16 15:13:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by NFSS10 on 2026-10-16T15:13:19Z.


@MarcZX100 it's a draft, you should not waste AI tokens in draft PRs.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6218539212 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6848#issuecomment-6218539212). Originally posted by [NFSS10](https://github.com/NFSS10) on 2026-10-16T15:13:19Z. --- @MarcZX100 it's a draft, you should not waste AI tokens in draft PRs.
MarcZX10 commented 2026-10-16 16:07:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T16:07:03Z.


Understood. I had checked the draft’s failed conventions output and the missing benchmark artifacts, but I’ll leave further review of this draft to you and the maintainers unless you request another pass.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6219558018 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6848#issuecomment-6219558018). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T16:07:03Z. --- Understood. I had checked the draft’s failed conventions output and the missing benchmark artifacts, but I’ll leave further review of this draft to you and the maintainers unless you request another pass.
tibzejoker commented 2026-10-16 17:29:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by tibzejoker on 2026-10-16T17:29:34Z.


GTA V (PPSA04264) data point for this PR, Windows 11 / RTX 4090, Story mode, same scene, frame counter over 300 s, on main eb901bcf4 + #6488 + #6892:

FPS
without this PR 16.47
with this PR 17.30

The rendering is unchanged.

I had an alternative for the same surfaces: comp-to-single surfaces detiled on the GPU straight from the import, with each element read at its 256-byte key block start. It handles non-uniform blocks too. On top of this PR it measured 17.36, i.e. nothing more, because GTA's single-key surfaces are the uniform-color case you cover. So I'm not proposing it, and this PR is the better fit. Thanks!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6221057281 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6848#issuecomment-6221057281). Originally posted by [tibzejoker](https://github.com/tibzejoker) on 2026-10-16T17:29:34Z. --- GTA V (PPSA04264) data point for this PR, Windows 11 / RTX 4090, Story mode, same scene, frame counter over 300 s, on main eb901bcf4 + #6488 + #6892: | | FPS | |---|---| | without this PR | 16.47 | | with this PR | 17.30 | The rendering is unchanged. I had an alternative for the same surfaces: comp-to-single surfaces detiled on the GPU straight from the import, with each element read at its 256-byte key block start. It handles non-uniform blocks too. On top of this PR it measured 17.36, i.e. nothing more, because GTA's single-key surfaces are the uniform-color case you cover. So I'm not proposing it, and this PR is the better fit. Thanks!
jotitadev commented 2026-10-16 18:00:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-16T18:00:36Z.

Review: COMMENTED


Linux run on NVIDIA and lavapipe, plus two things I found in the new path.

Machine: Linux, NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8). Ubuntu 26.04, i7-8700, GCC 15.2, Release. Head dc4fb7fd9 merged into main 66e290f1c (clean).

  • agc_dcc_key_sharing, agc_driver_dcc_keys_first_write, agc_driver_graphics: pass 3/3 on the RTX 3070, and pass on lavapipe.
  • With only the first commit (c5c32f6e5) merged, agc_driver_dcc_keys_first_write fails on the RTX 3070 with 16296 of 16384 written-back texels are neither the kernel's write nor the first texel of their 256-byte block, as you describe. So that test guards against clearing without the proof.

1. No test reaches the fast clear. With ProvedSingleUniform changed to return false; on its first line, the three tests above still pass. The only call in them is for agc_driver_dcc_keys_first_write's 64 KiB surface, which is not uniform. A wrong clear colour from SingleKeyColorFor (element read, pattern replication, FillClearColor) or a proof that never succeeds would not fail any test. A case with a uniform ClearSingle surface that checks the uploaded texels would cover it.

2. The chunk read goes past the surface. In ProvedSingleUniform (DccMetadata.cpp:770):

const auto size = static_cast<std::size_t>(std::min<std::uint64_t>(buffer.size(), guestBytes - offset));
GuestMemory::ReadCommitted(resource.baseAddress + offset, buffer);

The read uses the whole buffer, not size. Since the loop starts at offset 256, the last read always ends past baseAddress + guestBytes: by 256 bytes when guestBytes is a multiple of 1 MiB, and by up to about 1 MiB otherwise. With a temporary print before that line, the test's call logged guestBytes=65536 offset=256 size=65280 read=65536 past_end=256. The comparison only uses the first size bytes, so the result is unaffected, but ReadCommitted runs FlushGpuWrites and the read guard over the extra range, which can belong to a neighbouring resource. buffer.data(), size (or std::span(buffer).first(size)) keeps the read inside the surface.

Not run: AMD, Windows, any title, the performance claim.

GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5551752465 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6848#pullrequestreview-5551752465). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-16T18:00:36Z. **Review:** COMMENTED --- Linux run on NVIDIA and lavapipe, plus two things I found in the new path. **Machine:** Linux, NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8). Ubuntu 26.04, i7-8700, GCC 15.2, Release. Head `dc4fb7fd9` merged into `main` `66e290f1c` (clean). - `agc_dcc_key_sharing`, `agc_driver_dcc_keys_first_write`, `agc_driver_graphics`: pass 3/3 on the RTX 3070, and pass on lavapipe. - With only the first commit (`c5c32f6e5`) merged, `agc_driver_dcc_keys_first_write` fails on the RTX 3070 with `16296 of 16384 written-back texels are neither the kernel's write nor the first texel of their 256-byte block`, as you describe. So that test guards against clearing without the proof. **1. No test reaches the fast clear.** With `ProvedSingleUniform` changed to `return false;` on its first line, the three tests above still pass. The only call in them is for `agc_driver_dcc_keys_first_write`'s 64 KiB surface, which is not uniform. A wrong clear colour from `SingleKeyColorFor` (element read, pattern replication, `FillClearColor`) or a proof that never succeeds would not fail any test. A case with a uniform ClearSingle surface that checks the uploaded texels would cover it. **2. The chunk read goes past the surface.** In `ProvedSingleUniform` (`DccMetadata.cpp:770`): ```cpp const auto size = static_cast<std::size_t>(std::min<std::uint64_t>(buffer.size(), guestBytes - offset)); GuestMemory::ReadCommitted(resource.baseAddress + offset, buffer); ``` The read uses the whole `buffer`, not `size`. Since the loop starts at offset 256, the last read always ends past `baseAddress + guestBytes`: by 256 bytes when `guestBytes` is a multiple of 1 MiB, and by up to about 1 MiB otherwise. With a temporary print before that line, the test's call logged `guestBytes=65536 offset=256 size=65280 read=65536 past_end=256`. The comparison only uses the first `size` bytes, so the result is unaffected, but `ReadCommitted` runs `FlushGpuWrites` and the read guard over the extra range, which can belong to a neighbouring resource. `buffer.data(), size` (or `std::span(buffer).first(size)`) keeps the read inside the surface. Not run: AMD, Windows, any title, the performance claim. GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04 Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
parl0v commented 2026-10-16 19:52:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by parl0v on 2026-10-16T19:52:53Z.


Data point: RTX 3060 12 GB (NVIDIA 617.42), i5-12400F, Windows 10 19045, MinGW GCC Release. Minecraft Dungeons II (PPSA16064 01.100.100), title screen, no input, 200 s rows, APS5_PROFILE_DRAW=1 APS5_PROFILE_GPU=1; main c84249186 vs main + this PR, interleaved with three other PRs in one batch, two rounds. FPS is the mean of the last 10 [present] windows, GPU busy and idle gaps per frame over the last 8. This scene is CPU-bound on this machine (45-47 ms of idle gaps per frame).

libs FPS GPU busy idle gaps
main 6.60 / 6.60 105 / 105 ms 46 / 47 ms
+ this PR (dc4fb7fd9) 6.62 / 6.69 (+1.0 %) 104 / 104 ms 47 / 46 ms

Within the row spread on this scene; no regression. 0 fatal.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6223504170 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6848#issuecomment-6223504170). Originally posted by [parl0v](https://github.com/parl0v) on 2026-10-16T19:52:53Z. --- Data point: RTX 3060 12 GB (NVIDIA 617.42), i5-12400F, Windows 10 19045, MinGW GCC Release. Minecraft Dungeons II (PPSA16064 01.100.100), title screen, no input, 200 s rows, `APS5_PROFILE_DRAW=1 APS5_PROFILE_GPU=1`; `main` c84249186 vs `main` + this PR, interleaved with three other PRs in one batch, two rounds. FPS is the mean of the last 10 `[present]` windows, GPU busy and idle gaps per frame over the last 8. This scene is CPU-bound on this machine (45-47 ms of idle gaps per frame). | libs | FPS | GPU busy | idle gaps | |---|---|---|---| | `main` | 6.60 / 6.60 | 105 / 105 ms | 46 / 47 ms | | + this PR (dc4fb7fd9) | 6.62 / 6.69 (+1.0 %) | 104 / 104 ms | 47 / 46 ms | Within the row spread on this scene; no regression. 0 fatal. AI-assisted: yes (Claude Code)
akkadbakkad89 commented 2026-10-16 20:33:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-16T20:33:46Z.


Tested on Windows 11, RTX 3070 (Ampere, driver 617.42), WinLibs GCC 15.2 build of dc4fb7fd9:

  • Full agc_driver ctest group: 468/469 pass (excluding agc_driver_gpu_indirect_arguments_misaligned_writer_ahead, which does not compile under MinGW — known #6716).
  • The one failure, agc_driver_preparation_scope_settle, is a timing flake on this machine: it passed 5/6 dedicated re-runs and lives outside the DCC-metadata/texture code this PR touches.

The uniform-color DCC clear path is clean on Ampere.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6224176774 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6848#issuecomment-6224176774). Originally posted by [akkadbakkad89](https://github.com/akkadbakkad89) on 2026-10-16T20:33:46Z. --- Tested on Windows 11, RTX 3070 (Ampere, driver 617.42), WinLibs GCC 15.2 build of dc4fb7fd9: - Full agc_driver ctest group: 468/469 pass (excluding agc_driver_gpu_indirect_arguments_misaligned_writer_ahead, which does not compile under MinGW — known #6716). - The one failure, agc_driver_preparation_scope_settle, is a timing flake on this machine: it passed 5/6 dedicated re-runs and lives outside the DCC-metadata/texture code this PR touches. The uniform-color DCC clear path is clean on Ampere.
NFSS10 commented 2026-10-17 23:42:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by NFSS10 on 2026-10-17T23:42:44Z.


Linux run on NVIDIA and lavapipe, plus two things I found in the new path.

Machine: Linux, NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8). Ubuntu 26.04, i7-8700, GCC 15.2, Release. Head dc4fb7fd9 merged into main 66e290f1c (clean).

* `agc_dcc_key_sharing`, `agc_driver_dcc_keys_first_write`, `agc_driver_graphics`: pass 3/3 on the RTX 3070, and pass on lavapipe.

* With only the first commit (`c5c32f6e5`) merged, `agc_driver_dcc_keys_first_write` fails on the RTX 3070 with `16296 of 16384 written-back texels are neither the kernel's write nor the first texel of their 256-byte block`, as you describe. So that test guards against clearing without the proof.

1. No test reaches the fast clear. With ProvedSingleUniform changed to return false; on its first line, the three tests above still pass. The only call in them is for agc_driver_dcc_keys_first_write's 64 KiB surface, which is not uniform. A wrong clear colour from SingleKeyColorFor (element read, pattern replication, FillClearColor) or a proof that never succeeds would not fail any test. A case with a uniform ClearSingle surface that checks the uploaded texels would cover it.

2. The chunk read goes past the surface. In ProvedSingleUniform (DccMetadata.cpp:770):

const auto size = static_cast<std::size_t>(std::min<std::uint64_t>(buffer.size(), guestBytes - offset));
GuestMemory::ReadCommitted(resource.baseAddress + offset, buffer);

The read uses the whole buffer, not size. Since the loop starts at offset 256, the last read always ends past baseAddress + guestBytes: by 256 bytes when guestBytes is a multiple of 1 MiB, and by up to about 1 MiB otherwise. With a temporary print before that line, the test's call logged guestBytes=65536 offset=256 size=65280 read=65536 past_end=256. The comparison only uses the first size bytes, so the result is unaffected, but ReadCommitted runs FlushGpuWrites and the read guard over the extra range, which can belong to a neighbouring resource. buffer.data(), size (or std::span(buffer).first(size)) keeps the read inside the surface.

Not run: AMD, Windows, any title, the performance claim.

GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

Both fixed, thank you for the precise reports and for the past_end=256 measurement, which made the second one unambiguous.

1. Fast clear now has a direct test (third commit, test(agc): cover the uniform single-key DCC clear). RunUniformSingleClear lays out a surface whose every 256-byte block starts with the same color, so ProvedSingleUniform holds and upload clears on the GPU. It checks both halves of the contract:

  • The upload is charged as a GPU clear: ThreadLookupOutcomes().counts[UploadClear] increments and UploadCpu does not. This is the mutation guard you asked for, with ProvedSingleUniform forced to return false the case fails with uniform single-key clear: the first write read the surface and uploaded it instead of clearing it on the GPU (verified locally; whichever block it runs on first, unwatched or write-watched). The counter was the only signal that works on every machine: on my box the write watch does not survive the import, so the GuestSnapshotValid check alone could not tell the paths apart.
  • The write-back texels are the kernel's writes or the proved color, and the keys land uncompressed, so a wrong element read, pattern replication or FillClearColor value fails the case.

2. The chunk read is bounded to the surface. ProvedSingleUniform now reads std::span(buffer).first(size), so the gather never reads past baseAddress + guestBytes — no read guard or FlushGpuWrites over a neighbour's memory. The comparison logic is unchanged.

Both commits are on the updated head (275008a34), rebased onto current main (c0a7468f6). agc_driver_dcc_keys_first_write passes; the perf commit alone still fails it 3/3 as you measured.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6243243436 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6848#issuecomment-6243243436). Originally posted by [NFSS10](https://github.com/NFSS10) on 2026-10-17T23:42:44Z. --- > Linux run on NVIDIA and lavapipe, plus two things I found in the new path. > > **Machine:** Linux, NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8). Ubuntu 26.04, i7-8700, GCC 15.2, Release. Head `dc4fb7fd9` merged into `main` `66e290f1c` (clean). > > * `agc_dcc_key_sharing`, `agc_driver_dcc_keys_first_write`, `agc_driver_graphics`: pass 3/3 on the RTX 3070, and pass on lavapipe. > > * With only the first commit (`c5c32f6e5`) merged, `agc_driver_dcc_keys_first_write` fails on the RTX 3070 with `16296 of 16384 written-back texels are neither the kernel's write nor the first texel of their 256-byte block`, as you describe. So that test guards against clearing without the proof. > > > **1. No test reaches the fast clear.** With `ProvedSingleUniform` changed to `return false;` on its first line, the three tests above still pass. The only call in them is for `agc_driver_dcc_keys_first_write`'s 64 KiB surface, which is not uniform. A wrong clear colour from `SingleKeyColorFor` (element read, pattern replication, `FillClearColor`) or a proof that never succeeds would not fail any test. A case with a uniform ClearSingle surface that checks the uploaded texels would cover it. > > **2. The chunk read goes past the surface.** In `ProvedSingleUniform` (`DccMetadata.cpp:770`): > > ```c++ > const auto size = static_cast<std::size_t>(std::min<std::uint64_t>(buffer.size(), guestBytes - offset)); > GuestMemory::ReadCommitted(resource.baseAddress + offset, buffer); > ``` > > The read uses the whole `buffer`, not `size`. Since the loop starts at offset 256, the last read always ends past `baseAddress + guestBytes`: by 256 bytes when `guestBytes` is a multiple of 1 MiB, and by up to about 1 MiB otherwise. With a temporary print before that line, the test's call logged `guestBytes=65536 offset=256 size=65280 read=65536 past_end=256`. The comparison only uses the first `size` bytes, so the result is unaffected, but `ReadCommitted` runs `FlushGpuWrites` and the read guard over the extra range, which can belong to a neighbouring resource. `buffer.data(), size` (or `std::span(buffer).first(size)`) keeps the read inside the surface. > > Not run: AMD, Windows, any title, the performance claim. > > GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04 > > Written with AI assistance (Claude Code). I ran the builds and tests above on my machine. Both fixed, thank you for the precise reports and for the `past_end=256` measurement, which made the second one unambiguous. **1. Fast clear now has a direct test** (third commit, `test(agc): cover the uniform single-key DCC clear`). `RunUniformSingleClear` lays out a surface whose every 256-byte block starts with the same color, so `ProvedSingleUniform` holds and `upload` clears on the GPU. It checks both halves of the contract: - The upload is charged as a GPU clear: `ThreadLookupOutcomes().counts[UploadClear]` increments and `UploadCpu` does not. This is the mutation guard you asked for, with `ProvedSingleUniform` forced to `return false` the case fails with `uniform single-key clear: the first write read the surface and uploaded it instead of clearing it on the GPU` (verified locally; whichever block it runs on first, unwatched or write-watched). The counter was the only signal that works on every machine: on my box the write watch does not survive the import, so the `GuestSnapshotValid` check alone could not tell the paths apart. - The write-back texels are the kernel's writes or the proved color, and the keys land uncompressed, so a wrong element read, pattern replication or `FillClearColor` value fails the case. **2. The chunk read is bounded to the surface.** `ProvedSingleUniform` now reads `std::span(buffer).first(size)`, so the gather never reads past `baseAddress + guestBytes` — no read guard or `FlushGpuWrites` over a neighbour's memory. The comparison logic is unchanged. Both commits are on the updated head (`275008a34`), rebased onto current `main` (`c0a7468f6`). `agc_driver_dcc_keys_first_write` passes; the perf commit alone still fails it 3/3 as you measured.
CPritch commented 2026-10-20 07:25:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CPritch on 2026-10-20T07:25:12Z.


Ran this on GTA V (PPSA04263 01.010.002), Linux 7.2.8-zen1-2-zen, NVIDIA GeForce RTX 5060 Laptop GPU, NVIDIA 615.71.09, Graphics Mode Performance, the Story prologue after Resume Story, with no input.
main eaa5c9238 against main eaa5c9238 + #6848 at 275008a34, same machine and session, two runs each in the order A B A B, window frames 3500:700, caches warm, APS5_TRACE_EVENTS=4194304 (BUILD.md's remedy for full trace buffers), no other APS5_TRACE_* or APS5_PROFILE_* switch, log not redirected. The harness navigates the menus from frame dumps in boot and load to present 3300 (APS5_DUMP_FRAMES=110, every 30 presents), which stop before the window.

Frame p50: main 81.5, 81.4 ms, with #6848 78.0, 78.5 ms (-3.2 ms, -3.9 %). GPU busy per present: 64.6 and 65.8 ms.
Not tested: other scenes, Fidelity mode, other GPUs.
Written with AI assistance (Claude Code); measured on the machine above.

Summary lines (main, then the PR):
{"commit":"eaa5c9238687","dirty":false,"env":{"APS5_DUMP_FRAMES":"110","APS5_DUMP_FRAMES_EVERY":"30","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_FRAMES":"3500:700"},"gpu":"NVIDIA GeForce RTX 5060 Laptop GPU","driver":"NVIDIA 615.71.09","os":"Linux 7.2.8-zen1-2-zen","resolution":"3840x2160","window":{"spec":"frames 3500:700","first_present":3500,"ms":58201.614},"presents":700,"frame_ms":{"p50":81.458,"p90":92.441,"p99":119.244,"max":154.395},"gpu_busy_ms_per_present":64.095,"worker_busy_pct":{"queue worker 0x0":3681.528},"top_phases_ms_per_frame":{"Driver.EndSubmission":2993.481,"Driver.Packet":65.187,"Graphics.Draw":61.021,"Graphics.Draw.draw_and_resource_release":57.137,"Driver.Packet.draw":51.674,"Driver.Draw":51.445,"VideoOut.Flip":25.405,"Driver.Present":25.388},"trace_dropped":false,"trace":"aps5-trace-eaa5c9238687-1140752.json.gz"}
{"commit":"ed8a97164af4","dirty":false,"env":{"APS5_DUMP_FRAMES":"110","APS5_DUMP_FRAMES_EVERY":"30","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_FRAMES":"3500:700"},"gpu":"NVIDIA GeForce RTX 5060 Laptop GPU","driver":"NVIDIA 615.71.09","os":"Linux 7.2.8-zen1-2-zen","resolution":"3840x2160","window":{"spec":"frames 3500:700","first_present":3500,"ms":55565.167},"presents":700,"frame_ms":{"p50":78.047,"p90":86.715,"p99":109.594,"max":133.464},"gpu_busy_ms_per_present":65.694,"worker_busy_pct":{"queue worker 0x0":3554.653},"top_phases_ms_per_frame":{"Driver.EndSubmission":2760.572,"Driver.Packet":58.866,"Graphics.Draw":57.655,"Graphics.Draw.draw_and_resource_release":53.98,"Driver.Packet.draw":45.788,"Driver.Draw":45.572,"VideoOut.Flip":26.917,"Driver.Present":26.906},"trace_dropped":false,"trace":"aps5-trace-ed8a97164af4-1149197.json.gz"}

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6285695945 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6848#issuecomment-6285695945). Originally posted by [CPritch](https://github.com/CPritch) on 2026-10-20T07:25:12Z. --- Ran this on GTA V (PPSA04263 01.010.002), Linux 7.2.8-zen1-2-zen, NVIDIA GeForce RTX 5060 Laptop GPU, NVIDIA 615.71.09, Graphics Mode Performance, the Story prologue after Resume Story, with no input. main eaa5c9238 against main eaa5c9238 + #6848 at 275008a34, same machine and session, two runs each in the order A B A B, window frames 3500:700, caches warm, APS5_TRACE_EVENTS=4194304 (BUILD.md's remedy for full trace buffers), no other APS5_TRACE_* or APS5_PROFILE_* switch, log not redirected. The harness navigates the menus from frame dumps in boot and load to present 3300 (APS5_DUMP_FRAMES=110, every 30 presents), which stop before the window. Frame p50: main 81.5, 81.4 ms, with #6848 78.0, 78.5 ms (-3.2 ms, -3.9 %). GPU busy per present: 64.6 and 65.8 ms. Not tested: other scenes, Fidelity mode, other GPUs. Written with AI assistance (Claude Code); measured on the machine above. Summary lines (main, then the PR): {"commit":"eaa5c9238687","dirty":false,"env":{"APS5_DUMP_FRAMES":"110","APS5_DUMP_FRAMES_EVERY":"30","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_FRAMES":"3500:700"},"gpu":"NVIDIA GeForce RTX 5060 Laptop GPU","driver":"NVIDIA 615.71.09","os":"Linux 7.2.8-zen1-2-zen","resolution":"3840x2160","window":{"spec":"frames 3500:700","first_present":3500,"ms":58201.614},"presents":700,"frame_ms":{"p50":81.458,"p90":92.441,"p99":119.244,"max":154.395},"gpu_busy_ms_per_present":64.095,"worker_busy_pct":{"queue worker 0x0":3681.528},"top_phases_ms_per_frame":{"Driver.EndSubmission":2993.481,"Driver.Packet":65.187,"Graphics.Draw":61.021,"Graphics.Draw.draw_and_resource_release":57.137,"Driver.Packet.draw":51.674,"Driver.Draw":51.445,"VideoOut.Flip":25.405,"Driver.Present":25.388},"trace_dropped":false,"trace":"aps5-trace-eaa5c9238687-1140752.json.gz"} {"commit":"ed8a97164af4","dirty":false,"env":{"APS5_DUMP_FRAMES":"110","APS5_DUMP_FRAMES_EVERY":"30","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_FRAMES":"3500:700"},"gpu":"NVIDIA GeForce RTX 5060 Laptop GPU","driver":"NVIDIA 615.71.09","os":"Linux 7.2.8-zen1-2-zen","resolution":"3840x2160","window":{"spec":"frames 3500:700","first_present":3500,"ms":55565.167},"presents":700,"frame_ms":{"p50":78.047,"p90":86.715,"p99":109.594,"max":133.464},"gpu_busy_ms_per_present":65.694,"worker_busy_pct":{"queue worker 0x0":3554.653},"top_phases_ms_per_frame":{"Driver.EndSubmission":2760.572,"Driver.Packet":58.866,"Graphics.Draw":57.655,"Graphics.Draw.draw_and_resource_release":53.98,"Driver.Packet.draw":45.788,"Driver.Draw":45.572,"VideoOut.Flip":26.917,"Driver.Present":26.906},"trace_dropped":false,"trace":"aps5-trace-ed8a97164af4-1149197.json.gz"}
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!6848
No description provided.