GPU: find the position input once per CPU rectangle batch #3705
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3705"
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-28T09:38:27Z.
The CPU rectangle fallback uses the first in-stride float input with two or more components to identify the right-angle corner. Find that input once for the batch. Each rectangle still reads its own coordinates and reconstructs the same fourth vertex.
An optimized Windows x64 test compared the exact old and new expansion functions with the same right-angle routine. All bytes matched for 4,096 generated rectangles in each of five layouts, including F32, F16 and the fallback without a position input. The test also checked incomplete buffer tails.
Across nine alternating pairs, the five layouts took 1.6–5.5% less time per rectangle at batch size 1,024 and 2.8–6.2% less time at batch size 4,096. Single-rectangle results ranged from 3.8% faster to 4.7% slower. These timings cover the CPU expansion step. All nine primitive tests, both GPU Clippy configurations 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-28T09:41:53Z.
Both Clippy steps and all nine primitive tests passed in Windows CI on
c0f8f5d. The workspace test step failed inframe::tests::waits_end_on_ticks_and_count_framesatframe.rs:231, where the zero-timeout poll returnedS_OKinstead ofS_FALSE. The comparison in #2877 recorded the same failure on main. Could a maintainer rerun the failed check?The local exact-source comparison and both Clippy configurations also passed.
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.