Repository navigation
GPU: give screen-pass pipelines their own workers - #77
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
| static SPENT: [Mutex<(u64, Duration)>; 2] = | ||
| [const { Mutex::new((u64::MAX, Duration::ZERO)) }; 2]; | ||
| let shared = shared_budget(); | ||
| let spent_for_kind = &SPENT[usize::from(p.screen)]; |
There was a problem hiding this comment.
🔍 Pipeline wait setting understates frame delay
wait can spend the full budget on each pool in one frame. At the default, sequential waits can total 1,000 ms, twice the documented limit.
Was this helpful? React with 👍 or 👎 to provide feedback.
There was a problem hiding this comment.
Documented in b1ac1fb: VICTORY_PIPELINE_WAIT_MS is now described as per pipeline kind, so a frame can spend the limit once in the ordinary pool and once in the screen pool.
| #[test] | ||
| fn screen_passes_are_classified_for_their_own_pool() { | ||
| let ordinary = Pending::new(Vec::new(), None); | ||
| assert!(!ordinary.screen); | ||
|
|
||
| let screen = Pending::new( | ||
| Vec::new(), | ||
| Some(Box::new(GraphicsState::screen_triangle_state())), | ||
| ); | ||
| assert!(screen.screen); | ||
| } |
There was a problem hiding this comment.
There was a problem hiding this comment.
Acknowledged. I kept the deterministic coverage at classification plus the direct routing in start/next; an end-to-end isolation test would need control over pipeline compilation time, but the shared static worker pools make that inherently order-dependent in the current test harness.
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Summary
REQUESTEDantes deEARLY) e separa o orçamento de espera por tipo de pipeline, sem aumentar o tempo máximo de espera de um passe classificado incorretamente.Validation
cargo fmt --all -- --checkcargo run --locked --quiet --package xtask -- policyCARGO_FEATURE_PURE=1 RUSTFLAGS='-D warnings' cargo check -p victory-gpu --locked --target x86_64-pc-windows-msvcCARGO_FEATURE_PURE=1 RUSTFLAGS='-D warnings' cargo clippy -p victory-gpu --all-targets --locked --target x86_64-pc-windows-msvcSem validação real de jogo/GPU/Proton nesta VM.