Skip to content

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

Open
sagouindupm wants to merge 1 commit into
fxceless:mainfrom
sagouindupm:screen-pass-workers
Open

sagouindupm wants to merge 1 commit into
fxceless:mainfrom
sagouindupm:screen-pass-workers

Conversation

@sagouindupm

Copy link
Copy Markdown

Ports the dedicated screen-pass pipeline worker pool and wait budget idea from Belobug/VIctory-Belobug-AMD (18e57db8, GPL-3.0-or-later) onto upstream main (f85101b), preserving main's two-level Queue (early/requested promotion) and shared_budget() tracking.

Summary of changes

  • crates/victory-gpu/src/pipeline/host.rs: Add GraphicsState::screen_pass(&self) -> bool identifying triangle draws with no vertex inputs and no active depth/stencil (depth_format == DXGI_FORMAT_UNKNOWN or !DepthEnable && !StencilEnable).
  • crates/victory-gpu/src/pipeline/make.rs:
    • Tag Pending with screen: bool from GraphicsState::screen_pass().
    • Split QUEUE/AVAILABLE into ordinary (0) and screen-pass (1) queues, served by 2 dedicated victory-screen-pipelines-{i} worker threads alongside the existing victory-pipelines-{i} pool so full-screen/lighting table setup passes do not wait behind thousands of queued world draw pipelines.
    • Give screen passes their own per-frame SPENT tracker and screen_wait_budget() (VICTORY_SCREEN_PIPELINE_WAIT_MS, default 20 s; 0 when VICTORY_PIPELINE_WAIT_MS=0) without eating into the 500 ms ordinary draw wait budget.
    • Add unit tests screen_pass_classifies_inputless_depthless_triangles and screen_pass_uses_dedicated_queue_and_worker.

Attribution

  • Adapted from Belobug/VIctory-Belobug-AMD commit 18e57db8 ("Screen passes get pipeline workers and a wait budget of their own"), licensed under GPL-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):

AI-assisted: adapted for origin/main's Queue/shared_budget() structure, unit-tested, and written with AI assistance.

ExoCalibra added a commit to ExoCalibra/victory-exo that referenced this pull request Nov 25, 2026
ExoCalibra added a commit to ExoCalibra/victory-exo that referenced this pull request Nov 25, 2026
ExoCalibra added a commit to ExoCalibra/victory-exo that referenced this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant