Game: skip duplicate depth register candidates #3724
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3724"
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?
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T11:55:28Z.
Skip two repeated depth/stencil candidates in the register search. A disabled stencil with stored
FF/FFmasks already emits those bytes, and the front-only candidate repeats the first one when the back face is already off. The same first occurrence remains in each case. The two possible face pairs fit in a fixed array.In 3,840 generated register combinations, the original 126,720 outputs contained 120,252 distinct rows per record. The new output matched the first-occurrence sequence exactly. The pipeline naming consumer removes a hash when it finds a match, so skipping a repeated row preserves the selected bytes and ordering.
An optimized Windows fixture that hashes every emitted row used 16 balanced timing pairs. The two duplicate-heavy cases emitted 32 rows instead of 64. Disabled stencil with default masks took 1.23 → 0.65 µs, and enabled stencil with an already-off back face took 1.50 → 0.68 µs. The two controls with genuinely different masks or faces still emitted 64 rows.
All 15 game tests, strict Clippy, and the asset policy passed.
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T11:59:28Z.
The exact
97f1f0chead passed Windows CI, including the workspace tests and both Clippy configurations. Across 3,840 generated register states, it preserved the order of all first occurrences. The two measured duplicate-heavy cases emitted 32 rows instead of 64. The distinct-mask and distinct-face controls still emitted all 64 rows.Next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.