Repository navigation
GPU: give screen passes dedicated pipeline workers and wait budget (fixes #2433) - #2435
pushkarreddyy wants to merge 1 commit into
Conversation
5c2d0d1 to
deefe98
Compare
|
Hi @Marvisak — this PR resolves #2433 (dedicated pipeline workers and 20 s per-frame budget for screen passes so first-frame lighting table draws like |
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified against origin/main (940d32f) on Windows 11 + NVIDIA GeForce RTX 5090:
- Giving screen passes dedicated pipeline workers and a bounded wait budget (
#2433) passes all pipeline tests cleanly. cargo test -p victory-gpu pipeline::: 16/16 passed (includingscreen_pass_requires_triangle_without_inputs_or_depth).cargo clippy -p victory-gpu --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 183 files ok.
AI-assisted (Gemini 4 Neon).
catminou4
left a comment
There was a problem hiding this comment.
Dedicated pipeline workers for screen passes. Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1.
|
If any testers on untested GPU models (NVIDIA RTX 30/40/50 series, AMD RDNA2/RDNA3/RDNA4, Intel Arc, or Linux/Wine/vkd3d-proton) can test AI-assisted: yes (Gemini 4 Neon) |
|
Reviewed — the split is coherent:
Merge note: this rewrites |
|
I compared #2435 at
These are medians of per-frame means from fixed image regions. I sampled the nearest saved frame to each five-second mark from 225 through 250 seconds after GameInput creation (six distinct frames without the PR, five with it). I checked the framing against the character, opening and tower. Both runs loaded the same 295,036,268-byte pipeline library with 2,618 entries on the early-start list. With an initially empty VIctory pipeline directory, the two runs diverged. Without the PR the yard, people and tower were visible at 306 and 316 seconds after GameInput creation. With the PR the prologue title card was still visible at 285 seconds, and the captures at 310 and 318 seconds were almost black. The host continued submitting draws. I stopped both runs at 321.5 seconds from launch. I could not compare the yard lighting directly under this condition or establish what caused the difference. One run per build per cache condition. The empty-library pair ran control first, and the populated-library pair ran PR first. Each pair used isolated copies of the same save, settings and translated shader cache, with identical scripted inputs. The NVIDIA driver cache was left in place. The control window briefly lost focus during the empty-library run. The source trees differed only in the two files from this PR. All four runs ended at their planned cutoff without a logged device removal. All 24 targeted GPU pipeline tests passed on the PR build. Local integration details. |
|
Following up on the RTX 5070 Ti yard test at I then repeated the pair with a local diagnostic that associated the currently bound color target with each named draw and read back mip 0 at the next present. The four pairs of raw texture digests matched exactly. Each target contained varying values.
The digest covered the active texel bytes of each row, excluding D3D12 row padding, before conversion to PNG. Each pair used separate copies of the same save and translated shader cache. The driver cache stayed in place. The trace pair ran PR first, and the readback pair ran control first. The independently built readback versions had identical diagnostic changes and differed only in the two source files from #2435. On this setup the control already produced all four tables at first use. Both builds still showed the dark foreground in the earlier yard comparison. We have not checked how a later pass samples these tables, or compared their values with a console reference. |
|
Automated triage for the maintainers. Needs rebase. This PR no longer merges cleanly into From the earlier needs-work note, still open: a run where Generated by Claude Code |
…ixes Marvisak#2433) # Conflicts: # crates/victory-gpu/src/pipeline/make.rs
deefe98 to
d783c09
Compare
|
Rebased cleanly onto latest Thank you AI-assisted: yes (Gemini 4 Neon) |
Fixes #2433.
Root Cause
One-off screen passes (no vertex input, no depth/stencil testing, triangle topology) — such as
PS_IntegrateEnvBRDF*andPS_AreaLightIlluminancethat fill lighting tables once at world entry — previously shared the same worker pool and 500 ms per-frame wait budget (BUDGET) as 1,200+ world mesh and compute pipelines. Stuck behind world pipelines, they waited past the frame budget and were dropped, leaving diffuse lighting tables unpopulated.Implementation Details
crates/victory-gpu/src/pipeline/host.rs):GraphicsState::screen_pass(&self) -> bool, returningtruewheninputsis empty,depth_format == DXGI_FORMAT_UNKNOWNor bothDepthEnableandStencilEnableare false, andtopology == D3D12_PRIMITIVE_TOPOLOGY_TYPE_TRIANGLE.crates/victory-gpu/src/pipeline/make.rs):screen: booltoPending.QUEUES,WORKERS, andwait()'s per-frameFRAME/WAITED_UStracking into two independent kinds: ordinary pipelines (BUDGET = 500 ms,2..=8workers) and screen passes (SCREEN_BUDGET = 20 s,2dedicatedvictory-pipelines-screen-*workers).Verification
screen_pass_requires_triangle_without_inputs_or_depthunit test incrates/victory-gpu/src/pipeline/host.rsverifying depth-free triangle pass classification, depth-enabled rejection, and vertex-input rejection.draws_go_ahead_of_early_startsandfirst_use_is_made_by_a_workertests inmake.rsremain intact.Scope & Limitations
@Belobug'sVIctory-Belobug-AMD@18e57dbonto currentmain(940d32f).