perf(agc): skip the binds a continued draw repeats #6077

Closed
meh7an wants to merge 1 commit from upstream-pr/6077 into main
meh7an commented 2026-10-14 21:25:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by meh7an on 2026-10-14T21:25:41Z.


What

A draw that continues the open render pass (Pipeline::Continue) binds its pipeline again, and sets the viewport, the scissor, the pipeline library's dynamic state, the depth bias and the depth bounds again. Consecutive draws of a pass usually repeat all of them.

The recorder now keeps what the open pass has bound (PassBinding). A continued draw issues only the binds and sets whose values changed. Pipeline::Begin resets the record. So does a draw that binds other pipelines inside the pass: one that splits faces or the second channel, and a stencil replay draw (recordStencilReplay binds its replay pipelines).

On the S2 page of Sonic Origins Plus's main menu, the queue worker's samples per frame (APS5 sampler, 15 s) fell as follows: Pipeline::setLibraryState 0.88 to 0.09, and Graphics::Draw 30.5 to 27.5.

Tested

Windows 11 (10.0.26300), WinLibs GCC 15.2.0 (UCRT), Release, NVIDIA GeForce RTX 2080 Ti, driver 617.14.

  • Rebased onto main 9e9d86f81. #5875 now schedules a pipeline's optimized build at the top of Pipeline::Continue, and the repeat checks compare against the handle in use, the optimized one once it is ready. On that main, with this change, the full ctest suite passes 1336 of 1339, including agc_driver_graphics, agc_driver_draw_cache_reuse (and _off), agc_driver_depth_bias_per_face, agc_driver_stencil_replay (and _no_gpl), agc_resident_present, agc_draw_snapshot_cap and agc_draw_inputs_in_place. agc_driver_stencil_ref_export is skipped on this GPU.
    • agc_driver_gpu_indirect_arguments_misaligned_writer_ahead is not run: main itself does not compile it with MinGW.
    • select_tests fails in its setup on Windows without the symlink privilege (WinError 1314 from symlink_to), as on main.
    • agc_driver_multisample_fill_host_only failed once: main's own race, #6512, which #6522 fixes. With #6522's line added it failed 0 of 200 runs (8 at a time).
  • Sonic Origins Plus, main menu, S2 page (the 3D background), 1233x694 window.
    • Captured with APS5_TRACE_SECONDS=200:5 on the same machine in one session, caches warm. Traces attached.
    • Baseline 83b4df5e9c4b, this change 61ac8fdf6bd7:
Metric Baseline This PR Change
frame_ms.p50 213.549 199.735 -6.5%
frame_ms.p90 221.183 215.546 -2.5%
mean_frame_ms 212.842 206.361 -3.0%
gpu_busy_ms_per_present 73.044 73.800 +1.0%
Driver.Packet (ms per frame) 209.989 203.552 -3.1%

The FPS shown in the title went from 5.00 to 5.30 (median of six readings).

Note: measuring base. These numbers come from main 0a56aaaf4, the last main before #5596. On Windows, later mains compare direct imports on every use, which keeps this menu at 3-4 FPS and hides a change of this size. The base also carries these commits from my fork, in both captures:

  • the fixes a71073ce3, c0d875634, e3c68960e, 604f0f373, 726827880 and 943138569 (#5778);
  • make-exe and the stage dumps (b1931a2d5, c6f670d7f);
  • the crash-report sampler (2bb4555a9..d21f22596), which took the profiles;
  • #6037 (910f3bc97), #6066 (9b08cb001), and three smaller steps kept in my fork: e75cce167, 62d3f647c and 83b4df5e9.

All of them are on measure/fresh-dev-2026-10-14: the baseline is 83b4df5e9 and this change is 61ac8fdf6.

The comparison tool marks the window's first present (2280 vs 2230) as a configuration difference: the window opens 200 s into each run. Both summaries set trace_dropped, because the worker filled its event buffer at about 2,700 draws per frame. The phase totals above stay complete.

The measured commit predates stencil replay, so the replay reset exists only in this PR's port onto main. Everything else is the same code.

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
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 2080 Ti, driver 617.14, Windows 11
  • AI-assisted: yes

Traces and summary lines (baseline 83b4df5e9c4b, this change 61ac8fdf6bd7):
binds-traces.zip

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4864753614 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6077). Originally posted by [meh7an](https://github.com/meh7an) on 2026-10-14T21:25:41Z. --- ### What A draw that continues the open render pass (`Pipeline::Continue`) binds its pipeline again, and sets the viewport, the scissor, the pipeline library's dynamic state, the depth bias and the depth bounds again. Consecutive draws of a pass usually repeat all of them. The recorder now keeps what the open pass has bound (`PassBinding`). A continued draw issues only the binds and sets whose values changed. `Pipeline::Begin` resets the record. So does a draw that binds other pipelines inside the pass: one that splits faces or the second channel, and a stencil replay draw (`recordStencilReplay` binds its replay pipelines). On the S2 page of Sonic Origins Plus's main menu, the queue worker's samples per frame (APS5 sampler, 15 s) fell as follows: `Pipeline::setLibraryState` 0.88 to 0.09, and `Graphics::Draw` 30.5 to 27.5. ### Tested Windows 11 (10.0.26300), WinLibs GCC 15.2.0 (UCRT), Release, NVIDIA GeForce RTX 2080 Ti, driver 617.14. - Rebased onto main 9e9d86f81. #5875 now schedules a pipeline's optimized build at the top of `Pipeline::Continue`, and the repeat checks compare against the handle in use, the optimized one once it is ready. On that main, with this change, the full ctest suite passes 1336 of 1339, including `agc_driver_graphics`, `agc_driver_draw_cache_reuse` (and `_off`), `agc_driver_depth_bias_per_face`, `agc_driver_stencil_replay` (and `_no_gpl`), `agc_resident_present`, `agc_draw_snapshot_cap` and `agc_draw_inputs_in_place`. `agc_driver_stencil_ref_export` is skipped on this GPU. - `agc_driver_gpu_indirect_arguments_misaligned_writer_ahead` is not run: main itself does not compile it with MinGW. - `select_tests` fails in its setup on Windows without the symlink privilege (`WinError 1314` from `symlink_to`), as on main. - `agc_driver_multisample_fill_host_only` failed once: main's own race, #6512, which #6522 fixes. With #6522's line added it failed 0 of 200 runs (8 at a time). - Sonic Origins Plus, main menu, S2 page (the 3D background), 1233x694 window. - Captured with `APS5_TRACE_SECONDS=200:5` on the same machine in one session, caches warm. Traces attached. - Baseline 83b4df5e9c4b, this change 61ac8fdf6bd7: | Metric | Baseline | This PR | Change | | --- | ---: | ---: | ---: | | frame_ms.p50 | 213.549 | 199.735 | -6.5% | | frame_ms.p90 | 221.183 | 215.546 | -2.5% | | mean_frame_ms | 212.842 | 206.361 | -3.0% | | gpu_busy_ms_per_present | 73.044 | 73.800 | +1.0% | | Driver.Packet (ms per frame) | 209.989 | 203.552 | -3.1% | The FPS shown in the title went from 5.00 to 5.30 (median of six readings). > **Note: measuring base.** These numbers come from main 0a56aaaf4, the last main before #5596. On Windows, later mains compare direct imports on every use, which keeps this menu at 3-4 FPS and hides a change of this size. The base also carries these commits from my fork, in both captures: > - the fixes a71073ce3, c0d875634, e3c68960e, 604f0f373, 726827880 and 943138569 (#5778); > - make-exe and the stage dumps (b1931a2d5, c6f670d7f); > - the crash-report sampler (2bb4555a9..d21f22596), which took the profiles; > - #6037 (910f3bc97), #6066 (9b08cb001), and three smaller steps kept in my fork: e75cce167, 62d3f647c and 83b4df5e9. > > All of them are on [measure/fresh-dev-2026-10-14](https://github.com/meh7an/AnyPS5/commits/measure/fresh-dev-2026-10-14): the baseline is 83b4df5e9 and this change is 61ac8fdf6. > > The comparison tool marks the window's first present (2280 vs 2230) as a configuration difference: the window opens 200 s into each run. Both summaries set `trace_dropped`, because the worker filled its event buffer at about 2,700 draws per frame. The phase totals above stay complete. > > The measured commit predates stencil replay, so the replay reset exists only in this PR's port onto main. Everything else is the same code. ### 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] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 2080 Ti, driver 617.14, Windows 11 - [x] AI-assisted: yes Traces and summary lines (baseline 83b4df5e9c4b, this change 61ac8fdf6bd7): [binds-traces.zip](https://github.com/user-attachments/files/33459602/binds-traces.zip)
Dextroid17 commented 2026-10-14 22:02:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-14T22:02:19Z.


Measured on this branch (a0ea880fe, 4 commits behind main), default CMake build (CMAKE_BUILD_TYPE empty, so unoptimized), lavapipe (llvmpipe), CachyOS Linux 7.2.9, built without errors: these 7 targets pass, one run each: agc_driver_graphics_tests, agc_driver_draw_cache_reuse_tests, agc_driver_depth_bias_per_face_tests, agc_driver_stencil_replay_tests, agc_driver_stencil_ref_export_tests, agc_driver_prepared_graphics_tests, agc_driver_prepared_unregistered_graphics_tests.

I read the diff. The pass-bound record is reset in Begin, and after a draw that binds other pipelines (face split, second channel, stencil replay), and the library state is always re-set when stencilReplayReference is present.

Limits: no new test checks that a repeated bind is skipped or that a changed value is re-issued, so these passes show no regression in the existing tests but not that the skip logic is right. I did not mutation-check it, did not measure the performance claim (the PR's numbers are from an RTX 2080 Ti on Windows), and did not repeat the runs.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6179462565 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6077#issuecomment-6179462565). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-14T22:02:19Z. --- Measured on this branch (a0ea880fe, 4 commits behind main), default CMake build (CMAKE_BUILD_TYPE empty, so unoptimized), lavapipe (llvmpipe), CachyOS Linux 7.2.9, built without errors: these 7 targets pass, one run each: `agc_driver_graphics_tests`, `agc_driver_draw_cache_reuse_tests`, `agc_driver_depth_bias_per_face_tests`, `agc_driver_stencil_replay_tests`, `agc_driver_stencil_ref_export_tests`, `agc_driver_prepared_graphics_tests`, `agc_driver_prepared_unregistered_graphics_tests`. I read the diff. The pass-bound record is reset in `Begin`, and after a draw that binds other pipelines (face split, second channel, stencil replay), and the library state is always re-set when `stencilReplayReference` is present. Limits: no new test checks that a repeated bind is skipped or that a changed value is re-issued, so these passes show no regression in the existing tests but not that the skip logic is right. I did not mutation-check it, did not measure the performance claim (the PR's numbers are from an RTX 2080 Ti on Windows), and did not repeat the runs. AI-assisted: yes
github-actions[bot] commented 2026-10-15 12:14:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:14:16Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 6683 core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp L7

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1368 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 1896 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 4072 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5390 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5431 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 5441 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5499 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 5925 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 6215 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 6222 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 6279 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6373 core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 6379 core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 6539 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 6612 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 6658 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 6718 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6763 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191787242 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6077#issuecomment-6191787242). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:14:16Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp` [L7](https://github.com/boykopovar/AnyPS5/blob/7d728b1098fc30952be4061a8fcd83dbe7c7af70/core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp#L7) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 1896](https://www.github.com/boykopovar/AnyPS5/pull/1896) | `core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp` | | [PR 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 5390](https://www.github.com/boykopovar/AnyPS5/pull/5390) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 5431](https://www.github.com/boykopovar/AnyPS5/pull/5431) | `core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp` | | [PR 5441](https://www.github.com/boykopovar/AnyPS5/pull/5441) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 5609](https://www.github.com/boykopovar/AnyPS5/pull/5609) | `core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp` | | [PR 6215](https://www.github.com/boykopovar/AnyPS5/pull/6215) | `core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp` | | [PR 6222](https://www.github.com/boykopovar/AnyPS5/pull/6222) | `core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp` | | [PR 6279](https://www.github.com/boykopovar/AnyPS5/pull/6279) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 6373](https://www.github.com/boykopovar/AnyPS5/pull/6373) | `core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp` | | [PR 6379](https://www.github.com/boykopovar/AnyPS5/pull/6379) | `core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp` | | [PR 6539](https://www.github.com/boykopovar/AnyPS5/pull/6539) | `core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp` | | [PR 6612](https://www.github.com/boykopovar/AnyPS5/pull/6612) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp` | | [PR 6658](https://www.github.com/boykopovar/AnyPS5/pull/6658) | `core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp` | | [PR 6718](https://www.github.com/boykopovar/AnyPS5/pull/6718) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 6763](https://www.github.com/boykopovar/AnyPS5/pull/6763) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` |
oneandonlydean commented 2026-10-16 23:29:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-16T23:29:29Z.


The rebased head still has no test for what this changes. I'd like one that continues a draw with the same pipeline, viewport, scissor and depth/stencil state and checks the binds are skipped, then changes one field at a time and checks each change is reissued. #5609 changes the same five files (it conflicts with this in Pipeline.hpp, Pipeline.cpp, Recorder.hpp and Draw.cpp), so please agree with its author which one goes first and declare it with Depends on.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6226614671 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6077#issuecomment-6226614671). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-16T23:29:29Z. --- The rebased head still has no test for what this changes. I'd like one that continues a draw with the same pipeline, viewport, scissor and depth/stencil state and checks the binds are skipped, then changes one field at a time and checks each change is reissued. #5609 changes the same five files (it conflicts with this in `Pipeline.hpp`, `Pipeline.cpp`, `Recorder.hpp` and `Draw.cpp`), so please agree with its author which one goes first and declare it with **Depends on**.
meh7an commented 2026-10-16 23:42:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by meh7an on 2026-10-16T23:42:14Z.


Thanks for the reviews. I'm closing this one, since #5609 (@TheAggie) was opened before it and already skips the same binds in 18acdbf4a ("skip unchanged dynamic state between draws of an open pass"). I missed it because its title is about buffer base relocation.

Both PRs keep the pass's last-bound state per command buffer and reset it when a pass begins and after the back-face and second-channel draws. Both skip the pipeline bind, viewport, scissor and library state that a continued draw repeats.

The one difference is that this PR also skips vkCmdSetDepthBias and vkCmdSetDepthBounds on pipelines without libraries, where #5609 filters only with libraries. If that is wanted, I can open it as a small follow-up on top of #5609 once it lands, with the skip-and-reissue test asked for here.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6226763601 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6077#issuecomment-6226763601). Originally posted by [meh7an](https://github.com/meh7an) on 2026-10-16T23:42:14Z. --- Thanks for the reviews. I'm closing this one, since #5609 (@TheAggie) was opened before it and already skips the same binds in 18acdbf4a ("skip unchanged dynamic state between draws of an open pass"). I missed it because its title is about buffer base relocation. Both PRs keep the pass's last-bound state per command buffer and reset it when a pass begins and after the back-face and second-channel draws. Both skip the pipeline bind, viewport, scissor and library state that a continued draw repeats. The one difference is that this PR also skips `vkCmdSetDepthBias` and `vkCmdSetDepthBounds` on pipelines without libraries, where #5609 filters only with libraries. If that is wanted, I can open it as a small follow-up on top of #5609 once it lands, with the skip-and-reissue test asked for here.

Pull request closed

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!6077
No description provided.