Game: deduplicate depth and blend register searches independently #3713
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3713"
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-28T10:38:43Z.
During pipeline naming, the same depth or blend register state can recur while the other state varies. Track attempted expansions separately by kind. The depth key uses the three words read by the depth search. The blend key uses the render-target formats and nine relevant words. Each keeps its record's target hash. Candidate ordering and matching against all wanted hashes are preserved.
An optimized Windows fixture compared the exact main and proposed register scan in twelve balanced pairs. Both produced equal state bytes, source labels, and unresolved hash sets in all four cases.
The all-distinct control reaps no deduplication benefit, uses two lookup tables, and showed run-to-run timing variation. These are register scan times on generated records. Game startup and hardware coverage remain unmeasured.
All 15 game crate 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-28T10:41:46Z.
The exact
13a711ahead passed Windows CI, including the workspace tests and both Clippy configurations. On generated input, the register scan returned the same state bytes, source labels, and unresolved hashes. In the all-distinct control, the median was 90.57 ms on main and 101.56 ms here. The timings for both repeated-state cases are in the PR description. Game startup and hardware coverage remain unmeasured.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.