Skip to content

feat(agc): add opt-in bounded submission progress - #7307

Merged
adriadam10 merged 5 commits into
boykopovar:mainfrom
Zenodeon:agc-submit-progress-pr
Oct 24, 2026
Merged

adriadam10 merged 5 commits into
boykopovar:mainfrom
Zenodeon:agc-submit-progress-pr

Conversation

@Zenodeon

@Zenodeon Zenodeon commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

What

Add experimental, off-by-default APS5_SUBMIT_PROGRESS=1 pacing for eligible graphics-queue submissions. A guest that immediately polls a terminal GPU release can otherwise return from submit before its small batch is recorded, miss the release, and enter another sleep/poll cycle.

An internal per-submission ticket acknowledges the recorded prefix and its actual recorder timeline. The submitting call shares a nominal two-millisecond budget between waiting for that acknowledgement and waiting for that specific timeline value. Expiry or an unavailable timeline retains asynchronous acceptance; neither reports GPU completion nor retires work. OS scheduling can overshoot the requested timeout. No whole-device wait, guest sleep change, exported API/NID change, or shader change is added.

Eligibility excludes flips, conditional ranges and unproven CP waits. A preceding nonpredicated literal memory write may prove a 32/64-bit wait's compared bytes using the existing PM4 comparison; the real wait still executes. Unknown writes and intervening GPU draw/dispatch work discard that proof. A final REWIND acknowledges only its finite prefix: its continuation and logical completion remain blocked until the guest releases them. Current-main queue-zero completion wakeups are retained.

This is a standalone extraction of the local SuperTuxKart PPSA69421 experiment. No resource-ownership, residency, selected-image-import, write-watch, game configuration or shader experiment is included. No dependency on our earlier PRs is needed.

Overlap: #6507 is now merged and its queue-zero behavior is retained after rebasing. #6867 remains separate work on waiting for shader preparations referenced by a submission; it is not included and is not a dependency.

Tested

Rebased onto upstream main 85029a00f526a80318dfd1ead199cf021a99236b; candidate a2ca686a7d06d1b00fd36af1f051c1ee1e4acab3.

Windows 11 Pro 10.0.26200, Core i7-13700, 32 GiB RAM, NVIDIA RTX 4070 12 GiB, NVIDIA driver 610.88. GCC 15.2.0 (WinLibs MinGW-w64 UCRT), CMake/Ninja, Release, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=ON, ANYPS5_VIDEO_OUT_TEST_DRIVER=windows, bundled dependencies. Complete libraries and matching relinkers were rebuilt and frozen separately; executable, converter and all 356 runtime-library/DLL hashes were checked locally before each launch.

Review fixes:

  • Removed the ready >= 48 and prefixesReady >= 12 timing thresholds. Readiness counts are observations only. Genuine completion stores, neighboring-byte preservation, CPU-written high words, finite REWIND prefix/continuation sequencing, genuine CPU-dependent waits, and bounded return remain checked.
  • Removed the custom debt heading. Only the actual unverified budget and cross-title behavior remain under the existing Functional heading.
  • Registered APS5_SUBMIT_PROGRESS in the environment documentation. The feature remains off by default.

Fresh source validation on the same machine/GPU used ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and verbose CTest:

  • Candidate: 6/6 pass (agc_submit_progress, agc_submit_progress_no_timeline, agc_driver_submit_progress, agc_driver_pm4, guest_nanosleep, guest_nanosleep_timer_self_test).
  • Main: 3/3 shared tests pass (PM4 and the two nanosleep checks), plus 3/3 runs of the same new progress-test fixture against clean-main libraries (feature absent, requested, and no-timeline). The fixture is not an upstream-main registered test; it uses unchanged shared interfaces.
  • All individual tests complete within 30 seconds. Both sides' logs have zero VUID- errors and no missing requested validation layer. No shader guard or guest sleep/completion semantics was weakened.
  • Observed in this synthetic run: candidate with progress enabled returned with 64/64 small dependent submissions and 16/16 finite prefixes completed; disabled/no-timeline/main runs observed 0/64 and 0/16 at return. All modes subsequently verified real completion. These are scheduler-dependent observations, not pass thresholds or game-performance evidence.
  • git diff --check and conventions against fetched upstream/main pass. The required conventions invocation against this fork's stale origin/main reports 204 inherited findings / 8 errors across the upstream history; it is not reported as a pass. No unrelated upstream files were changed to suppress them.

Clean-build timing captures

Official Marice/stk-ps5 SuperTuxKart PPSA69421, release 00.001.000; Abyss, Tux, difficulty 0, four karts, AI gnu,hexley,konqi, seed 7307, 1920×1080, fixed starting grid with no input. Original homebrew inputs were unwrapped and converted with each build's matching relinker using --windows --to-intel --registry --trap-sdk-syscall-stubs. The last flag traps recognized SDK syscall stubs if executed; syscall checking was not skipped. Assets and game code were not patched.

Main and candidate use complete clean-source runtimes, identical copied game configuration, warmed caches and separate restarts. No residency, ownership, shader or other local integration patch is included. Each capture uses only APS5_TRACE_SECONDS=60:120, plus presence of APS5_SUBMIT_PROGRESS=1 in the enabled arm. No diagnostic profiler/frame dumps, redirected game logs or input during the window. Shared GPU/font/language launch selections are identical.

Rendering limitation: clean main reaches the Abyss grid but reproduces black scenery/surfaces. The PR's timing runs reach the same launch/scene setup, but separate visual correctness acceptance was not completed. These are timings of the clean-source broken-rendering workload, not playable-performance acceptance. There is only one capture per arm; no repeatability or statistically established gain is claimed. Historical mixed-integration 12–14 FPS observations have been removed from the performance evidence.

The previously observed playable 12-14 FPS came from a combined local runtime (2f26d7b4051f), including our write-watch repair #6759, MichonGoddijn231849's resident linear-target implementation #1191, our selected-range import fix #6820, a local resource-ownership experiment, and TheAggie's separate flat-input shader patch 45944fbbe0dc. Those contributions are credited as integration context, not dependencies of this standalone PR. Their individual or cumulative speed contributions were not isolated. The old short progress-off/on pair held these other changes constant, but did not establish repeatability; it does not show that #7307 alone delivers that playable FPS on main.

Build / switch Presents / window FPS Frame p50 / p90 / p99 (ms) Trace dropped
Main / absent 166 / 120.594779 s 1.377 730.645 / 794.522 / 902.484 no
PR / absent 157 / 120.237521 s 1.306 721.311 / 833.248 / 2077.051 no
PR / enabled 174 / 120.391410 s 1.445 678.306 / 772.271 / 836.705 no

tools/trace_digest.py summary lines for these captures:

main-off: 85029a00f526, seconds 60:120 from present 87: 166 presents; p50 730.6 / p90 794.5 / p99 902.5 / max 955.9 ms; GPU busy 133.7 ms/present; dropped: no
pr-off: a2ca686a7d06, seconds 60:120 from present 90: 157 presents; p50 721.3 / p90 833.2 / p99 2077.1 / max 2095.4 ms; GPU busy 86.2 ms/present; dropped: no
pr-on: a2ca686a7d06, seconds 60:120 from present 90: 174 presents; p50 678.3 / p90 772.3 / p99 836.7 / max 837.2 ms; GPU busy 37.0 ms/present; dropped: no

These captures do not establish a repeatable standalone FPS benefit. The synthetic test demonstrates the bounded opportunity for a real eligible prefix to finish before submit returns; the costs and usefulness of that policy remain workload-dependent. Pacing can reduce useful CPU/GPU overlap. The two-millisecond budget is nominal, not hardware-derived, and host scheduling can overshoot it.

Raw traces, digests, test logs, configuration and full hash manifests are retained locally. They are not attached publicly because evidence uploads are not authorized; public raw-trace evidence requested by the template therefore remains outstanding. No fresh Linux, cross-title, completed-race or extended stability acceptance is claimed for this rebased revision. Earlier Linux/lavapipe checks were on the previous revision, not this build. This remains an opt-in experiment, not a request for default enablement.

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; investigation workload SuperTuxKart PPSA69421
  • GPUs tested: NVIDIA RTX 4070, NVIDIA 610.88, Windows 11 Pro 10.0.26200
  • AI-assisted: yes (OpenAI Codex)

@Zenodeon
Zenodeon marked this pull request as ready for review October 17, 2026 22:42
@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

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 7978 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp L139
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp L572-573
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/QueueWorker.cpp L73-74, L94, L112
PR 9685 core/libs/prx/libSceAgcDriver/CMakeLists.txt L2205-2206
PR 9879 core/libs/prx/libSceAgcDriver/CMakeLists.txt L2205-2206

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/CMakeLists.txt
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 1896 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 2434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 4040 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4072 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4448 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
docs/dev/debt/libSceAgcDriver.md
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5021 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5115 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5441 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5609 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6044 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 6187 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6194 docs/dev/debt/libSceAgcDriver.md
PR 6202 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6209 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6273 docs/dev/debt/libSceAgcDriver.md
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6300 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6481 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6539 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 6548 docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6612 docs/dev/debt/libSceAgcDriver.md
PR 6617 docs/dev/ENVIRONMENT.md
PR 6642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6867 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Queues/Submission.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/Submission.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6924 docs/dev/ENVIRONMENT.md
PR 6960 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7048 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7201 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7223 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7256 docs/dev/debt/libSceAgcDriver.md
PR 7275 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7369 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7446 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
docs/dev/debt/libSceAgcDriver.md
PR 7449 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 7457 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 7484 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 7604 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 7618 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 7668 docs/dev/debt/libSceAgcDriver.md
PR 7677 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7814 docs/dev/ENVIRONMENT.md
PR 7844 docs/dev/debt/libSceAgcDriver.md
PR 7910 docs/dev/debt/libSceAgcDriver.md
PR 8004 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 8014 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 8077 docs/dev/ENVIRONMENT.md
PR 8223 docs/dev/debt/libSceAgcDriver.md
PR 8246 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 8319 docs/dev/debt/libSceAgcDriver.md
PR 8365 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 8484 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 8542 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 8592 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 9193 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9348 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9356 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 9387 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 9393 docs/dev/debt/libSceAgcDriver.md
PR 9400 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 9431 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9432 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9508 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 9521 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9592 docs/dev/debt/libSceAgcDriver.md
PR 9669 docs/dev/ENVIRONMENT.md
PR 9672 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9673 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9674 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9675 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9676 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 9842 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9891 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9892 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9893 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9895 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9897 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9898 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 9904 docs/dev/debt/libSceAgcDriver.md
PR 9905 docs/dev/debt/libSceAgcDriver.md
PR 9906 docs/dev/debt/libSceAgcDriver.md
PR 9969 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9988 docs/dev/debt/libSceAgcDriver.md
PR 10193 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 10194 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 10231 docs/dev/ENVIRONMENT.md
PR 10244 docs/dev/ENVIRONMENT.md
PR 10254 docs/dev/ENVIRONMENT.md
PR 10264 docs/dev/ENVIRONMENT.md
PR 10272 docs/dev/ENVIRONMENT.md
PR 10420 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 10472 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 10515 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md

@github-actions github-actions Bot added the unblocks title Names a title ID on the Unblocks line label Oct 18, 2026
@adriadam10 adriadam10 self-assigned this Oct 19, 2026

@adriadam10 adriadam10 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for splitting this out. The mechanism reads as bounded and safe (timeout, prefix-only REWIND ack, flips/conditionals excluded), but a few things need fixing before it can merge:

  • No measurement on current main. The PR body says the numbers come from a frozen integration binary with other PRs and local changes, and are "not current-main versus PR measurements". A performance change needs the main vs PR summary lines from the same machine and scene, with traces, as the PR template asks. Please add that (ideally with APS5_SUBMIT_PROGRESS on and off on the same build), or say what the feature gives without the other patches.
  • Scheduler-dependent assertions in tests/execution/SubmitProgress.cpp:89 (ready >= 48 of 64) and :122 (prefixesReady >= 12 of 16). The PR body notes they are sensitive to host scheduling; on shared CI runners and lavapipe they will flake. Keep the invariants that hold regardless of timing (no lost completion store, no early REWIND continuation, bounded return) and drop or loosen the readiness counts.
  • Technical debt placement. docs/dev/debt/libSceAgcDriver.md gets a new ### Experimental submission progress section at the top, which isn't one of the file's headings, and the text describes the feature rather than a gap. Keep only what is actually unverified or deviating (e.g. the 2 ms budget is a guess, no hardware validation across titles) as short lines under the existing headings.

@Zenodeon

Zenodeon commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Follow-up to this review: the rebased fixes are now pushed at a2ca686a7, based on main 85029a00f.

  • Removed both scheduler-dependent readiness thresholds; counts remain observations. Real completion stores, neighboring memory, REWIND sequencing and bounded-return checks remain.
  • Removed the custom debt heading; the actual unverified budget/cross-title behavior is under Functional. Registered the opt-in switch in the environment documentation.
  • Fresh validation: 6/6 candidate checks pass; clean main passes the three shared checks plus the same progress fixture in three configurations. Required Vulkan validation and disabled shader caching were used on the same RTX 4070; zero VUID errors and no missing requested validation layer in either side's logs.

Clean 60-second lead-in / 120-second-window captures are now summarized in the PR body: main 1.377 FPS, PR-off 1.306, PR-on 1.445. All three traces are complete. This is one capture per arm and clean main reproduces black scenery, so these results do not establish a repeatable playable-performance gain. Raw traces remain local under the no-upload instruction; public raw-trace evidence is still outstanding.

The earlier playable 12–14 FPS was observed in a combined local runtime, not this standalone PR: our #6759 and #6820, MichonGoddijn231849's #1191, local ownership work, and TheAggie's separate shader revision. Their individual/cumulative speed contributions were not isolated. The old short progress-off/on comparison held those other changes constant, but did not establish repeatability. The PR body now credits the combined runtime and distinguishes it from standalone evidence.

The path remains off by default. No fresh cross-title, completed-race or extended stability acceptance is claimed for this rebased revision.

@Zenodeon
Zenodeon force-pushed the agc-submit-progress-pr branch from 544d5ae to a2ca686 Compare October 19, 2026 15:03

@adriadam10 adriadam10 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fixes: the readiness thresholds are gone, the debt line sits under ### Functional, and APS5_SUBMIT_PROGRESS is in ENVIRONMENT.md.

One point from the previous review is still open:

  • No measurement on current main. The PR body still only has the frozen-integration numbers, which you say are not main-vs-PR. A performance change needs the main vs PR summary lines (feature off/on on the same build, same machine and scene) with traces, as the PR template asks. You mention these captures are in progress: please put them in the PR body when done (the Abyss black-scenery limitation is fine to state), or, if you can't get a clean pair, say so and reduce the description to what the mechanism does without a performance claim.

Once the body has that, this is ready to go through the merge queue.

@Zenodeon

Copy link
Copy Markdown
Contributor Author

The clean measurements are now complete and added to Tested → Clean-build timing captures in the PR description, following the latest review.

Same machine and Abyss starting-grid setup, complete Release runtimes, warmed caches and separate restarts, 60-second lead-in followed by a 120-second capture:

Build / switch Presents / window FPS Frame p50 / p90 / p99 (ms)
Main 85029a00f 166 / 120.594779 s 1.377 730.645 / 794.522 / 902.484
PR a2ca686a7, off 157 / 120.237521 s 1.306 721.311 / 833.248 / 2077.051
PR a2ca686a7, on 174 / 120.391410 s 1.445 678.306 / 772.271 / 836.705

All three traces report no dropped events. The description includes the tools/trace_digest.py summary lines, hardware/toolchain details and configuration. These are single captures, and clean main reproduces black scenery, so they do not establish a repeatable playable-performance gain. Raw traces remain local and are not publicly attached under the owner's no-upload instruction; that part of the requested evidence remains outstanding.

The earlier playable 12–14 FPS observation came from a combined integration runtime containing #6759, MichonGoddijn231849's #1191, #6820, local ownership work and TheAggie's shader revision 45944fbbe0dc. The description now explicitly credits those contributions and does not attribute that combined result to this standalone PR. The old short off/on pair held those other changes constant but did not establish repeatability.

The review fixes are pushed at a2ca686a7: readiness counts are diagnostic only, the actual debt is under Functional, and the switch is documented in ENVIRONMENT.md. Fresh candidate checks pass 6/6; main passes three shared checks plus three runs of the same progress fixture, with zero VUID errors or missing requested validation layer. The feature remains off by default.

@Zenodeon

Copy link
Copy Markdown
Contributor Author

Thanks for clarifying the measurement requirements. We hadn’t understood that performance evidence needs a clean main-versus-PR comparison; our earlier numbers came from a combined integration runtime. We’ll keep this in mind for future PRs and compare equivalent builds on the same machine and scene, clearly separating integration observations from gains attributable to the individual change.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@adriadam10 the last point in your change request (clean main-vs-PR numbers) now looks answered in the PR description on the current head (a2ca686). The off path is identical to main, since the change is opt-in. Could you re-review when you get a chance?

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 23, 2026
@adriadam10
adriadam10 force-pushed the agc-submit-progress-pr branch from a2ca686 to 7cab8fc Compare October 24, 2026 02:24
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 24, 2026
@adriadam10
adriadam10 force-pushed the agc-submit-progress-pr branch from 7cab8fc to 954bed0 Compare October 24, 2026 07:09
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 24, 2026
@adriadam10
adriadam10 merged commit 60465af into boykopovar:main Oct 24, 2026
10 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Re-checked against current main: the branch merges cleanly with the new libSceAgcDriver/CMakeLists.txt changes, the submit-progress tests stay registered, and the mechanism is unchanged from the earlier review (opt-in, eligibility excludes flips/conditionals/unproven waits, one shared 2 ms budget, REWIND acknowledges only its finite prefix, debt under ### Functional); merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants