Repository navigation
Conversation
…r thread under APS5_ASYNC_SUBMIT
… and wake an idle encoder per extra queued stream
|
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.
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.
|
…so sources built without the library still link
|
Windows check of head Setup: Windows 11 Enterprise 22621, AMD RX 6700 XT, AMD driver 26.10.1, MinGW-w64 GCC 15.2 UCRT, Release build. Two problems, both in the PR's own code:
Results through the shared Windows GPU FIFO with
I made no performance measurement of AI-assisted: yes. |
|
Windows re-check of head Setup: Windows 11 Enterprise 22621, AMD RX 6700 XT, AMD driver 26.10.1, MinGW-w64 GCC 15.2 UCRT, Release build.
I made no performance measurement of AI-assisted: yes. |
|
Hi @Nesyth, Thanks for this. #17943 also moves command recording onto worker threads and shares 9 files with this PR, so the two can't both land as they are. We're keeping #17943 as the base for multi-threaded recording. Could you:
Once that's in, it gets a full review. Your GTA V results are welcome as evidence on the rebased head. |
|
Thanks @oneandonlydean. Agreed: #17943 is the base, and this PR becomes a follow-up on it (and on #18029, which touches the same files). What the follow-up will carry, and nothing else:
Everything that overlaps #17943 and #18029 (deferring the Order of work: the design note goes into the description first (threads and ownership, ordering against single-thread submission, what the submitter may touch, fallback, tests, and which parts can sit on #17943's chunk format). The rebase follows once #17943's head is stable again; it is held on |
|
On current Setup: Windows 11 26300, RTX 4070 Ti (NVIDIA 610.47), MinGW-w64 GCC 15.2, Release. Head Repro: The Pathless (PPSA01825). The abort happens 8-9 s after start, before gameplay, in 3 of 3 runs. Cause: #16572 (merged 2026-11-11, after this PR's base |
|
@Nesyth @Kannorhart I reproduced the missing The production change adds the command to the sorted thunk table and copies its The regression adds two attachment ranges to the existing round-trip test, including a zero write mask. It overwrites the caller's arrays before replay and replays twice; all 54 command types are checked. I also refreshed this test's fake resolver for the eight buffer/memory functions now required by
The identical refreshed CPU test binary fails with the expected missing-thunk error against the original SDK and passes all round-trip/lifetime/refusal checks against the corrected SDK. Pins: PR head Portable patch, reconstruction patches, pins, identical-fixture proof and complete paired logs. The uploaded archive was downloaded again and all 15 members verified. The two-file patch passes Follow-up validation on the same corrected SDK: the broader Recorder suite passes 4/4 on the physical GPU, covering default, async-only, deferred encoding and deferred verification. All four inserted validation and selected RX 6650 XT; zero skips/VUIDs. An initial test-bundle attempt omitted unpatched Asterigos (PPSA08194), with Native trace/canonical summary, GPU-frame scene review, invocation/harness, four-mode logs and packaging-error disclosure. The uploaded follow-up archive was downloaded again and all 13 members verified. AI-assisted: yes. |
|
Fresh scene-qualified Asterigos (PPSA08194) comparison for this PR plus the color-mask fix, after resuming the Linux host. The interrupted pre-pause control and earlier unqualified windows are excluded. Scope: frozen common base
Both runs reached the same saved Outerrim scene, passed two fresh world/camera checks before tracing and a fresh check afterward, and exited cleanly. I manually reviewed the native GPU-frame brackets. There were no captures inside the trace, zero dropped events, no active build work detected by the recorded process-group probe, and all save/cache/assets/source/kernel/mount guards passed. Same RX 6650 XT, RADV 26.2.6, Ryzen 7950X, Linux 7.2.14, 1920×1080, original checkpoint and identical warmed cache. The observed median frame-time reduction is about 33% in this single profiled pair. Repeatability, unprofiled gameplay FPS and latest-main performance are not established. Moving submission to another thread does not eliminate its total CPU work. Raw traces, canonical summaries, native scene images, exact public-source reconstruction patches, invocation/guard proofs and scene/host-control code. Downloaded the uploaded archive again and verified all 31 members. No game binaries, save contents or shader caches are included. AI-assisted: yes. |
|
Additional workload for the async-submit part: Under the Waves (PPSA08056 v01.009.000) spends nearly all its recorder submit interval inside the host Pinned main In the fixed 435:20 trace window (33 presents /20.408s, no dropped events):
The The final native GPU capture shows the Day1 tunnel/tutorial with a legible HUD. Normal exit0/483.3s, all10 source/bank/cache/save/assets/kernel/cleanup guards pass. Actual patched-driver commit/markers plus live mapped inode/hash were checked before accepting the run. A first attempt selected a stale patched SDK output through a CMake basename alias; that attempt is excluded entirely. The corrected build uses the explicit Corrected trace, summaries, exact source/provider pins and patches, binary provenance, GPU-test logs, native receipts and preview — SHA256 AI-assisted: yes |
|
@Nesyth your "Scope once this sits on #17943 and #18029" section matches what we see, and we'd like to agree a split along those lines so the two efforts don't overlap. Proposal
Testing we can offer We can run each PR on GTA V (PPSA04263, city scene, RTX 3080) against main in our matched setup: interleaved boots, quiet-machine checks, and the summary lines per CONTRIBUTING. Results go in your thread. For reference, from our 2026-11-11 session on that scene:
Today, #17943 alone with the zero-tax path measures level with main. Does this split work for you? If you'd rather keep your stream, say which parts of #17943's you'd need changed for the encoder pool to sit on it. AI-assisted: yes |
|
Async-submit-only qualification found a device-lifetime issue to carry into the proposed split. The submitter registry retains its I have a small private correction: drain and join the worker, remove its registry entry, and retire it before
No skips or This is PR head The focused reproducer is: APS5_ASYNC_SUBMIT=1 ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 \
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer \
ctest --test-dir build -R '^agc_driver_rect_list_vertex_layer$' -VPatch/reproducer bundle and full logs, SHA-256 The fresh Under the Waves control menu/cache seed is verified. The subsequent async/control native performance pairs are reported in the performance follow-up. Fetchable commits and deferred-mode qualificationThe current-main contribution/reproducer branch is now public. Small commits for cherry-picking:
The branch combines exact already-qualified runtime and fixture bodies; its new combined commit label itself was not rebuilt. Component-head/source equality proof is included below. Conventions report zero errors and 13 debt-length warnings. I also forced both With only that host test executable replaced, the full configuration passes 29/29, zero skips or VUIDs, 37 layer insertions and 29 physical-device selections. The same twelve physical-GPU test names pass on main/control and deferred mode. This is not a claim that the host-only mock exercised deferred recording. Two-line setup patch, original failing run, passing rerun, full logs, manifests and component proof, SHA-256 AI-assisted: yes. |
|
Under the Waves now has profiled and independent reverse-order unprofiled checks for async submission, following the worker-lifetime correction. Both runs load the Day 1 tunnel tutorial from the same original saves and closed menu-cache seed, with Cross at 120/135/150 s and no later controls. Native GPU frames show the same tunnel, camera and tutorial HUD; idle animation/particles/lighting are at different phases. Both exit normally at 483.8 s, with all ten integrity/cleanup guards passing and their live driver path/inode/hash verified.
That is +47.4% FPS in this one profiled pair, with p50 frame time down 29.5%. The submission work moves to the worker; the calling-thread interval reduction is not a CPU-cycle saving claim. The independent reverse-order unprofiled follow-up below also supports the direction; these two pairs do not establish a stable or general percentage. Control is main Trace limitation: the default event buffers dropped 52,636 events in control and 253,715 in change. Present timestamps and aggregate phase accounting are separate from those buffers ( Both original traces/summary lines, digests, exact harness/pins, receipts, source-counter review and unmodified final native PNGs. SHA-256 Independent unprofiled follow-up (async first, control second)Same frozen SDKs, original saves, menu-cache seed and input route, but with all trace/profiling flags absent. Both native runs exit 0 at 483.4/483.5 s with all ten guards passing; live driver path/inode/hash checks pass. Native frames show the same tunnel tutorial. No heavy host job was observed in either measurement interval, and both windows were focused for all 29 samples in each interval.
This reverse-order unprofiled pair gives approximately +58.1%, supporting the earlier improvement direction without trace-buffer overflow or always running async second. These FPS estimates use caption counters at observer boundaries; caption/sampling cadence limits precision, and no unprofiled frame-time percentiles are inferred. Idle/particle/light/dialogue phase still differs. Neither pair establishes a universal gain or verifies traversal/audio fidelity. Unprofiled receipts, exact harness, raw observer samples and unmodified native frames, SHA-256 Deferred encoding: functional checkpoint, performance still unconfirmedWith the same corrected production Exact harness, receipts, provenance, raw observer samples and native frames, SHA-256 A subsequent same-process A/B mode probe completed and exited 0, but I contaminated its predeclared primary interval with local Git work overlapping one B phase. That primary comparison is excluded from clean performance evidence. The later quiet phases are retained only as a small exploratory subset, not a replacement primary; they did not corroborate a stable additional deferred-encoding gain. Its flip-packet counters also are not independent presentation timestamps. This limitation does not affect the earlier completed async/control pairs. Full limited A/B evidence, original plan, raw log and contamination record, SHA-256 AI-assisted: yes. |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — comments
Changes are opt-in, but I could not verify all changed files or run the claimed checks, so a formal approval is not justified.
What I ran
Reviewed head 6cf4c1a0b5f9dd9f2eb24afc8acbbdd5131cb189 using the prepared diff and repo_read.py reader. No build or tests were run. The description reports author-run Windows tests and performance measurements; these were not independently verified.
Results
| Check | Result | Note |
|---|---|---|
| Diff review | passed | Inspected targeted changes |
| Build and tests | not run | Author-reported results only |
| Full changed-file review | not run | Many files remain unread |
Findings
Blocking
None verified.
Non-blocking
None.
Not verified
I read review/description.md, review/commits.md, review/manifest.json, and targeted ranges of review/diff.patch. I inspected selected queue submission and command stream changes. I did not read every changed file listed in the manifest; several changed files were excluded from the review folder as too large. I did not run tests, builds, or performance measurements. The performance claims and reported test results are not independently verified.
To get this to a good state
Nothing is required. The points below are optional: complete review of the unread changed files and run the checks on this head before treating the review as a full validation.
|
@chitters2004 yes, the split works for us. Here is how I'll do it.
Thanks for the offer to test. Once async submit is up, a run in your matched setup against This PR stays a draft until batch encoding is rebuilt on #17943. Then it gets that head, or I close it and open the follow-up, whichever you prefer. Thanks @JJenkx for the qualification runs and the lifetime finding, and @Kannorhart for the colour-mask report. |
|
@Nesyth thanks, that plan works for us: async submit first on Here is what the stream gives today, at #17943's head
So what's missing is a sealed batch and the lifetime that goes with it. Since the stream is ours, we'll add it as a focused follow-up after #18029, and remove the per-window hand-off in the same change:
This is also where your speed comes from. In our 2026-11-13 GTA V session your head beat #18029 by about 10%, and the difference is the hand-off: #17943 posts per window to one encoder, while you hand over a closed batch once. rth9z's GTA V numbers on #17943 point the same way. We checked #17943's encoder drains inside an open batch: none of them waits for data that recording produces, so with whole-batch replay they either go away or move to seal, submit or teardown. A few things the two halves have to agree on, which matter most for your submitter:
To measure the pieces separately on GTA V we'd run four arms: direct + synchronous submit, direct + async submit, sealed stream replayed inline + async, and sealed stream on the pool + async. That gives the async-submit gain, the stream's own overhead, and the deferred-encoding gain each on its own. We'll start the sealed-batch branch now and link it here. If you'd rather shape the interface differently, say so and we'll follow what your pool needs. Generated by Claude Code |
|
@chitters2004 thanks, that table is exactly what I needed. The sealed batch as you describe it (records plus error slot, kept owners staying with the batch until it retires, On the four points, for the async submit PR as it stands locally (it opens after its A/B against main and the traces):
The four arms sound right. For the async submit PR itself I'll measure direct with synchronous submit against direct with async submit on |
|
@Nesyth thanks, that all lines up with what we need. Points 2 to 4 are fine as you describe them. One question on point 1, and a preference on point 4. 1. A wait that is satisfied by a later batch. At the posted head, the submitter keeps taking jobs after a failed Could the timeline wait check the failed-submit record for serials ≤ its target after the wait returns, not only while it is waiting? Separately, should the submitter stop submitting after a failure on its queue? Later batches may wait on work that never ran. A test where a waiter on N is woken by N+1 after N failed would pin this down. 4. Ownership. We'd slightly prefer the device state over a registry. Teardown order then follows from the structure, and the per-submit lookup needs no global lock. A registry keyed by device and queue, drained before On the sealed batch: we'll link the branch here once it is up. Generated by Claude Code |
|
@chitters2004 good catch on point 1, that was a real hole. It is fixed in the local branch:
On point 4 I'll keep the registry for now, since it keeps this PR smaller. Moving the submitters into the device state can come with the batch encoding PR, which touches that code anyway. |
|
@Nesyth thanks, that closes it. One check: does a failed encode take the same path? At Generated by Claude Code |
|
@chitters2004 the async submit PR has no encoder: it submits command buffers recorded on the usual path, so there is no encode failure there. The empty batch after a failed encode at |
|
@chitters2004 async submit is up as #22190, split out as agreed: one submitter thread per queue behind Batch encoding follows on #17943's stream once #17943 and #18029 are in. |
|
@Nesyth the sealed batch is up as #22697, on #18029. It is the interface you said the encoder pool needs, and every listed command now streams; a batch demotes only on a
A failed replay takes the path you described for a failed submit: it is latched, that batch is not submitted, later
If anything in the interface is missing or shaped wrong for batch encoding, say so and we'll change it here rather than in your PR. Generated by Claude Code |
|
@chitters2004 thanks, I read #22697 against what the encoder pool needs. The batch object is the right shape: One seam is missing, and I'd rather it lived here than in my PR. Today the batch is sealed inside
That also settles your three open points in one place: the label mark and the hold semaphore are captured per batch at seal, and a sealed batch that fails before it is queued latches its own serial. Batch encoding then only moves the second step to the submitter thread and changes who waits. A small one: Everything else I'd keep exactly as it is. The order stays #17943, #18029, #22697, then batch encoding on #22190. |
|
@Nesyth the split you asked for is in #22697 as one added commit (
New tests, each checked to fail when its part of the change is removed:
The existing tests are unchanged and pass. Submit cost, base vs this commit, 6 interleaved rounds of 7×2000 One thing to know when you queue from your own thread: lookups of pending reads, writes and labels still check the open and in-flight batches only. That is safe while AI-assisted: yes |
|
@chitters2004 thanks, I read On the lookups: I won't queue outside the GPU lock, so they can stay as they are. When batch encoding goes onto #22190, the drawing thread will still run the queue step's bookkeeping under the lock right after One edge case in |
|
@Nesyth thanks, that was a real bug. Fixed in #22697 as one added commit, When the queue step of the newest sealed batch failed and another batch was already open, New test, in the sealed batch tests of
The lookups and your restructuring of AI-assisted: yes |
|
@chitters2004 thanks, I read |
ligmaSec
left a comment
There was a problem hiding this comment.
The trial merge onto c1601e56d5 conflicts in the recorder, device, resource, and runtime-switch files. When resolving it, preserve the command-stream ownership tests for nested pNext and supported arrays, as well as the queue-submit tests that keep submission order when encoding finishes out of order. The synchronous verify mode is useful to isolate stream capture, but it does not exercise handoff failure or batch retirement on the threaded path. Re-run both modes and capture paired scene traces before carrying forward a speed result.
AI-assisted: yes.
What
The draw committer records every Vulkan command of a batch by calling the driver, and submits the batch itself. With the two switches of this PR it does neither, and that time moves to other threads.
APS5_ASYNC_SUBMIT: the recorder hands each closed batch to a queue submitter thread, which callsvkQueueSubmitin order. Every other submit, present or wait on that queue drains the submitter first under the queue lock.APS5_DEFERRED_ENCODE(withAPS5_ASYNC_SUBMIT): a batch opened while it is set records its commands into a command stream instead of a command buffer. At submit an encoder thread (APS5_ENCODERS, 2 by default, 1 to 3) replays the stream into a command buffer of its own pool, and the submitter waits for that encode before it submits the batch in order.RecordCommandStreams, installed next toDeferDestructionToIdle), so everyvkCmd*function the driver resolves is one thunk per command. The thunk appends the call, with a copy of what its pointers name, when the command buffer is a stream handle, and calls the driver otherwise. AvkCmd*name without a thunk throws when it is resolved, so a new command cannot hand a stream handle to the driver. 53 commands are recorded.APS5_VERIFY_DEFERRED_ENCODEreplays each stream on the submitting thread instead of an encoder thread, to tell stream bugs from threading bugs.APS5_ABcan toggle them. With both unset the only change is thatvkCmd*lookups return the thunks, which call the driver.VK_EXT_descriptor_heapcommands are not in the stream: the Vulkan headers on main do not have them yet. They need thunks when feat(agc): GPU descriptor heap on VK_EXT_descriptor_heap (APS5_GPU_HEAP) #9508 lands.Five commits: the queue submitter, the command stream, the encoder threads, a fix for reusing a retired batch, and the fix for the two problems the Windows check of ddb0003 found (a test target that compiles
PipelineCache.cppalone did not link, and the mock device ofagc_recorder_deferred_encode*lackedvkCmdPushConstants). Three targets that compileResources.cppalone get a queue access that does nothing (tests/QueueAccessNone.cpp).Design note: batches encoded and submitted off the drawing thread
Scope once this sits on #17943 and #18029
#17943 defers the
vkCmd*calls of a draw's recording window and replays them on one encoder thread per devicewhile the batch is still open; #18029 adds transfers and occlusion queries to that stream. This PR keeps two
things they do not have and drops everything else:
is closed, by one of
APS5_ENCODERSthreads (1 to 3, 2 by default), so batches encode side by side.vkQueueSubmitruns on one thread per queue, in the order thebatches were closed; the drawing thread does not wait at
Submit.Both stay opt-in (
APS5_ASYNC_SUBMIT,APS5_DEFERRED_ENCODE); with both unset the defaultvkCmd*path isthe one #17943 leaves.
Threads and ownership
APS5_DRAW_PIPELINE, otherwise the queue worker)Close), its own pool and buffers. No Recorder state, no guest memory.VkQueue)vkQueueSubmitunder the queue mutex.QueueAccess: drains the submitter, then holds the queue mutex.What is recorded
A batch opened while
APS5_DEFERRED_ENCODEis set has noVkCommandBuffer; its command handle is a streamhandle. Each recorded
vkCmd*call is appended with a copy of everything its pointers name, so the streamholds values only. Objects a command refers to are kept by the batch as they are today and released when the batch
completes, which is after its fence signalled, so after its submit and its encode.
Ordering
command buffer is the one inline recording produces (
agc_command_stream,agc_recorder_deferred_encode*compare them).
strictly in that order. An encode that finishes early waits in its ticket; a late one makes the submitter
wait (
EncodeTicket::Wait), never reorder.QueueAccessdrains the submitter before a present, a direct submit ora wait, so they see every earlier batch submitted.
(
WaitSubmitReturned) before the batch's results are read.vkCmd*the driver resolves, thecheckpoint markers and the query commands included, is a thunk that records into the stream; a
vkCmd*name without a thunk throws when it is resolved, so no path can hand a stream handle to the driver.
Where the drawing thread waits
Never while recording and never at
Submit. It waits only where it needs the queue (throughQueueAccess) or abatch's result (through the batch's fence, after its submit returned).
Failure
An exception during a replay fails the ticket. The submitter then submits that batch without commands, so its
fence and semaphores still signal in order, stores the error, and the drawing thread gets it at its next
enqueue (
RethrowFailure). A failure ofvkQueueSubmitis stored and rethrown the same way.Fallbacks
APS5_VERIFY_DEFERRED_ENCODE: every stream is replayed on the submitting thread, which separates streamerrors from threading errors.
What it adds to #17943, and what it costs
vkQueueSubmitoff the drawing thread; no settle pointwhile a batch records, because nothing touches a real command buffer before the batch is closed.
records; the submitter's waits for encodes are counted (
[encode]line).can, this PR reuses it and drops its own stream and thunks; if not, the note will say what is missing.
Measured (main 7f96086, an open-world, draw-heavy title, in-run A/B, 10 pairs)
Presents per 10 s 105.04 -> 116.64 (+11.50 +- 0.48 against the neighbouring phases, +11.0%); frame time
95.23 -> 85.76 ms. Traces of main and of the PR from one session are linked in the description.
Tested
Windows 11 Pro 26300, Radeon RX 7900 XTX (AMD Software 26.10.1), Ryzen 7 7800X3D, Release, MinGW-w64 GCC 15.2.
An open-world, draw-heavy title on main 7f96086, the same save and scene in every boot, no other switches.
In-run A/B on the PR build (
APS5_AB=30:APS5_ASYNC_SUBMIT+APS5_DEFERRED_ENCODE, phases of 30 s from 190 s after the first present, 10 pairs, read withtools/ab_split.py):Separate boots, 313 s in game each, with
APS5_TRACE_SECONDS=300:30:Two more boots of main without a trace gave 7.46 and 7.78 FPS over 229 s in game. No boot had a fatal error or a lost device. The measured build is 151796f744. The head differs from it in tests and in where the thunks are installed; one more boot of the head with both switches set gave 8.48 FPS over 143 s, again without a fatal error.
Both traces are incomplete: the queue worker and the draw committer filled their buffers inside the 30 s window, as the digests below say. The summary lines are complete.
Traces, both captured on the same machine in one session: main 7f96086b4e, this PR.
Tests: on the head, after a build of every target:
agc_command_stream,agc_driver_recorder,agc_driver_recorder_deferred_encodeand_verify,agc_recorder_deferred_encode,_one,_threeand_verify,agc_submit_progress_deferred_encodeand_verify,agc_pipeline_cache_allocation_*,agc_buffer_pool*,agc_command_batch_failure,agc_driver_pooled_buffer_range,agc_deferred_destructionand the runtime switch tests pass (28 of 28).trace_digest: main 7f96086
seconds 300:30 from present 4191: 219 presents, frame p50 136.5 / p90 144.7 / p99 156.2 / max 193.5 ms, GPU busy 32.7 ms per present
AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 7f96086, dropped: yes
{"commit":"7f96086b4e9f","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"<withheld>","title":"<withheld>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":4191,"ms":30102.174},"presents":219,"frame_ms":{"p50":136.453,"p90":144.67,"p99":156.19,"max":193.475},"gpu_busy_ms_per_present":32.723,"worker_busy_pct":{"queue worker 0x0":97.421},"top_phases_ms_per_frame":{"Driver.Packet":127.279,"Graphics.Draw":101.951,"Driver.Packet.draw":99.611,"Driver.Draw":98.448,"Graphics.Draw.draw_and_resource_release":86.987,"Driver.Draw.shader_compile_and_link":49.714,"Shader.DrawStage":36.081,"Driver.Draw.draw_enqueued":31.328},"owned_draw_counts":{},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":4.989,"events_lost":1312170,"totals_full":false},"draw committer":{"events_full_after_s":10.904,"events_lost":460652,"totals_full":false}},"trace":"aps5-trace-7f96086b4e9f-87472.json.gz"}Incomplete trace: recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately.
Slowest frames (largest slices inside each, inclusive)
Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): batch 32.7, Graphics.Draw 31.1, Graphics.Draw.draw_and_resource_release 25.2, Driver.Packet 16.7, Driver.Packet.draw 13.7, Driver.Draw 13.5, VideoOut.Flip 7.7, Driver.Present 7.6, VideoOut.Flip.present 7.5, Driver.Draw.shader_compile_and_link 4.5
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
trace_digest: this PR, both switches set
seconds 300:30 from present 4494: 250 presents, frame p50 120.0 / p90 125.4 / p99 130.1 / max 131.9 ms, GPU busy 32.3 ms per present
AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 151796f74490, dropped: yes
{"commit":"151796f74490","dirty":false,"env":{"APS5_ASYNC_SUBMIT":"1","APS5_DEFERRED_ENCODE":"1","APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"<withheld>","title":"<withheld>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":4494,"ms":30057.946},"presents":250,"frame_ms":{"p50":119.959,"p90":125.399,"p99":130.079,"max":131.933},"gpu_busy_ms_per_present":32.275,"worker_busy_pct":{"queue worker 0x0":97.347},"top_phases_ms_per_frame":{"Driver.Packet":111.063,"Graphics.Draw":90.681,"Driver.Packet.draw":87.602,"Driver.Draw":86.51,"Graphics.Draw.draw_and_resource_release":77.529,"Driver.Draw.shader_compile_and_link":44.971,"Shader.DrawStage":32.417,"Driver.Draw.draw_enqueued":25.854},"owned_draw_counts":{},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":4.977,"events_lost":1341765,"totals_full":false},"draw committer":{"events_full_after_s":11.236,"events_lost":445009,"totals_full":false}},"trace":"aps5-trace-151796f74490-98812.json.gz"}Incomplete trace: recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately.
Slowest frames (largest slices inside each, inclusive)
Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): batch 32.3, Graphics.Draw 27.9, Graphics.Draw.draw_and_resource_release 22.1, Driver.Packet 14.0, Driver.Packet.draw 11.6, Driver.Draw 11.4, VideoOut.Flip 8.2, Driver.Present 8.1, VideoOut.Flip.present 8.0, Graphics.Encode 4.4
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
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)