Game: build blend register candidates in fixed arrays #3723
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3723"
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:47:33Z.
Build each eight-target blend candidate in an array. The independent-blend base rows are generated in their current order, and each variation copies an array instead of allocating a vector. The single-target replication cases also use an array. The lookup and every emitted descriptor stay the same.
The exact old and new enumerators produced the same 283,232 descriptor byte arrays in the same order across 128 generated state and format combinations. A release fixture hashes every candidate in order and checks the resulting checksum. Across 16 balanced Windows measurements, the per-enumeration medians were:
The timings cover the blend candidate generator and its hash consumer on generated states. #3713 avoids repeating an entire search across records. This change reduces work inside one search. 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:50:25Z.
The exact
0478400head passed Windows CI, including workspace tests and both Clippy configurations. The generated comparison preserved every descriptor and its ordering. With a hash for each candidate, the isolated blend search took 54–65% less time across the four render-target shapes in the PR description.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.