Repository navigation
perf(agc): remove fixed per-draw clock reads, owner copies and allocations - #16753
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The census replaces operator new in the test executable and counts what a fixed number of repeated draws or dispatches allocate beyond a baseline run. It runs where the driver shares that operator new and reports itself skipped on Windows. Its tests run without the Vulkan validation layer, whose own allocations the replaced operator new would count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A dispatch reserves its user data and snapshot lists, and keeps its one or two shader memory regions in a fixed array. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Color export slots are at most eight, so their list lives inline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ling Each census shape has a plain and a pipelined ceiling about 2.5 allocations and 250 bytes above its measured count per operation, so a regression of a few allocations per draw or dispatch fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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.
|
gabichuuuuu
left a comment
There was a problem hiding this comment.
Windows check of head 656c08e951 on the NVIDIA laptop GPU (driver 610) and the Intel iGPU in the same machine, the two cells the description doesn't have. Merged onto main 6b733c4ef2 (clean), with main from the same build directory as the control. Windows 11 x64, WinLibs GCC 15.2.0 r7, Release, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest -R '^agc_driver_(recorded_draw_retention|draw_allocations|vertex_target_range|host_allocator)', 3 runs per GPU.
| NVIDIA | Intel | |
|---|---|---|
main (3 tests) |
pass | pass |
| this PR (8 tests) | 6 pass, 2 skipped, 3 of 3 runs | 6 pass, 2 skipped, 3 of 3 runs |
- Passing on both GPUs:
recorded_draw_retention,host_allocator,vertex_target_range_copied,vertex_target_range_imported, and the new_copied_release_threadand_imported_release_thread. agc_driver_draw_allocationsandagc_driver_draw_allocations_draw_pipelineskip on Windows by design (draw allocations: skipped, the driver allocates through its own operator new in a DLL that this census cannot interpose), so this run says nothing about the allocation counts, which are the core of the perf claim. Only the Linux runs cover that.- Not run with
VK_LAYER_KHRONOS_validation.
AI-assisted: yes.
|
Hi @chitters2004, this branch conflicted with main in Graphics/src/Draw.cpp (main changed the recipe draw path to patch push constants right where you switched targets and slices to spans). I merged main 49f3653 in and kept both sides, as 6341530: your span targets/slices plus main's patched local push-constant copy. The agc graphics, recorder, draw, recipe, frame replay, dispatch and shader resources tests pass locally (80/80). No changes to your code. |
|
Hi @chitters2004, we merged current main into your branch again so it can merge (8d8ee76). The only conflict was in Graphics/src/Draw.cpp, in the RecordedDraw struct: main added a |
|
Full-topic Linux check of head Focused tests: baseline 16/16, change initially 22/23. All 16 shared cases and six other additions passed, including untimed clocks, recorded ownership and release-thread cases. Logs show 8/10 validation-layer insertions and zero VUIDs. The three allocation-census cases explicitly disable validation as your CMake requests; their results are not validated-Vulkan coverage. RX 6650 XT, RADV/Mesa 26.2.7, Linux 7.2.14, validation 1.4.363. Allocation reduction: I also compiled your identical
Both diagnostic runs completed the actual draw/compute output checks. Baseline strict control fails the recurring-allocation gate (50 > 42 on auto draw), as expected. The recurring counts fall 50→42 for auto draw, 52→44 for guest indices, and 17→10 for dispatch. Intermittent census failure preserved: the initial plain candidate run measured 47.027 allocations/indexed draw against 45.1, while recurring 44 met its limit 44. Six subsequent unchanged strict runs passed all original ceilings and output checks, including two separate fresh private Mesa caches and a warm reuse. Cold cache alone did not reproduce it. Cold auto-draw aggregate totals also varied (37.074/39.340 versus warm 42.504) while recurring 42 remained stable, so the subtraction windows merit investigation. I have not changed ceilings or called this failure fixed. The NO_LIMIT diagnostics above are not passing budget gates. Source patches, fixture, exact commands/environments, manifests, matched logs and original failed result — SHA-256 Native follow-up — one quiet pair: same conditional baseline (main
Both native runs exited normally, with exact frozen driver mappings and all cleanup/provenance guards passing. Whole-harness host samples show zero build jobs and zero focus loss; neither trace has a dropped flag or event-loss marker. Draw/pipeline/GPU profiling flags were absent, with identical Observed FPS difference is −3.30% in this single inspection-scene pair: it demonstrates no FPS benefit here, and does not establish a general regression. The original A1/B1 pair was rejected for active background compilation and is excluded. Raw CPU trace event counts are duration-filtered at 20 μs and must not be treated as draw counts. Raw summary lines/event traces, four scene captures, host samples, commands, source manifests and quality checks — SHA-256 AI-assisted: yes |
ShaderResources: this branch makes the draw bindings lazily, so main's in-place dispatch view creates them before its push, and the early return also requires no in-place views (main's condition).
The census subtracts the allocations of a window of short submissions from a window of long ones. The first submission of each shape links its pipeline and queues a link-time-optimized relink on the pipeline library worker. With a cold driver cache that relink compiles (ACO on RADV, LLVM on llvmpipe) for long enough to finish inside either window, so the per-draw total moved by hundreds of allocations while the per-site "every draw" count stayed put: 47.0 against a 45.1 ceiling when it landed in the long window, 37.1 or 39.3 instead of 42.5 when it landed in the short one. Driver::SettledPipelineLibraryWork waits for registration preparation, library prebuilds and queued relinks, and returns how many library parts, links and relinks the device has made. The census settles after the first submission, warms the optimized pipeline the draws then bind, and requires the count to be unchanged across both windows, so any pipeline library work inside them fails by name instead of skewing the total. Ceilings are unchanged.
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
The reviewed changes at a8494f2612f643a031c9838550b7f4876417be0b show no verified blocking defect in the inspected code; review coverage is incomplete, so approval is not justified.
What I ran
No commands were run; repository source was inspected through repo_read.py at the pinned head. I read description.md, commits.md, manifest.json, and the first 900 lines of diff.patch. The prepared files.json was not available through the reader interface.
Results
| Check | Result | Note |
|---|---|---|
| Source review | not run | Partial targeted inspection only |
| Tests | not run | No tests executed |
| Review coverage | not run | Several changed files remain unread |
Findings
Blocking
None verified in the inspected code.
Non-blocking
No findings from the inspected code.
Not verified
I did not read the complete diff, all changed source files, or all tests. In particular, full contents of ShaderResources.cpp, Texture.cpp, Graphics.cpp, and Recorder.cpp were not reviewed. I also did not verify test results reported in the PR description or run checks locally. The manifest shows 27 changed files; only selected sections of the diff and source were inspected, so behavior outside those sections is not verified.
To get this to a good state
Nothing is required. The optional next step is to complete review of the remaining changed files and diff sections before making a formal approval decision.
|
@JJenkx Thanks for the full-topic check, and for keeping the failed run instead of rerunning it away. It found a real flake in the census. What made the 47.0. The first submission of each shape links its pipeline from libraries and queues a link-time-optimized relink on the pipeline-library worker thread. On a cold cache that relink is a real compile, and it finished inside whichever census window happened to be open. Your logs show both cases:
Whether it shows depends on when the compile finishes, which is why a fresh cache alone didn't reproduce it. What changed (
So pipeline-library work inside a window fails the test by name instead of shifting the total. The ceilings are unchanged. Checks on fork CI (llvmpipe, with the Mesa shader cache disabled, so every process compiles cold):
Not run: RADV, which is where your failure was. A re-run of the census tests on this head on your machine would close that. On the −3.3% pair. Agreed, it shows no frame-rate benefit in that scene. It's a GPU-bound object-inspection screen at about 9 fps (87-89 ms of GPU work per 108-111 ms present), so per-draw CPU savings can't reach the frame time there. As you said, one pair isn't evidence of a regression either. AI-assisted: yes |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the available source and test evidence supports merging, though some changed files were not fully inspected.
What I ran
Reviewed head ba3289b7dccfdf1e14f427d4cd257933b8e404dc using the prepared bundle and pinned reader. No tests or build commands were run.
Results
| Check | Result | Note |
|---|---|---|
| Diff and targeted source review | passed | Key retention, owner lookup, and inline-list paths inspected |
| Build and tests | not run | Author-reported CI and measurements were not independently run |
| Full file coverage | not run | Several changed files were not read in full |
Findings
Blocking
None identified in the code inspected.
Non-blocking
None.
Not verified
The review bundle listed 27 changed repository files. I read DrawPipeline.hpp, Driver.hpp, Dispatch.cpp, DispatchAhead.cpp, Draw.cpp, DrawPipeline.cpp, ShaderRegistry.cpp, InlineList.hpp, Pipeline.hpp, Recorder.hpp, ShaderResources.hpp, Graphics/src/Draw.cpp, Graphics/src/Pipeline.cpp, Graphics/src/Recorder.cpp, targeted changed ranges of Graphics/src/ShaderResources.cpp and Graphics/src/Texture.cpp, DrawPipelineProfile.cpp, targeted changed ranges of tests/Graphics.cpp and tests/Recorder.cpp, HostAllocator.cpp, RecorderKeptBytes.cpp, agc_driver_draw_allocations_tests.cmake, agc_driver_graphics_tests.cmake, agc_driver_host_allocator_tests.cmake, agc_driver_pipeline_profile_tests.cmake, agc_driver_recorder_tests.cmake, tests/execution/DrawAllocations.cpp, tests/execution/TableIndexValidation.cpp, and docs/dev/ENVIRONMENT.md. Graphics/src/ShaderResources.cpp and Graphics/src/Texture.cpp were read only around changed hunks; tests/Graphics.cpp and tests/Recorder.cpp were checked only for their changed hunks via the diff and not read in full. No other changed files were excluded by the bundle. Behavior outside the inspected ranges, compilation, and test results at this exact head were not independently verified. The description reports successful focused tests and CI, but those are author-reported results.
To get this to a good state
Nothing is required.
|
Independent gameplay measurement of this PR on Windows, for what it is worth to the review. Setup. RTX 3080 Ti, NVIDIA 610.88, Windows 10.0.26300, Ryzen 9 3900X, 3840x2160 SDR, validation off. Current
Both B runs are faster than both A runs: about 10.9 vs 10.0 FPS on average, p50 about 91.6 vs 99.7 ms. The scene is bound by queue 0 and the draw committer (the queue worker is about 96 % busy and spends a large share of that waiting for the committer). With this PR the committer's Summary lines (paths replaced, title identity removed); the raw traces stay private because they identify the title. {"run":"A1","commit":"360c1e868c22","dirty":false,"env":{"APS5_FORCE_SDR":"1","APS5_LOG_TIMESTAMPS":"1","APS5_NET_DISCONNECTED":"1","APS5_NO_PAD_INPUT":"1","APS5_OUTPUT_RESOLUTION":"3840x2160","APS5_PAD_INPUT_FILE":"<path>","APS5_SCREENSHOT_TRIGGER":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"0:20","APS5_TRACE_TRIGGER_FILE":"<path>"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 610.88","os":"Windows 10.0.26300","cpu":"AMD Ryzen 9 3900X 12-Core Processor","cpu_threads":24,"memory_mib":65456,"resolution":"3840x2160","window":{"spec":"seconds 0:20","first_present":4130,"ms":20072.349},"presents":204,"frame_ms":{"p50":98.063,"p90":104.987,"p99":113.756,"max":119.994},"gpu_busy_ms_per_present":43.268,"worker_busy_pct":{"queue worker 0x0":96.416},"top_phases_ms_per_frame":{"Driver.Packet":94.814,"Driver.Packet.draw":59.303,"Driver.Draw":58.549,"Graphics.Draw":43.279,"Graphics.Draw.draw_and_resource_release":37.987,"Driver.Draw.shader_compile_and_link":25.989,"Driver.Draw.draw_enqueued":21.223,"Vulkan.DrawFromRecipe":18.132},"trace_dropped":false,"trace":"A1.json.gz"}
{"run":"B1","commit":"8d1fc7b68693","dirty":false,"env":{"APS5_FORCE_SDR":"1","APS5_LOG_TIMESTAMPS":"1","APS5_NET_DISCONNECTED":"1","APS5_NO_PAD_INPUT":"1","APS5_OUTPUT_RESOLUTION":"3840x2160","APS5_PAD_INPUT_FILE":"<path>","APS5_SCREENSHOT_TRIGGER":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"0:20","APS5_TRACE_TRIGGER_FILE":"<path>"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 610.88","os":"Windows 10.0.26300","cpu":"AMD Ryzen 9 3900X 12-Core Processor","cpu_threads":24,"memory_mib":65456,"resolution":"3840x2160","window":{"spec":"seconds 0:20","first_present":4196,"ms":20004.378},"presents":226,"frame_ms":{"p50":88.18,"p90":94.326,"p99":98.873,"max":102.672},"gpu_busy_ms_per_present":43.353,"worker_busy_pct":{"queue worker 0x0":95.808},"top_phases_ms_per_frame":{"Driver.Packet":84.761,"Driver.Packet.draw":49.559,"Driver.Draw":48.859,"Graphics.Draw":33.048,"Graphics.Draw.draw_and_resource_release":28.048,"Driver.Draw.shader_compile_and_link":24.833,"Vulkan.DrawFromRecipe":17.684,"Graphics.DrawWithRecipe":17.251},"trace_dropped":false,"trace":"B1.json.gz"}
{"run":"B2","commit":"8d1fc7b68693","dirty":false,"env":{"APS5_FORCE_SDR":"1","APS5_LOG_TIMESTAMPS":"1","APS5_NET_DISCONNECTED":"1","APS5_NO_PAD_INPUT":"1","APS5_OUTPUT_RESOLUTION":"3840x2160","APS5_PAD_INPUT_FILE":"<path>","APS5_SCREENSHOT_TRIGGER":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"0:20","APS5_TRACE_TRIGGER_FILE":"<path>"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 610.88","os":"Windows 10.0.26300","cpu":"AMD Ryzen 9 3900X 12-Core Processor","cpu_threads":24,"memory_mib":65456,"resolution":"3840x2160","window":{"spec":"seconds 0:20","first_present":4039,"ms":20029.654},"presents":209,"frame_ms":{"p50":94.853,"p90":104.947,"p99":112.834,"max":121.216},"gpu_busy_ms_per_present":43.233,"worker_busy_pct":{"queue worker 0x0":96.013},"top_phases_ms_per_frame":{"Driver.Packet":91.961,"Driver.Packet.draw":54.206,"Driver.Draw":53.431,"Graphics.Draw":35.9,"Graphics.Draw.draw_and_resource_release":30.419,"Driver.Draw.shader_compile_and_link":27.199,"Vulkan.DrawFromRecipe":18.427,"Driver.Packet.dispatch":18.329},"trace_dropped":false,"trace":"B2.json.gz"}
{"run":"A2","commit":"360c1e868c22","dirty":false,"env":{"APS5_FORCE_SDR":"1","APS5_LOG_TIMESTAMPS":"1","APS5_NET_DISCONNECTED":"1","APS5_NO_PAD_INPUT":"1","APS5_OUTPUT_RESOLUTION":"3840x2160","APS5_PAD_INPUT_FILE":"<path>","APS5_SCREENSHOT_TRIGGER":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"0:20","APS5_TRACE_TRIGGER_FILE":"<path>"},"gpu":"NVIDIA GeForce RTX 3080 Ti","driver":"NVIDIA 610.88","os":"Windows 10.0.26300","cpu":"AMD Ryzen 9 3900X 12-Core Processor","cpu_threads":24,"memory_mib":65456,"resolution":"3840x2160","window":{"spec":"seconds 0:20","first_present":3913,"ms":20093.914},"presents":198,"frame_ms":{"p50":101.318,"p90":109.528,"p99":116.219,"max":116.493},"gpu_busy_ms_per_present":44.22,"worker_busy_pct":{"queue worker 0x0":96.695},"top_phases_ms_per_frame":{"Driver.Packet":98.06,"Driver.Packet.draw":61.608,"Driver.Draw":60.847,"Graphics.Draw":46.16,"Graphics.Draw.draw_and_resource_release":40.626,"Driver.Draw.shader_compile_and_link":26.018,"Driver.Draw.draw_enqueued":23.659,"Vulkan.DrawFromRecipe":18.467},"trace_dropped":false,"trace":"A2.json.gz"} |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — comments
Nothing blocks this review, but the measurement and source review are incomplete, so a formal approval is not justified.
What I ran
Reviewed head f0af97547b8b17791aae289513c1a880bc98298c. I read the prepared description, commit list, diff, manifest, and all added lines in 24 of the 29 changed files marked included. I also read targeted source ranges in the two excluded implementation files, ShaderResources.cpp and Texture.cpp, and several changed implementation files through the pinned reader. No tests or builds were run; CI and measurements in the description are author-reported.
Results
| Check | Result | Note |
|---|---|---|
| Prepared change bundle | passed | Description, commits, diff, manifest read |
| Targeted source review | passed | Includes the two excluded implementation files |
| Tests and build | not run | No local checks performed |
| Full changed-file review | not run | Five included changed files remain unread in full |
Findings
Blocking
None identified in the code inspected.
Non-blocking
- The review bundle includes 29 changed files, but only 24 files were marked included, and I did not read all added lines in those files. The five changes not fully reviewed are
Graphics.cpp,Recorder.cpp(tests),DrawAllocations.cpp,TableIndexValidation.cpp, anddocs/dev/ENVIRONMENT.md. Completing those reads would make the review evidence stronger. - The draw allocation census and retention changes have detailed author-reported tests, but those checks were not independently run in this review.
Not verified
- I did not run tests, builds, or a negative control. The test results and performance measurements in the PR description are author-reported.
- I did not read all added lines in the five included files listed above. The diff also contains excluded generated, minified, lockfile, or other rule-excluded content as described by the bundle; these were not reviewed.
- I did not verify behavior on Windows, a physical console, or hardware beyond the author-reported runs.
To get this to a good state
Nothing is required. Optional: complete the five remaining changed-file reads and run the focused tests on this head before seeking formal approval.
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this; the points below are optional.
What I ran
Reviewed head 4e46571a866081eff3ddd7b93677c7144a783421 from the prepared diff and pinned repository reader. I did not run commands or tests; the test runs described in the PR are author-reported.
Results
| Check | Result | Note |
|---|---|---|
| Prepared diff review | passed | Changed hunks inspected |
| Targeted source review | passed | Ownership and allocation paths checked |
| Tests in this review | not run | PR reports focused CI and local runs |
Negative control
Not run by me. The PR reports allocation mutants and rebinding checks; those reports were not independently verified here.
Findings
Blocking
None.
Non-blocking
None.
Sources
Behavior claims were checked against the prepared diff and source files at the pinned head; no permalink was generated by the available reader.
Not verified
Full text and hunks for Graphics/src/ShaderResources.cpp, Graphics/src/Texture.cpp, tests/Graphics.cpp, and tests/Recorder.cpp were inspected only at relevant changed ranges through the reader; other portions were not read. The prepared folder marked those four changed files as excluded from its full-text files. No build, test command, or physical-console behavior was verified.
To get this to a good state
Nothing is required.
What
Every recorded draw paid fixed costs that do not depend on what it draws: clock reads with profiling off, owner copies, and host allocations for its own bookkeeping. This change removes them from the common draw and dispatch.
Clock reads with draw profiling off.
DrawTimer,refreshResidentTarget,ShaderResources::buildPrepareandbuildComplete,Driver::dispatch,Driver::resolveGroupAheadand the CPU reads of indirect draw records each calledstd::chrono::steady_clock::now()even when the result was only used for profiling. They now read the clock only when the profile that reports them is on: the draw profile for the draw, dispatch and indirect sites, and the shader build profile (BuildProfiled()) forbuildPrepareandbuildComplete. The indirect read times are counted only then. The committer's per-commit clock reads inDrawPipeline.cppfollowAPS5_PROFILE_DRAWorAPS5_PIPELINE_STATS, the switches that print its per-commit times; they are environment switches, and the build profile does not turn them on.Owner copies during recording.
RecordedDrawholds the draw'sShaderResourcesby reference instead of copying itsshared_ptr, andshapePipelinepasses the cached pipeline on without copying it.Pipeline::AcquireFramebuffercompared each cached owner by locking itsweak_ptr; it now keeps the owner's address beside theweak_ptrand compares the address and the control block (owner_beforeboth ways), so a lookup takes no reference. An owner whose address is reused by a different object still misses.Host allocations per draw.
keepRecordedDrawno longer allocates aKeptobject per draw.Recorder::Retainadds the draw's resources, pipeline, framebuffer, index and vertex buffers and resident targets to the batch's kept list, skipping an owner the batch already holds (an open-addressing table keyed by the owner's address and control block, reset by an epoch when a batch opens).Recorder::ReserveRetentionsizes the list and table once per draw. The owners live until the batch completes, as before.InlineList<T, N>keeps up to N items in place and moves them to a vector only past N. It holds the dynamic rendering color attachments (8), the pass attachments (16), the store flags, target slices and resident targets (8), and the color export slots thatDecodeStateandDrawRejectioncompute (8).PrepareDrawBindingsallocates itsDrawBindingsonly when the draw keeps a snapshot, or when its object has re-bound a texture after a cache eviction (rebound): the object's own descriptor set then no longer matches its textures, so every later draw of it writes fresh sets. The first form of this commit missed the second case and dereferenced a nullDrawBindingson such a draw;21419394cbcreates it, and thereboundcase ofagc_driver_table_index_validationcovers it.ShaderResources::StorageImages(out)fills a thread-owned vector instead of returning a new one per draw.Driver::dispatchreserves its user data and snapshot lists, and keeps its one or two shader memory regions in a fixed array.refreshResidentTargettakes its lookup as a template parameter instead of astd::function.Keptobject (Draw.cpp,Pipeline.cpp) are removed.No behaviour changes.
Overlap, checked on 2026-11-07 against
main46552cb461withtools/pr_overlap.pyand by hand: the tool reports four open pull requests that change lines this branch changes (#7369, #9508, #16115, #16413) and 84 more that conflict withmainand share files with it (57 of the 88 have a commit since 2026-10-24; I read the hunks of 17). #14051 (labelled needs rebase) also makes the clock reads ofDrawTimerand its newplanDrawdepend on profiling, the same idea as the clock commit here, as part of a larger split ofprepareDraw; whichever lands second keeps one form of theDrawTimerlines. Nothing else implements the same thing. #16115 addspassGenerationbeside the retention members ofRecorderand changes the start ofRecorder::ensureOpen, where the retention reset is at the end; its attachment memo copies color target vectors on a miss, so the allocation census should run on top of it once both are in. #7369 and #9508 change other lines ofDrawWithRecipe,prepareDrawandrecordPreparedDraw; #13863, #13920 and the device image table stack (#7642, #10193, #13928, #13929) changekeepRecordedDraw,Recorder::ensureOpenandDriver::dispatchand will rebase ontoRecorder::Retain. Rechecked against4977f64052: the tool now confirms #7369, #10920, #16115, #16413 and #16572 (Draw.cpp, beside the attachment and pipeline-key code); none implements the same thing.Tested
Reviewed head
eb92a8c70d9. The replay, GTA and census-by-commit numbers below were measured on656c08e951. The census limits were re-derived onb7f0ab6e98f(section below). Since656c08e951, the driver code changed only bymainmerges,21419394cb(draw bindings on a re-bind) and two review commits with no runtime change:b7f0ab6e98fdrops a no-opstd::move, andeb92a8c70d9makes the draw record a non-copyableBorrowedDraw.Head
656c08e951onmain4977f64052; the merges since, up tofcee5cb0b8, bringmainin and add21419394cb(draw bindings on a re-bind) and its test.Retention test after the
mainmerge.main's #16760 creates draw-input copies withTRANSFER_SRCas well as their vertex or index usage, and the buffer pool hands a buffer back only under its exact usage.agc_driver_recorded_draw_retentionprobed the pool with plain vertex and index usage, so on Windows it reported that recorded vertices survived completion, and its checks before completion could not have found the buffer either way. The test now reads each recorded input's usage from itsvkCreateBuffer, requires it to carry the bound role, and probes with that usage before and after completion; the driver change is untouched. Fork CI on head6479bab223(run 43750013318): Linux 8 of 8; Windows 5 pass, includingagc_driver_recorded_draw_retention, and the three draw allocation tests skip as they do on Windows on the earlier head; 0VUID-lines.Review follow-up (census per-site bound, cleared target in the rebound test; test files only). Linux, GCC 13, Release, Mesa lavapipe 25.2.8, Khronos validation layer 1.4.363.1 with synchronization validation on (
VK_KHRONOS_VALIDATION_VALIDATE_SYNC=1),ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer:ctest -R '^(agc_driver_table_index_validation|agc_driver_draw_allocations|agc_driver_draw_allocations_draw_pipeline|agc_driver_draw_allocations_plan_verify)$' -Vonfcee5cb0b8and on the follow-up, same machine: 4 of 4 passed on both; the loader inserts the layer foragc_driver_table_index_validation(the census tests unsetVK_INSTANCE_LAYERSby design); noVUID-orSYNC-HAZARDline and nowas not found but was requested by env var VK_INSTANCE_LAYERSin either log. Mutants: a draw that is skipped after the re-bind passes the earlier rebound test (the target still holds the settle draws' key texel) and fails the new one; one restored per-draw allocation is above.Refreshed onto
main4977f64052. Head656c08e951;git range-diffagainst the same patches on46552cb461shows them unchanged (11 commits,=). Local RTX 3080 gate on both, same environment as below (ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation), built one after the other in one build tree, with the focused AGC set of all five pull requests of this series (237 tests on this head, 232 onmain): both 100 % passed, noVUID-line in either log or in replay subprocess logs, and neither log containswas not found but was requested by env var VK_INSTANCE_LAYERS. Fork CI on the rebased head against4977f64052: run 42374111231: Linux 40 of 43 passed, 3 skipped; Windows 38 of 44 passed, 5 skipped, andagc_driver_recorderfailed, as it does onmain. The newagc_driver_draw_allocationstests pass on Linux and skip on Windows by design: the driver allocates through its ownoperator newin a DLL the census cannot interpose. NoVUID-line on either side, conventions check passed. The measurements and full runs below were on the previous base46552cb461; the code they measured is unchanged.Vulkan validation. RTX 3080,
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ctest --test-dir build -R 'agc|write_tracking|guest|indirect_draw|draw_finisher|depth_bias|draw_pipeline' -Von this branch's patches on46552cb461, the same patches as656c08e951(3204 tests), and onmain46552cb461(3199 tests). Every test failing in either full run was then rerun alone on both builds, one build at a time with nothing else on the GPU, usingctest -Rwith the union of the 16 names and the same environment: on both, 15 of 16 passed and onlyagc_driver_direct_write_completionfailed, which fails onmaintoo (#15547); the other failures of the full runs were timeouts and0xc0000409exits under load from concurrent gates and did not reproduce alone. Both full logs hold the same 18VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605lines and no otherVUID-; neither containswas not found but was requested by env var VK_INSTANCE_LAYERS. The change adds no validation error.Fork CI (GitHub runners, Mesa lavapipe with the Khronos validation layer, head against
main): run 42337669902 (48 tests on each OS, this branch's patches on46552cb461against46552cb461): Linux 48 of 48 passed with the validation layer; Windows 45 passed, the two allocation census tests reported themselves skipped (they need the driver'soperator new, see below), andagc_driver_recorderfailed, as it does onmainon the same runner. run 42338181178 for the retention tests: Linux 10 of 10 and Windows 11 of 11. NoVUID-line in any of them, conventions check passed.Tests.
agc_driver_draw_allocations,_draw_pipelineand_plan_verify(new, Linux; on Windows the driver allocates through its ownoperator newin a DLL the test cannot interpose, so they report themselves skipped): the test replacesoperator newand counts, per shape (recipe auto draw, indexed draw with guest indices, indexed draw with image indices, compute dispatch), what warmed draws allocate beyond a baseline, both in total and per call site on every draw. The measurement and the ceilings were redone on the current head; see Draw allocation census: measurement and limits below. Restoring one per-draw allocation inkeepRecordedDraw(amake_sharedper draw, as the removedKeptwas) fails the every-draw bound. Both tests unsetVK_INSTANCE_LAYERS, because under the validation layer the replacedoperator newalso counts the layer's own allocations. The variables that select shapes and override the ceilings are indocs/dev/ENVIRONMENT.md.agc_driver_recorded_draw_retention(new): a recorded draw's indices, vertices, pipeline, framebuffer, resources, resident targets and GPU indirect scratch stay alive until its batch completes, also after their cache entries are evicted and when a recipe hit in the next batch uses them again, and are released when the last batch that used them completes.agc_driver_vertex_target_range_copiedand_imported(extended): a recorded draw's resident target survives a cleared resource cache until completion and is released after it, and with imported vertices the GPU indirect scratch is not recycled before completion. They now run withAPS5_RELEASE_UNDER_LOCK=1, the new_release_threadvariants run them with the release thread, and all four fail on anyVUID-orInvalidCommandBufferline.agc_recorder_kept_bytes(RecorderKeptBytes.cpp, extended): 100 owners retained twice each through a growing lookup, mixed withKeep, are each held once until completion and released after it; a batch whose submit fails releases its owners, and the batch that replaces it retains a live owner again exactly once and holds it until its fence.agc_driver_host_allocator(HostAllocator.cpp, extended, Windows): anInlineListkeeps order and ownership across its inline bound, does not duplicate an owner when it spills, releases its owners when destroyed, and works with no inline slots.agc_driver_table_index_validationreboundcase (new): textures leave the cache under an object built withAPS5_DRAW_SNAPSHOT_MAX_MIB=0, so the next draw re-binds them with no snapshot kept; the target is cleared before each checked draw, so a re-bound draw that draws nothing fails.agc_driver_graphicsrunsframebufferOwnerTests: a live owner reuses its framebuffer, the same address with a different owner does not, and a replaced owner gets a distinct framebuffer. The clock and reference changes have no behaviour of their own to test; the existing draw, dispatch and indirect tests in the gate above run through every changed site with profiling off, and theAPS5_PROFILE_DRAWtests with it on.Draw allocation census: measurement and limits (sync head b7f0ab6)
Why it changed. The census used to count one 256-draw batch. Whether earlier draws' pool slots and draw-use records were free again depended on how far the GPU had got, so the count moved with machine load: up to 1 failure in 20 per variant on a loaded Linux machine.
How it measures now.
The census is Linux-only. On Windows the driver allocates through its own operator new in the DLL, which the census cannot interpose, so the tests skip there.
Limits. These were this PR's own constants, set against an older main and the old measurement. They are re-derived from Linux fork CI run 44098566795: three runs plain, six pipelined (draw_pipeline and plan_verify).
The margin is the same for every shape:
The byte margin absorbs a one-off pool growth; the largest seen added 316 per draw. The count limits still catch any new allocation, and the every-draw count catches a new call site.
What main added. I ran the same measurement on this branch's previous base (03afc90) and on the sync:
DrawTailnow holdsuserPatches, from fix(agc): patch a relocated hit's decode when the finisher restarts it #19267;BufferembedsContext, which grew with perf(agc): bind small, rarely read draw inputs in place where they are copied #20368, feat(agc): select viewports from vertex and mesh viewport index exports #19373 and feat(shader): emulate 64-bit image and buffer atomics on devices without them #18842.The commit-cost work on the driver's per-draw allocations (the finisher queue nodes, the second
DrawWriteRanges,BeginDrawUserecords, BufferPool slots) is how these numbers come back down.Proof. 30/30 runs of all three variants passed locally under a parallel ctest -j16 load, at load average 15 on 4 cores. Fork CI on b7f0ab6: run 44114467966, Linux gate green; on Windows the three census tests report themselves skipped, as described above.
Host allocations per operation, from the census on the GitHub Linux runner (fork CI
censusjob, Mesa lavapipe, no validation layer). Each column is one commit with the census test applied:mainis46552cb461plus the census test, the next adds the clock and owner commits, the next the retention, inline list, draw binding and storage image commits (an earlier form of this branch, with the same driver code asb172d695d9here and the census test in its earlier form), and the last is this head with the two dispatch and color export commits. Count per draw or dispatch, requested bytes in brackets.main+ census testa997ef0a52)b172d695d9)656c08e951)agc_driver_draw_allocationsagc_driver_draw_allocationsagc_driver_draw_allocationsagc_driver_draw_allocationsagc_driver_draw_allocations_draw_pipelineagc_driver_draw_allocations_draw_pipelineagc_driver_draw_allocations_draw_pipelineagc_driver_draw_allocations_draw_pipelineThe plain recipe auto draw falls from 49.78 to 42.72 allocations per draw (-14.2 %), the pipelined one from 52.98 to 45.93, and a compute dispatch from 17.94 to 10.94. Census runs: 42338046309, 42338087047, 42335669341, 42337669902.
Clock reads removed per draw with profiling off: one in
DrawTimer, one per resident color target lookup, one in each ofbuildPrepareandbuildCompletewhen the draw builds its resources, and one or two per indirect draw whose records the CPU reads; one per dispatch and one per dispatch resolved ahead. On Windows each read is aQueryPerformanceCountercall. In a 60 s stack sample of the draw committer in the GTA V scene below onmain(3,843 samples), the clock path (ntdll.dll+0x8b29dandclock_settimein winpthreads) is 3.4 % of its self time; part of it comes from other callers. Per recorded draw, oneshared_ptrcopy and release fewer (two atomic operations), and oneweak_ptr::lockand release fewer per owner on each framebuffer cache lookup.Per-draw cost, replay. Identical frames, so the change is the only difference. A 3-frame capture of the scene below (
APS5_FRAME_CAPTURE, 9,364 draws) is replayed withagc_frame_replay --repeat 5through the real submit path, with the same pipelined-draw settings as the boots; passes 2 to 5 count. Base46552cb461and each build alternate run by run. Every pass of every run drew exactly 9,364 draws and every run matched the base pixels exactly (pixels_identical1.0). The metric is committer wall time per commit, per draw; base is about 53.2 µs per draw. The replay tool ismain'stools/FrameReplay.cppwith #12565, #12567, #12568, #11435 and #13984 merged and a local retire of resident images before each memory restore so--repeatworks; it is local and not part of this pull request (per-build summaries and binary provenance attached).656c08e95146552cb461f62ea7bd080e323b1bdcThe calibration build reads its injected 1.0 µs, so the replay resolves per-draw costs below 1 µs; base against base reads +0.10 ± 0.37. The two null controls stay within noise. The three changes add up: -1.35, -0.81 and -0.44 sum to -2.60, inside the merged build's -2.99 ± 0.44. Thread CPU columns are attached but not used: Windows thread times tick in 15.6 ms steps, too coarse for 1 µs per draw. The replay cannot show contention with the title's own threads, frame pacing, or GPU-bound time.
Frame time, stacked boots.
main46552cb461against the three changes merged on it, one warm-up boot each, then two ABBA pairs in the scene below on the current host: mean ms/frame 147.0 to 136.0 (-7.5 %) and 136.7 to 131.3 (-4.0 %); p99 168.8 to 181.9 and 192.6 to 188.7. These are not attributed to the change: the merged build drew 13 % fewer draws per present in those boots (1,497 and 1,611 against 1,783 and 1,801), and draw count varies from boot to boot with the scene, which is why the per-draw figure above comes from the replay. The older per-pull-request pairs below were taken on this branch before its rebase and on the host state before the changes listed under Host; the counts are per pull request and stay.Performance, older per-PR pairs. GTA V (PPSA04263, content 01.011.001), standing scene, 3840x2160, default in-game settings. Two interleaved pairs,
mainthen this change, twice, after one warm-up boot of each build that is not a sample. Each capture is the 30 s trace window from 235 s after launch, about 30 s after the player stands still (202 to 206 s in every capture), with pipelined draws (APS5_DRAW_PIPELINE=1,APS5_PIPELINED_DRAWS=32,APS5_PIPELINE_DISPATCH=1).mainwas7383be1a19; the change wasce6b71c04a, this branch before its rebase onto46552cb461and before two commits were added:ce6b71c04aholds the clock, owner, retention, inline list, draw binding and storage image commits, andgit range-diffshows the same patches for those. The dispatch vector and color export commits were not timed on their own; they cut allocations only (table above).7383be1a19c7ce6b71c04ac67383be1a19c7ce6b71c04ac6Change minus main, mean ms/frame: pair 1 -6.87, pair 2 -1.37, mean -4.12 (-3.0 %); p50 -5.9 and -0.8; p99 -5.6 and -24.0.
Frame time is within noise, with a small gain that two pairs cannot confirm. Both pairs are faster with the change, by 6.9 and 1.4 ms, a mean of 4.1 ms (3.0 %). Twelve
maincaptures of this scene across six blocks give a mean of 137.6 ms per frame with a standard deviation of 1.85 ms (1.35 %), so the mean of two pair deltas resolves about 2 ms; but the pair-1maincapture (141.4 ms) is the slowest of those twelve, and without it the gain is the 1.4 ms of pair 2.Why frame time barely moves: the scene is CPU-bound and the draw committer is its critical path. In a 60 s stack sample of
mainin this scene (1 ms sampling, 3,843 samples per thread, digests attached),finishDraw/commitDrawis 79.8 % of the committer's samples inclusive,Graphics::Draw76.1 %,prepareDraw53.4 %,recordPreparedDraw21.8 % andcollectWrites12.2 %; about half the sampled stacks are cut at 64 frames, so inclusive shares are lower bounds. The queue worker shows 95 % busy in every capture, but 53 % of its samples areDrawFinisher::Drainreadingsteady_clock::nowwhile it waits, so that figure overstates its load. GPU busy is 33.8 ms of a 137 ms frame. This change acts onprepareDrawandrecordPreparedDrawon the committer and on the clock path.In separate counter boots of the same scene (
APS5_PROFILE_DRAW=1, which turns off the draw finisher handoff), the driver's own[draw]phase means were 35.0 us per draw packet onmain(two boots, 3.0 % apart) and 36.8 us with the change, but those boots drew 2,827 to 2,853 draws per present onmainand 3,167 with the change, so they are no evidence either way.Summary lines (
tools/trace_digest.pyJSON summary, one per capture, in the order of the table):{"commit":"7383be1a19c7","dirty":false,"env":{"APS5_ADDRESS_COPY_MAX_MIB":"512","APS5_DRAW_PIPELINE":"1","APS5_DUMP_FRAMES":"80","APS5_DUMP_FRAMES_EVERY":"300","APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"235:30","APS5_TRACE_SUMMARY_EVERY":"10","APS5_VIDEOOUT_TELEMETRY_DIR":"<path>"},"gpu":"NVIDIA GeForce RTX 3080","driver":"NVIDIA 621.14","os":"Windows 10.0.26220","cpu":"AMD Ryzen 7 5800X 8-Core Processor","cpu_threads":16,"memory_mib":32676,"title_id":"PPSA04263","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 235:30","first_present":4076,"ms":30125.147},"presents":213,"frame_ms":{"p50":138.921,"p90":150.457,"p99":165.080,"max":197.168},"gpu_busy_ms_per_present":34.091,"worker_busy_pct":{"queue worker 0x0":95.107},"top_phases_ms_per_frame":{"Driver.Packet":127.592,"Graphics.Draw":109.451,"Driver.Packet.draw":94.541,"Driver.Draw":93.936,"Graphics.Draw.draw_and_resource_release":86.115,"Driver.DrawFinish":81.806,"Driver.Draw.prepare":73.357,"Driver.DrawFinish.shader_compile_and_link":45.669},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.031,"events_lost":1316774,"totals_full":false},"draw committer":{"events_full_after_s":10.760,"events_lost":473252,"totals_full":false},"draw finisher":{"events_full_after_s":12.163,"events_lost":382180,"totals_full":false}},"trace":"aps5-trace-7383be1a19c7-26956.json.gz"} {"commit":"ce6b71c04ac6","dirty":false,"env":{"APS5_ADDRESS_COPY_MAX_MIB":"512","APS5_DRAW_PIPELINE":"1","APS5_DUMP_FRAMES":"80","APS5_DUMP_FRAMES_EVERY":"300","APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"235:30","APS5_TRACE_SUMMARY_EVERY":"10","APS5_VIDEOOUT_TELEMETRY_DIR":"<path>"},"gpu":"NVIDIA GeForce RTX 3080","driver":"NVIDIA 621.14","os":"Windows 10.0.26220","cpu":"AMD Ryzen 7 5800X 8-Core Processor","cpu_threads":16,"memory_mib":32676,"title_id":"PPSA04263","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 235:30","first_present":4078,"ms":30007.582},"presents":223,"frame_ms":{"p50":133.012,"p90":142.895,"p99":159.453,"max":199.268},"gpu_busy_ms_per_present":33.669,"worker_busy_pct":{"queue worker 0x0":94.952},"top_phases_ms_per_frame":{"Driver.Packet":121.124,"Graphics.Draw":102.744,"Driver.Packet.draw":91.980,"Driver.Draw":91.377,"Graphics.Draw.draw_and_resource_release":80.857,"Driver.DrawFinish":78.246,"Driver.Draw.prepare":71.054,"Driver.DrawFinish.shader_compile_and_link":43.881},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.062,"events_lost":1281650,"totals_full":false},"draw committer":{"events_full_after_s":11.180,"events_lost":439984,"totals_full":false},"draw finisher":{"events_full_after_s":12.692,"events_lost":353376,"totals_full":false}},"trace":"aps5-trace-ce6b71c04ac6-4748.json.gz"} {"commit":"7383be1a19c7","dirty":false,"env":{"APS5_ADDRESS_COPY_MAX_MIB":"512","APS5_DRAW_PIPELINE":"1","APS5_DUMP_FRAMES":"80","APS5_DUMP_FRAMES_EVERY":"300","APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"235:30","APS5_TRACE_SUMMARY_EVERY":"10","APS5_VIDEOOUT_TELEMETRY_DIR":"<path>"},"gpu":"NVIDIA GeForce RTX 3080","driver":"NVIDIA 621.14","os":"Windows 10.0.26220","cpu":"AMD Ryzen 7 5800X 8-Core Processor","cpu_threads":16,"memory_mib":32676,"title_id":"PPSA04263","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 235:30","first_present":4061,"ms":30078.660},"presents":219,"frame_ms":{"p50":134.971,"p90":146.895,"p99":176.226,"max":193.256},"gpu_busy_ms_per_present":33.841,"worker_busy_pct":{"queue worker 0x0":94.793},"top_phases_ms_per_frame":{"Driver.Packet":123.715,"Graphics.Draw":105.295,"Driver.Packet.draw":93.672,"Driver.Draw":93.070,"Graphics.Draw.draw_and_resource_release":83.071,"Driver.DrawFinish":80.443,"Driver.Draw.prepare":72.750,"Driver.DrawFinish.shader_compile_and_link":44.416},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.133,"events_lost":1286905,"totals_full":false},"draw committer":{"events_full_after_s":10.990,"events_lost":456616,"totals_full":false},"draw finisher":{"events_full_after_s":12.610,"events_lost":361255,"totals_full":false}},"trace":"aps5-trace-7383be1a19c7-16268.json.gz"} {"commit":"ce6b71c04ac6","dirty":false,"env":{"APS5_ADDRESS_COPY_MAX_MIB":"512","APS5_DRAW_PIPELINE":"1","APS5_DUMP_FRAMES":"80","APS5_DUMP_FRAMES_EVERY":"300","APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"235:30","APS5_TRACE_SUMMARY_EVERY":"10","APS5_VIDEOOUT_TELEMETRY_DIR":"<path>"},"gpu":"NVIDIA GeForce RTX 3080","driver":"NVIDIA 621.14","os":"Windows 10.0.26220","cpu":"AMD Ryzen 7 5800X 8-Core Processor","cpu_threads":16,"memory_mib":32676,"title_id":"PPSA04263","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 235:30","first_present":4113,"ms":30051.379},"presents":221,"frame_ms":{"p50":134.189,"p90":144.737,"p99":152.210,"max":221.095},"gpu_busy_ms_per_present":33.959,"worker_busy_pct":{"queue worker 0x0":94.872},"top_phases_ms_per_frame":{"Driver.Packet":122.132,"Graphics.Draw":103.684,"Driver.Packet.draw":92.613,"Driver.Draw":91.999,"Graphics.Draw.draw_and_resource_release":81.451,"Driver.DrawFinish":78.895,"Driver.Draw.prepare":71.495,"Driver.DrawFinish.shader_compile_and_link":44.669},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.276,"events_lost":1254911,"totals_full":false},"draw committer":{"events_full_after_s":11.314,"events_lost":435316,"totals_full":false},"draw finisher":{"events_full_after_s":13.072,"events_lost":342614,"totals_full":false}},"trace":"aps5-trace-ce6b71c04ac6-4316.json.gz"}Traces: main, pair 1 aps5-trace-7383be1a19c7-26956.json.gz, change, pair 1 aps5-trace-ce6b71c04ac6-4748.json.gz, main, pair 2 aps5-trace-7383be1a19c7-16268.json.gz, change, pair 2 aps5-trace-ce6b71c04ac6-4316.json.gz.
tools/performance_compare.pyoutput per pair: pair 1, pair 2.tools/trace_digest.pyoutput per capture: main, pair 1, change, pair 1, main, pair 2, change, pair 2.Deviations from the Performance report form, the same in every capture (deviations.txt, environment per capture in the
*-env.txtfiles):APS5_ADDRESS_COPY_MAX_MIB=512,APS5_NO_PAD_INPUT=1,APS5_LOG_TIMESTAMPS=1andAPS5_TRACE_SUMMARY_EVERY=10.APS5_DUMP_FRAMES=80,APS5_DUMP_FRAMES_EVERY=300) let the script see the menus and check the view; the log is redirected to a file the script reads.ANYPS5_SHADER_CACHE_DIR,__GL_SHADER_DISK_CACHE_PATH).trace_dropped), so slice counts are partial; the summary totals are complete.Host: AMD Ryzen 7 5800X (16 threads), 32 GB, NVIDIA GeForce RTX 3080 (driver 621.14, Vulkan 1.4.357), Windows 10.0.26220, desktop on AC power with the High performance scheme, display 2560x1440 at 179 Hz; the title renders 3840x2160 (host-report.txt). That is the host of the older pairs and the counter boots above. Since then Resizable BAR is on (BAR1 16384 MiB, VBIOS 94.02.27.00.09), Windows is build 26320 and Defender excludes the build, tool and capture folders; the driver is still 621.14. The replay measurement and the stacked boots ran on that host.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code