Make host pipeline waits configurable and prewarm pending requests #1

Manually merged
github merged 1 commit from gh-pr/1/head into gh-pr/1/base 2026-11-26 03:34:26 +00:00
Owner

@⁠ZazaJr24 on GitHub · 2026-11-24 18:50 UTC · original
codex/pipeline-prewarm-budget → main · +43 −18 · 3 files · 1 commits · merged 2026-11-24 18:55 UTC

Changes

  • Add VICTORY_PIPELINE_WAIT_MS as a per-frame host pipeline wait budget. The default is 500 ms.
  • Record a pipeline's first draw or dispatch request for the next launch even if a worker is still building it when the wait ends.
  • Use a relaxed load after the first request to avoid repeatedly writing the atomic flag on the draw path.

Validation

  • Built the Windows diagnostics target and ran the pipeline tests with the default budget and with a zero budget. The asset policy check passed.
  • Tested the Series X 1.0.2.1 prologue on a Ryzen 7 5700X3D and RTX 3080. Diagnostic timings recorded about 25 ms of per-frame pipeline wait with a 24 ms budget and about 501 ms in an earlier stock run. The full runs also differed in cache state and use of the existing texture no-wait option. Treat the total FPS as descriptive.
  • The 24 ms local profile ran for over ten minutes without a GPU reset. The prologue sample windows had a median of 1.4 FPS and peaked at 2.8 FPS. Scene lighting and some geometry are still incomplete.

A lower budget can omit a one-shot draw or dispatch for the current run. Recording it on first request allows the next launch to start warming its pipeline earlier.

AI-assisted patch with local build and runtime validation.

**@⁠ZazaJr24** on GitHub · 2026-11-24 18:50 UTC · [original](https://github.com/fxceless/victory-fork/pull/1) `codex/pipeline-prewarm-budget` → `main` · +43 −18 · 3 files · 1 commits · merged 2026-11-24 18:55 UTC ## Changes - Add `VICTORY_PIPELINE_WAIT_MS` as a per-frame host pipeline wait budget. The default is 500 ms. - Record a pipeline's first draw or dispatch request for the next launch even if a worker is still building it when the wait ends. - Use a relaxed load after the first request to avoid repeatedly writing the atomic flag on the draw path. ## Validation - Built the Windows diagnostics target and ran the pipeline tests with the default budget and with a zero budget. The asset policy check passed. - Tested the Series X 1.0.2.1 prologue on a Ryzen 7 5700X3D and RTX 3080. Diagnostic timings recorded about 25 ms of per-frame pipeline wait with a 24 ms budget and about 501 ms in an earlier stock run. The full runs also differed in cache state and use of the existing texture no-wait option. Treat the total FPS as descriptive. - The 24 ms local profile ran for over ten minutes without a GPU reset. The prologue sample windows had a median of 1.4 FPS and peaked at 2.8 FPS. Scene lighting and some geometry are still incomplete. A lower budget can omit a one-shot draw or dispatch for the current run. Recording it on first request allows the next launch to start warming its pipeline earlier. AI-assisted patch with local build and runtime validation.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:34:24 +00:00
github manually merged commit 8fa8fb208c into gh-pr/1/base 2026-11-26 03:34:26 +00:00
Author
Owner

@⁠fxceless on GitHub · 2026-11-24 18:55 UTC · original

Merged, thank you. Reviewed, built, linted and tested here; the default budget is unchanged, and recording a pipeline at its first request is a good improvement for the next launch.

**@⁠fxceless** on GitHub · 2026-11-24 18:55 UTC · [original](https://github.com/fxceless/victory-fork/pull/1#issuecomment-7141344423) Merged, thank you. Reviewed, built, linted and tested here; the default budget is unchanged, and recording a pipeline at its first request is a good improvement for the next launch.
This discussion has been locked. Commenting is limited to contributors.
No description provided.