Shaders: search lane conditions once and redo a lowering once #999
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!999
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-999"
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?
@TG0000 on GitHub · 2026-11-24 14:48 UTC · original
TG0000:perf/shader-lane-condition-search→main· +298 −54 · 2 files · 1 commits · openSummary
Translating the shaders the opening scene binds spent most of its time on answers it already had. Three changes, in
structure.rsandemit/lower.rsonly:Bools::meetremembers failed states. It split cases without remembering the ones that failed, up to 65,536 allocating steps per question; the waterfall proofs asking it were about 38% of all translation time.Measured (RX 6800, Ryzen 9 5900X, Windows 11)
Runs alternated with the new build first, so driver-cache warming favoured main. Main's second title run was stopped early by a memory watchdog, after its backlog had cleared. No device removal in these runs. This helps a cold cache only: with a warm cache and in steady state, frame rate does not change.
Correctness
Verification
Rust 1.98.1 MSVC, base
ffe310e:cargo test --workspace --locked344 passed, 0 failed;cargo clippy --workspace --all-targets --locked -- -D warningsclean with and without--all-features; policy passes.Overlap
Bools::meettoo, with forced-variable propagation and memoised failures. Only one of the two searches is needed, and the two conflict. Items 2 and 3 here do not depend on which one is taken; I am happy to rebase onto #947 and keep only those.structure.rsas well.AI-assisted: written and measured by Claude Opus 5.5. No game data is in this PR.
🤖 Generated with Claude Code
@Zipettte on GitHub · 2026-11-24 15:12 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
3ca9456:cargo test -p victory-shaderpasses, 122 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
@Marvisak on GitHub · 2026-11-25 00:31 UTC · original
Automated triage for the maintainers.
Needs rebase. This PR does not merge cleanly into current
main(ac2525d). Conflicting files:crates/victory-shader/src/emit/lower.rs,crates/victory-shader/src/structure.rs.The content has not been reviewed yet; it will be once the branch is rebased onto
main.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.