gpu: isolate CS_RaytracingResolve pipelines in a background worker queue #402

Closed
github-bot wants to merge 1 commit from github-bot/gh-402 into main AGit
Owner

@⁠Kikoarl on GitHub · 2026-11-27 21:55 UTC · original
Kikoarl:feat/rt-resolve-queue → main · +146 −9 · 1 files · 1 commits · closed without merging

Summary

Ports the CS_RaytracingResolve background worker queue isolation from fxceless/victory-fork commit 52dfd12 (GPL-3.0-or-later), rebased onto main (df2daaf).

Note: This PR intentionally excludes the VICTORY_MEMORY_NEAR walker cache from 52dfd12, which is already covered separately by PR #328.

Changes

  • crates/victory-gpu/src/pipeline/make.rs:
    • Separates CS_RaytracingResolve pipelines into Queue::resolves, throttled by resolve_limit() / resolve_limit_for(), so graphics/compute pipeline workers stay free during heavy RT resolve compilation batches.
    • Marks live resolve builds Pending::no_wait so callers do not stall behind resolve compilation, and logs waits of >= 50 ms for diagnosis.

Verification

Verified on Windows (x86_64-pc-windows-msvc) against main (df2daaf):

  • git diff --check main..HEAD — clean
  • cargo test -p xtask --locked — 6 passed, 0 failed (asset policy: 287 files ok)
  • cargo clippy -p victory-gpu --all-targets --locked — exit 0, 0 warnings in changed files (main has pre-existing clippy warnings in untouched files)
  • cargo test -p victory-gpu --locked pipeline:: — 25 passed, 0 failed
**@⁠Kikoarl** on GitHub · 2026-11-27 21:55 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/402) `Kikoarl:feat/rt-resolve-queue` → `main` · +146 −9 · 1 files · 1 commits · closed without merging ### Summary Ports the `CS_RaytracingResolve` background worker queue isolation from `fxceless/victory-fork` commit `52dfd12` (`GPL-3.0-or-later`), rebased onto `main` (`df2daaf`). *Note: This PR intentionally excludes the `VICTORY_MEMORY_NEAR` walker cache from `52dfd12`, which is already covered separately by PR #328.* ### Changes - **`crates/victory-gpu/src/pipeline/make.rs`**: - Separates `CS_RaytracingResolve` pipelines into `Queue::resolves`, throttled by `resolve_limit()` / `resolve_limit_for()`, so graphics/compute pipeline workers stay free during heavy RT resolve compilation batches. - Marks live resolve builds `Pending::no_wait` so callers do not stall behind resolve compilation, and logs waits of `>= 50 ms` for diagnosis. ### Verification Verified on Windows (`x86_64-pc-windows-msvc`) against `main` (`df2daaf`): - `git diff --check main..HEAD` — clean - `cargo test -p xtask --locked` — 6 passed, 0 failed (`asset policy: 287 files ok`) - `cargo clippy -p victory-gpu --all-targets --locked` — exit 0, 0 warnings in changed files (`main` has pre-existing clippy warnings in untouched files) - `cargo test -p victory-gpu --locked pipeline::` — 25 passed, 0 failed
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 21:58:22 +00:00
github-bot closed this pull request 2026-11-28 20:28:50 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-28 20:23 UTC · original

Thanks for this. I'm closing it without merging: main reworked the pipeline workers' queue since (newest requests first, the dead ray-tracing pass policy, and a compute wait that is now capped per frame), and this conflicts with it in six places in make.rs. If the background queue for CS_RaytracingResolve still helps on the current main, please rebase it and open a new pull request.

**@⁠trustno1-coder** on GitHub · 2026-11-28 20:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/402#issuecomment-7245249523) Thanks for this. I'm closing it without merging: main reworked the pipeline workers' queue since (newest requests first, the dead ray-tracing pass policy, and a compute wait that is now capped per frame), and this conflicts with it in six places in make.rs. If the background queue for CS_RaytracingResolve still helps on the current main, please rebase it and open a new pull request.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!402
No description provided.