GPU: partition observed queue gaps by submit phase #3649

Closed
ghptc wants to merge 1 commit from upstream-pr/3649 into main
ghptc commented 2026-11-30 02:49:41 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ghptc on 2026-11-30T02:49:41Z.


What changes

The graphics queue observer already counts how much of each observed empty interval overlaps submit work. This patch breaks that bucket down into inline write-watch asks, submitter waits for the auxiliary ask, batched refresh, and remaining submit work. The four fields are emitted by the existing opt-in VICTORY_QUEUE_GAPS=1 report.

An auxiliary ask contributes only while the submitter waits for it. Batched refresh includes waits for its workers. The fields use the existing empty-interval boundaries and sum to the existing submit-work bucket. The patch extends the observer from ghptc's #1126.

Validation

Type-checked the exact upstream port f3939323edc34efb852c82f9c2529d9712ef1b25 for x86_64-pc-windows-msvc with diagnostics enabled. Built the default-feature libtest binary offline and ran three selected queue-gap tests under headless Proton. They cover conservation across report windows, phase restoration, delayed recording, and ambiguous blockers. The tests use a synthetic clock. GPU timing, observer overhead and gameplay performance were outside this validation.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5558084692 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3649). Originally posted by [ghptc](https://github.com/ghptc) on 2026-11-30T02:49:41Z. --- ## What changes The graphics queue observer already counts how much of each observed empty interval overlaps submit work. This patch breaks that bucket down into inline write-watch asks, submitter waits for the auxiliary ask, batched refresh, and remaining submit work. The four fields are emitted by the existing opt-in `VICTORY_QUEUE_GAPS=1` report. An auxiliary ask contributes only while the submitter waits for it. Batched refresh includes waits for its workers. The fields use the existing empty-interval boundaries and sum to the existing submit-work bucket. The patch extends the observer from ghptc's [#1126](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1126). ## Validation Type-checked the exact upstream port `f3939323edc34efb852c82f9c2529d9712ef1b25` for `x86_64-pc-windows-msvc` with diagnostics enabled. Built the default-feature libtest binary offline and ran three selected queue-gap tests under headless Proton. They cover conservation across report windows, phase restoration, delayed recording, and ambiguous blockers. The tests use a synthetic clock. GPU timing, observer overhead and gameplay performance were outside this validation.
trustno1-coder commented 2026-12-01 18:50:05 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:50:05Z.


Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321637819 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3649#issuecomment-7321637819). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-12-01T18:50:05Z. --- Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!3649
No description provided.