Pipelines: a wait budget per pipeline over all frames; a panic while making one is a refusal (#73) #303
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!303
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-303"
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?
@urielbeaupre on GitHub · 2026-11-26 15:16 UTC · original
urielbeaupre:fix/pipeline-wait-per-pipeline→main· +106 −3 · 2 files · 1 commits · openFixes the two gaps described in #73.
1. A wait budget per pipeline.
wait()limited waiting per frame only, so a pipeline whose build outlasts the budget (or that is never made) took the whole 500 ms again in every frame that bound it. fxceless/victory-fork#1181 measured 500.1 ms waited per world frame with four stuck pipelines; #61 and #67 have that shape.Pendingnow keeps the time draws waited for it.wait()takes the smaller of what the frame and the pipeline have left, and returns at once when the pipeline's budget is spent. The draw is then dropped, as one past the frame's budget already is, and finds the pipeline when a worker has made it.VICTORY_PIPELINE_WAIT_EACH_MS: 500 by default;0means no limit, as before. Added to the switch table indocs/README-fxceless.md.VICTORY_SCREEN_WAIT_MSonce in all, not in every frame.2. A panic while making a pipeline is a refusal.
HostPipeline::newnow runs undercatch_unwind, as inlist/thin.rs,host/aside.rs,land.rsandqueue/behind.rs. A panic is logged with the shaders andmadeis set toNone. Before, it ended the worker with the pipeline left inMAKINGfor good, and its places inWAITINGandslow_nowwere never given back.Not included: negative entries in
shader_cache::cached(the "Smaller" item in #73).Tests: three new tests in
pipeline::make: the budget arithmetic; a pipeline that is never made is waited for until its own budget is spent and not again in later frames; a panic while making is a refusal.cargo test --workspace --lockedpasses (1,006 tests).cargo test -p victory-gpu --all-features -- --test-threads=1passes (437). Clippy with-D warningsfails on main already, atwatch.rs:3626anddescriptor_sites.rs:277; this change adds no warnings.Not run in the title. The tests were run on an RTX 4070 Ti with Windows 11. A before/after on a cold pipeline cache (
VICTORY_PIPELINE_WAIT_EACH_MS=0against the default) would confirm the default is right.🤖 Generated with Claude Code
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.Merge
Merge the changes and update on Forgejo.