Stability: lower the default compute shader loop cap #66

Open
github-bot wants to merge 2 commits from github-bot/gh-66 into main AGit
Owner

@⁠space-de on GitHub · 2026-11-24 21:06 UTC · original
space-de:stability/limit-default-compute-loops → main · +7 −4 · 2 files · 2 commits · open

Summary

Lower the default compute-shader loop cap from 4,096 to 256 iterations per lane. The existing pixel cap (128) and vertex/mesh cap (256) are unchanged. Diagnostic builds can still override the cap with VICTORY_SHADER_LOOP_LIMIT.

This follows the report in #18: on an RTX 3060 Ti with the default 2-second Windows TDR, a 1,024-iteration cap ended in device removal after 7 minutes, while 256 ran for 8 minutes. This is a stability-focused default; no FPS improvement is claimed.

Tradeoff

A legitimate compute shader loop that needs more than 256 iterations will now be cut short. That can omit rendering or other GPU work. The cap is deliberately aligned with the existing vertex/mesh default and the reported stable setting.

Validation

  • Checked the current open PRs and shader-loop implementation; no open PR changes the default cap.
  • git diff --check passed.
  • No tests or in-game run were performed for this change.
**@⁠space-de** on GitHub · 2026-11-24 21:06 UTC · [original](https://github.com/fxceless/victory-fork/pull/66) `space-de:stability/limit-default-compute-loops` → `main` · +7 −4 · 2 files · 2 commits · open ## Summary Lower the default compute-shader loop cap from 4,096 to 256 iterations per lane. The existing pixel cap (128) and vertex/mesh cap (256) are unchanged. Diagnostic builds can still override the cap with `VICTORY_SHADER_LOOP_LIMIT`. This follows the report in #18: on an RTX 3060 Ti with the default 2-second Windows TDR, a 1,024-iteration cap ended in device removal after 7 minutes, while 256 ran for 8 minutes. This is a stability-focused default; no FPS improvement is claimed. ## Tradeoff A legitimate compute shader loop that needs more than 256 iterations will now be cut short. That can omit rendering or other GPU work. The cap is deliberately aligned with the existing vertex/mesh default and the reported stable setting. ## Validation - Checked the current open PRs and shader-loop implementation; no open PR changes the default cap. - `git diff --check` passed. - No tests or in-game run were performed for this change.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:35:32 +00:00
Author
Owner

@⁠Revens2 on GitHub · 2026-11-25 05:13 UTC · original

Build check only: this PR merges cleanly on main c96b4f2 and the integration build of eight PRs (#115 #66 #36 #144 #147 #141 #139 #130) compiles (diagnostics profile). In the game, that combo was run alone 3 times (900 s, VICTORY_RELAY=2, scripted input): one run to the end (median 4.95 fps, about 4.9k draws per frame, against 4.84-5.04 fps on main), one title breakpoint 0x80000003 at about 157 s after a failed dstorage request (the pattern is explained on #115), one device removed (0x887A0005) at about 160 s that did not repeat in the two other runs. Nothing is proven for this PR alone: it was not run on its own, cargo test was not run on the combo, and nothing was checked on the title side of its change. Not verified.

**@⁠Revens2** on GitHub · 2026-11-25 05:13 UTC · [original](https://github.com/fxceless/victory-fork/pull/66#issuecomment-7153564038) Build check only: this PR merges cleanly on main c96b4f2 and the integration build of eight PRs (#115 #66 #36 #144 #147 #141 #139 #130) compiles (diagnostics profile). In the game, that combo was run alone 3 times (900 s, `VICTORY_RELAY=2`, scripted input): one run to the end (median 4.95 fps, about 4.9k draws per frame, against 4.84-5.04 fps on main), one title breakpoint `0x80000003` at about 157 s after a failed dstorage request (the pattern is explained on #115), one device removed (`0x887A0005`) at about 160 s that did not repeat in the two other runs. Nothing is proven for this PR alone: it was not run on its own, `cargo test` was not run on the combo, and nothing was checked on the title side of its change. Not verified.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/66/head:github-bot/gh-66'
git switch 'github-bot/gh-66'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-66'
git switch 'github-bot/gh-66'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-66'
git switch 'github-bot/gh-66'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-66'
git switch 'main'
git merge --squash 'github-bot/gh-66'
git switch 'main'
git merge --ff-only 'github-bot/gh-66'
git switch 'main'
git merge 'github-bot/gh-66'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.