Make host pipeline waits configurable and prewarm pending requests #1

Merged
ZazaJr24 merged 1 commit from upstream-pr/1 into main 2026-11-24 18:55:09 +00:00
ZazaJr24 commented 2026-11-24 18:50:23 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by ZazaJr24 on 2026-11-24T18:50:23Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6589038221 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1). Originally posted by [ZazaJr24](https://github.com/ZazaJr24) on 2026-11-24T18:50:23Z. --- ## 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.
upstream-sync closed this pull request 2026-11-24 21:30:13 +00:00
fxceless commented 2026-11-24 21:30:37 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by fxceless on 2026-11-24T18:55:32Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7141344423 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1#issuecomment-7141344423). Originally posted by [fxceless](https://github.com/fxceless) on 2026-11-24T18:55:32Z. --- 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.
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
fxceless/victory-fork!1
No description provided.