GPU: give screen passes dedicated pipeline workers and wait budget #2431

Open
opened 2026-11-25 13:26:19 +00:00 by pushkarreddyy · 1 comment
pushkarreddyy commented 2026-11-25 13:26:19 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-25T13:26:19Z.


Summary

One-off screen passes (no vertex input, no depth/stencil testing, triangle topology) such as PS_IntegrateEnvBRDF* and PS_AreaLightIlluminance fill lighting tables once at world entry. Currently on main (940d32f), they share the same pipeline worker pool and 500 ms per-frame wait budget (BUDGET) as 1,200+ world mesh/compute pipelines, causing them to stall behind world pipelines and get dropped (resulting in missing diffuse light and white bloom indoors).

Proposed Change

Give screen passes dedicated pipeline workers (2) and an independent per-frame wait budget (20 s, below the title's 30 s watchdog), adapted from @Belobug's VIctory-Belobug-AMD@18e57db onto current main.

Claiming this issue and opening a PR shortly.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6605533956 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2433). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-25T13:26:19Z. --- ### Summary One-off screen passes (no vertex input, no depth/stencil testing, triangle topology) such as `PS_IntegrateEnvBRDF*` and `PS_AreaLightIlluminance` fill lighting tables once at world entry. Currently on `main` (`940d32f`), they share the same pipeline worker pool and 500 ms per-frame wait budget (`BUDGET`) as 1,200+ world mesh/compute pipelines, causing them to stall behind world pipelines and get dropped (resulting in missing diffuse light and white bloom indoors). ### Proposed Change Give screen passes dedicated pipeline workers (`2`) and an independent per-frame wait budget (`20 s`, below the title's 30 s watchdog), adapted from `@Belobug`'s `VIctory-Belobug-AMD@18e57db` onto current `main`. *Claiming this issue and opening a PR shortly.*
Marvisak commented 2026-11-25 16:09:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T15:50:00Z.


Automated triage for the maintainers.

Request; it fits the project's scope. The description of main (da82e44) is accurate: crates/victory-gpu/src/pipeline/make.rs has one worker pool (queue, half the logical processors, 2 to 8) and one 500 ms per-frame wait budget (BUDGET, used by wait) for every pipeline, and ready returns nothing for a pipeline not made within that budget, so its draw is skipped that frame. A pass drawn only once is then never drawn. Whether these passes should get their own workers and a longer wait (up to 20 s per frame in the proposal) is the maintainers' call. Open PR #2435 implements it.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7167352732 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2433#issuecomment-7167352732). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T15:50:00Z. --- <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T13:26:19Z at=2026-11-25T15:49:53Z --> Automated triage for the maintainers. Request; it fits the project's scope. The description of main (da82e44) is accurate: `crates/victory-gpu/src/pipeline/make.rs` has one worker pool (`queue`, half the logical processors, 2 to 8) and one 500 ms per-frame wait budget (`BUDGET`, used by `wait`) for every pipeline, and `ready` returns nothing for a pipeline not made within that budget, so its draw is skipped that frame. A pass drawn only once is then never drawn. Whether these passes should get their own workers and a longer wait (up to 20 s per frame in the proposal) is the maintainers' call. Open PR #2435 implements it. --- _Generated by [Claude Code](https://claude.ai/code)_
Sign in to join this conversation.
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
Marvisak/VIctory#2431
No description provided.