Trace pipeline builds by their saved prewarm keys before the first frame #1194

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

@⁠BradRoland on GitHub · 2026-11-25 23:26 UTC · original
BradRoland:codex/trace-startup-pipeline-keys → main · +30 −2 · 2 files · 1 commits · open

The startup report in #1181 narrowed a hang to a set of 14 entries in early-pipelines.txt. Reading that file only establishes membership. The title later creates matching pipelines, and several workers can compile them at once. A tester needs the saved key of each outstanding build, even if the first frame never arrives.

This adds two diagnostics-level events around the actual host pipeline construction. The start records the saved pipeline key, thread ID, and shader stage/hash. The finish repeats the key and thread and records whether a host pipeline was made. The events are inside the one-time initializer so another caller requesting the same pending build does not duplicate them. Set VICTORY_LOG=info,victory_gpu::pipeline::make=debug for a diagnostics build. Stderr can be captured from launch, and the diagnostics README includes the PowerShell command.

I verified the ordering with a synthetic shader, a temporary early list, the real prewarm worker and the application's logging subscriber. With translation held open, I read a matching start before releasing the worker. A D3D12 WARP compute pipeline then logged made=true, and a separate refused build logged made=false. Re-requesting the same pending pipeline produced one pair. The normal info filter was silent for these events. No game files were used. An unmatched start identifies work still outstanding when logging stopped. Establishing which pipeline causes the reported hang still requires a run on the affected setup.

**@⁠BradRoland** on GitHub · 2026-11-25 23:26 UTC · [original](https://github.com/fxceless/victory-fork/pull/1194) `BradRoland:codex/trace-startup-pipeline-keys` → `main` · +30 −2 · 2 files · 1 commits · open The startup report in #1181 narrowed a hang to a set of 14 entries in `early-pipelines.txt`. Reading that file only establishes membership. The title later creates matching pipelines, and several workers can compile them at once. A tester needs the saved key of each outstanding build, even if the first frame never arrives. This adds two diagnostics-level events around the actual host pipeline construction. The start records the saved pipeline key, thread ID, and shader stage/hash. The finish repeats the key and thread and records whether a host pipeline was made. The events are inside the one-time initializer so another caller requesting the same pending build does not duplicate them. Set `VICTORY_LOG=info,victory_gpu::pipeline::make=debug` for a diagnostics build. Stderr can be captured from launch, and the diagnostics README includes the PowerShell command. I verified the ordering with a synthetic shader, a temporary early list, the real prewarm worker and the application's logging subscriber. With translation held open, I read a matching start before releasing the worker. A D3D12 WARP compute pipeline then logged `made=true`, and a separate refused build logged `made=false`. Re-requesting the same pending pipeline produced one pair. The normal info filter was silent for these events. No game files were used. An unmatched start identifies work still outstanding when logging stopped. Establishing which pipeline causes the reported hang still requires a run on the affected setup.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:59:17 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/pipeline/make.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1194'
git switch 'github-bot/gh-1194'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1194'
git switch 'github-bot/gh-1194'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1194'
git switch 'main'
git merge --squash 'github-bot/gh-1194'
git switch 'main'
git merge --ff-only 'github-bot/gh-1194'
git switch 'main'
git merge 'github-bot/gh-1194'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.