GPU: limit repeated waits for pending pipelines #3607
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3607"
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 pablogonz12 on 2026-11-27T20:38:29Z.
Summary
I limit the total time spent waiting for a pending pipeline to one 500 ms budget from its first wait. Once overdue, it is still made by its worker, but later frames no longer wait another 500 ms for it.
Evidence
-D warnings.Merge Danger
Door: Two-way.
Blast Radius: Rendering. A pipeline still compiling after its deadline may cause draws, including one-shot passes, to be skipped until it is ready.
Imported from Marvisak/VIctory. Originally posted by upipibi on 2026-11-28T02:31:41Z.
A measured case for the one-shot passes named in the merge danger here (read from other trees' threads; not run here):
TaynanGT/Vice-Tay#372 traced missing facial geometry to one. The first dispatch that builds the head blend-shape map can arrive while its compute pipeline is still compiling. On an RTX 4090 (Series S), they measured 29.83 s between the first bind and the pipeline being made, in a run where faces were missing. Their fix queues that pipeline at creation with priority, and lets its dispatch wait up to 2 s. With the pipeline ready first, a 4K capture showed complete faces. Related: avatarmanz/VIctory-7900XTX#166, and crossducking/RAZDA4A-XEN's notes credit a 5,000 ms compute wait budget with "fixing missing character faces".
That pass loses on main as well as here: its one dispatch gets at most the frame's 500 ms, and it doesn't come back. So it isn't an argument against this change, which is about dispatches that recur. The fix for passes like it is the part this PR doesn't cover: early, prioritised making of the pipelines one-shot passes use (the head map's in Vice-Tay's case), so their first dispatch finds them ready.
AI-assisted (Claude Code, Claude Opus 5.5 read those threads and this diff).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.