GPU diagnostics: measure pipeline worker backlog during shared shader waits #1603
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1604"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by ToxicmaggotRP on 2026-11-24T19:42:13Z.
[## Summary
Adds diagnostics-only measurements for pipeline worker occupancy while shader translations are shared through
OnceLock.This is a measurement step related to #1509. Existing translation-wait timings show that workers can block on another worker's shader initialization, but they do not show whether more pipeline jobs remain queued during those waits.
This patch measures that overlap before proposing any scheduling change.
Changes
diagnosticsfeature; normal builds and scheduling behaviour are unchanged.Scope and limitations
This PR does not introduce a dependency-aware scheduler or claim a frame-time improvement.
A non-empty queue does not by itself prove that every queued pipeline is independently runnable. These measurements are intended to establish whether the suspected worker starvation is occurring in real workloads.
Verification
mainatffe310e.scheduler_metrics.rs.Please treat this as a draft for review of the instrumentation and its measurement semantics.](https://github.com/Marvisak/VIctory/pull/1604)
Imported from Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-24T21:50:31Z.
Review: COMMENTED
Independent in-game Windows measurement for #1509 on an RTX 3080 12 GiB, driver 621.24. The diagnostics build passed all four scheduler-metrics unit tests. For the title run I used a cold VIctory cache, the Series S profile, and a local stack of this PR with #211 for Series S UI presentation and #1702 for isolated scripted controller input.
The busy rendering phase began around 69 seconds, reached 4,106 draws per frame, and the run ended in device removal about 171 seconds after launch. The last scheduler snapshot showed:
This is one cold run, with its endpoint set by device removal. The large backlog coincided with very little measured shared-translation waiting. On this trace, timing native pipeline creation and pipeline-library lock contention separately looks more informative than changing scheduling based on queue depth alone.
AI-assisted (Codex). Aggregate results only.
Pull request closed