Game: collect wanted pipeline state hashes in one pass #3700
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3700"
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-28T08:55:17Z.
Named::findcurrently traverses the graphics records once for each of the depth/stencil, rasterizer and blend hash sets. Collect all three in one pass and reserve the sets from the record count. The rest of state naming uses the same hashes and ordering.In optimized Windows tests with 25,003 generated records, the three sets matched exactly. Across 31 alternating pairs, collection took 3.85 ms on main and 2.53 ms with this change when most records reused hashes, and 5.07 ms and 3.79 ms when every record used distinct hashes. The mixed fixture's full
Named::findtook 151.19 ms and 149.46 ms over nine alternating pairs, with identical state bytes and source labels. These are prebuild timings from generated inputs.All 15
victory-gametests, strict Clippy and 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-28T08:58:26Z.
Windows CI passed on
9780f06, including both Clippy configurations and the workspace tests. The three wanted sets matched exactly on 25,003 generated records. The collection step took 3.85 to 2.53 ms with repeated hashes and 5.07 to 3.79 ms with distinct hashes. The full mixedNamed::findfixture returned the same state bytes and source labels.The 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.