Stability: lower the default compute shader loop cap #66
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!66
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-66"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 · openSummary
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
git diff --checkpassed.@Revens2 on GitHub · 2026-11-25 05:13 UTC · original
Build check only: this PR merges cleanly on main
c96b4f2and 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 breakpoint0x80000003at 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 testwas not run on the combo, and nothing was checked on the title side of its change. Not verified.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.