Pipelines: wait at most 100 ms a frame for new ones, not 500 #397

Closed
github-bot wants to merge 0 commits from github-bot/gh-397 into main AGit
Owner

@⁠AVD-appezhax on GitHub · 2026-12-01 22:24 UTC · original
AVD-appezhax:fix/pipeline-wait-100ms → main · +9 −4 · 2 files · 72 commits · closed without merging

What it fixes: freezes on the first crash or explosion of a kind

The first crash or explosion of a kind froze the game for 490 ms to 2.5 s while its pipelines were made. The default per-frame pipeline wait budget goes from 500 ms to 100 ms. Passes over the screen keep their own 10 s budget.

Switch: VICTORY_PIPELINE_WAIT_MS=500 restores the old wait.

How it was measured

RTX 5070 12 GB, 25 minutes of play, release logs.

  • Before: frame times of 490 ms to 2.5 s at first crashes/explosions.
  • After: those freezes gone; draws dropped while "being made" stayed under one a frame.

Split out of #335 at the maintainers' request; one change per pull request, independent of the others (applies alone on main 94c3c5f).

Checks (this branch alone, on main)

  • cargo clippy --workspace --all-targets --locked -- -D warnings: clean.
  • cargo test -p victory-gpu -p victory-shader --lib --locked: all pass.

🤖 Generated with Claude Code

**@⁠AVD-appezhax** on GitHub · 2026-12-01 22:24 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/397) `AVD-appezhax:fix/pipeline-wait-100ms` → `main` · +9 −4 · 2 files · 72 commits · closed without merging ## What it fixes: freezes on the first crash or explosion of a kind The first crash or explosion of a kind froze the game for 490 ms to 2.5 s while its pipelines were made. The default per-frame pipeline wait budget goes from 500 ms to 100 ms. Passes over the screen keep their own 10 s budget. **Switch:** `VICTORY_PIPELINE_WAIT_MS=500` restores the old wait. ## How it was measured RTX 5070 12 GB, 25 minutes of play, release logs. - Before: frame times of 490 ms to 2.5 s at first crashes/explosions. - After: those freezes gone; draws dropped while "being made" stayed under one a frame. Split out of #335 at the maintainers' request; one change per pull request, independent of the others (applies alone on `main` 94c3c5f). ## Checks (this branch alone, on main) - `cargo clippy --workspace --all-targets --locked -- -D warnings`: clean. - `cargo test -p victory-gpu -p victory-shader --lib --locked`: all pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The first crash, explosion or other effect of a kind froze the game: its
pipelines were made on first use and the title frame waited up to half a
second for them (frames of 490 ms in a row, up to 2.5 s, each lined up
with "first bind" / "shader translated" lines). At 100 ms a draw whose
pipeline is not ready is dropped for a frame or two instead.

Tested on an RTX 5070 12 GB with VICTORY_PIPELINE_WAIT_MS=100: the
player saw the freezes on crashes go, and over 25 minutes draws dropped
"being made" showed in ten five-second windows, under one a frame in all
but one (6.4). Passes over the screen keep their own 10 s budget
(VICTORY_SCREEN_WAIT_MS), so the lighting tables are not affected.
VICTORY_PIPELINE_WAIT_MS=500 restores the old wait.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 2220129ecb)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 22:27:27 +00:00
github-bot closed this pull request 2026-12-02 07:54:21 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.