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

Open
BradRoland wants to merge 1 commit from upstream-pr/1194 into main
BradRoland commented 2026-11-25 23:26:58 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by BradRoland on 2026-11-25T23:26:58Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6615874031 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1194). Originally posted by [BradRoland](https://github.com/BradRoland) on 2026-11-25T23:26:58Z. --- 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1194:upstream-pr/1194'
git switch 'upstream-pr/1194'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1194'
git switch 'upstream-pr/1194'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1194'
git switch 'upstream-pr/1194'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1194'
git switch 'main'
git merge --squash 'upstream-pr/1194'
git switch 'main'
git merge --ff-only 'upstream-pr/1194'
git switch 'main'
git merge 'upstream-pr/1194'
git push origin 'main'
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
fxceless/victory-fork!1191
No description provided.