GPU: report CPU preparation in slow submission warnings #3569

Open
github-bot wants to merge 1 commit from github-bot/gh-3569 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-27 18:37 UTC · original
andrewpozdnakov7-jpg:codex2/submission-prep-warning → main · +13 −5 · 1 files · 1 commits · open

Add prepare_ms to the slow host submission warning. The existing ms field measures queue submission and the fence wait after CPU preparation. The new field shows both intervals for the same submission, which came up in the timing discussion on #2626. The 250 ms warning threshold still applies to the queue interval.

I compared main and this commit with a closed synthetic D3D12 list on app-local WARP. A temporary test lowered the warning threshold and used short host-side sleeps at the two timer boundaries. On main the warning carried only ms. The patched event carried prepare_ms=12 and ms=23. Both fields matched the corresponding internal counters rounded down to milliseconds. The temporary fixture was removed before the full suite.

On app-local Agility and WARP, 246 repository GPU tests and one SDK module check passed, with one ignored. Strict GPU Clippy in both feature configurations and the asset policy passed.

Coordination claim

AI-assisted with Codex. Please retain the Git author on cherry-pick or rebase. If this is folded into another commit, please add Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-27 18:37 UTC · [original](https://github.com/Marvisak/VIctory/pull/3569) `andrewpozdnakov7-jpg:codex2/submission-prep-warning` → `main` · +13 −5 · 1 files · 1 commits · open Add `prepare_ms` to the `slow host submission` warning. The existing `ms` field measures queue submission and the fence wait after CPU preparation. The new field shows both intervals for the same submission, which came up in the [timing discussion on #2626](https://git.gtahub.st/github/Marvisak--VIctory/pulls/2626). The 250 ms warning threshold still applies to the queue interval. I compared `main` and this commit with a closed synthetic D3D12 list on app-local WARP. A temporary test lowered the warning threshold and used short host-side sleeps at the two timer boundaries. On `main` the warning carried only `ms`. The patched event carried `prepare_ms=12` and `ms=23`. Both fields matched the corresponding internal counters rounded down to milliseconds. The temporary fixture was removed before the full suite. On app-local Agility and WARP, 246 repository GPU tests and one SDK module check passed, with one ignored. Strict GPU Clippy in both feature configurations and the asset policy passed. [Coordination claim](https://git.gtahub.st/github/Marvisak--VIctory/issues/1633) AI-assisted with Codex. Please retain the Git author on cherry-pick or rebase. If this is folded into another commit, please add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 18:38:27 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-27 18:40 UTC · original

Windows CI passed on 14a950f.

With a synthetic closed D3D12 list on WARP, the test warning carried prepare_ms=12, ms=23 and lists=1. Both times matched the internal counters at whole-millisecond precision. The test uses a lowered threshold and short host-side delays. The production warning fires after 250 ms on the submission interval.

Next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding it into another commit.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-27 18:40 UTC · [original](https://github.com/Marvisak/VIctory/pull/3569#issuecomment-7225745244) [Windows CI](https://github.com/Marvisak/VIctory/actions/runs/46050858161/job/140681502269) passed on `14a950f`. With a synthetic closed D3D12 list on WARP, the test warning carried `prepare_ms=12`, `ms=23` and `lists=1`. Both times matched the internal counters at whole-millisecond precision. The test uses a lowered threshold and short host-side delays. The production warning fires after 250 ms on the submission interval. Next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding it into another commit.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3569/head:github-bot/gh-3569'
git switch 'github-bot/gh-3569'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3569'
git switch 'github-bot/gh-3569'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3569'
git switch 'github-bot/gh-3569'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3569'
git switch 'main'
git merge --squash 'github-bot/gh-3569'
git switch 'main'
git merge --ff-only 'github-bot/gh-3569'
git switch 'main'
git merge 'github-bot/gh-3569'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!3569
No description provided.