GPU: give screen passes dedicated pipeline workers and wait budget #892
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!892
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-892"
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?
@sagouindupm on GitHub · 2026-11-25 12:02 UTC · original
sagouindupm:screen-pass-workers→main· +125 −39 · 2 files · 1 commits · openPorts the dedicated screen-pass pipeline worker pool and wait budget idea from
Belobug/VIctory-Belobug-AMD(18e57db8,GPL-3.0-or-later) onto upstreammain(f85101b), preservingmain's two-levelQueue(early/requestedpromotion) andshared_budget()tracking.Summary of changes
crates/victory-gpu/src/pipeline/host.rs: AddGraphicsState::screen_pass(&self) -> boolidentifying triangle draws with no vertex inputs and no active depth/stencil (depth_format == DXGI_FORMAT_UNKNOWNor!DepthEnable && !StencilEnable).crates/victory-gpu/src/pipeline/make.rs:Pendingwithscreen: boolfromGraphicsState::screen_pass().QUEUE/AVAILABLEinto ordinary (0) and screen-pass (1) queues, served by 2 dedicatedvictory-screen-pipelines-{i}worker threads alongside the existingvictory-pipelines-{i}pool so full-screen/lighting table setup passes do not wait behind thousands of queued world draw pipelines.SPENTtracker andscreen_wait_budget()(VICTORY_SCREEN_PIPELINE_WAIT_MS, default 20 s; 0 whenVICTORY_PIPELINE_WAIT_MS=0) without eating into the 500 ms ordinary draw wait budget.screen_pass_classifies_inputless_depthless_trianglesandscreen_pass_uses_dedicated_queue_and_worker.Attribution
Belobug/VIctory-Belobug-AMDcommit18e57db8("Screen passes get pipeline workers and a wait budget of their own"), licensed underGPL-3.0-or-later.Verification
Run on Windows 11 Pro (x86_64-pc-windows-msvc, Rust 1.98.1, RTX 3050 8 GB, driver
621.40):cargo test --release -j 6 -p victory-gpu -- pipeline --test-threads=1-> 13 passed; 0 failed (including both new tests).cargo test --release -j 6 -p victory-gpu -- --test-threads=1-> 160 passed; 1 failed; 4 ignored (the 1 failure is the pre-existingorigin/mainWARP scheduler-order testindirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields, tracked in #849/#864).cargo clippy -j 6 -p victory-gpu --all-targets --no-deps-> 0 warnings inpipeline/host.rsandpipeline/make.rs(3 pre-existing warnings in untouchedresource.rs/draw.rs/indirect.rsonf85101b).cargo run -j 6 -p xtask -- policy->asset policy: 175 files ok.AI-assisted: adapted for
origin/main'sQueue/shared_budget()structure, unit-tested, and written with AI assistance.f85101b: the same four refusals, plus pipelines left "being made" for the whole run #904View 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.Merge
Merge the changes and update on Forgejo.