perf(hwrt): avoid temporary layout allocations during refits #602
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!602
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-602"
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?
@tommiehansen on GitHub · 2026-12-05 15:48 UTC · original
tommiehansen:perf/phase8-rt-geometry-current-20261205→main· +25845 −90 · 35 files · 41 commits · openScope and stack
Depends on #429 (
b07015e); review only the incremental geometry changes on top of that commit, not inherited HWRT changes. Preserve #429 → #452 ordering; compatibility with #452 must be checked before merging. Do not merge independently of the HWRT foundation and #429; preserve #452 ordering.Compact full builds retain Vec storage; updatable layouts share Arc and compare normalized geometry keys. No geometry semantics or quality changes intended.
Current head
8941adbNative CI 47536751725 passed correctness, all-targets and 160 ABBA/BAAB benchmark blocks. CPU layout microbenchmark, not GPU BLAS time or gameplay FPS. Median paired changes:
Earlier ~28% compact-build regression is no longer observed, but build-only mixed workloads still regress when creating updatable layouts; retain draft and investigate deferred sharing. All eight blocks improved in every 25–100% refit case. Physical AMD/gameplay performance and stack compatibility not yet established.
Follow-up
2a002f1Replaced Arc-based layout storage with the original Vec allocation on all full builds. In-place refits compare normalized geometry keys directly and retain the existing layout without cloning; out-of-place refits copy the layout once. New mixed benchmark models 25% out-of-place refits. CI 47538596673: exact layout/refit tests passed; paired cost and all-targets subsequently passed (see below). Earlier table remains historical and is not evidence for the new head.
Completed native validation —
2a002f1CI 47538596673 passed exact tests and all-targets checks. Median paired changes across eight ABBA/BAAB blocks per row (CPU layout microbenchmark, not GPU build time):
All 32 isolated refit blocks and 72 mixed refit-containing blocks improved. The previous material build-only regression is not reproduced; small build-only differences remain inconclusive on eight blocks. Both #602 and #452 change
hwrt.rsrelative to #429; combined-stack compatibility was the remaining readiness gate; see the completed validation below.Combined #452 stack validation — passed
Native CI 47540461759 at
fcf944a(exact geometry change replay on #4524bd7270): layout/refit tests, 12 remap tests (one ignored), 18 freed tests, live BLAS remap test, both paired benchmarks and all-targets compilation passed. Median paired CPU layout changes:All 104 refit-containing paired blocks improved. Small full-build overhead at n=1/8 is repeatable in this combined fixture but limited to +2.8%/+1.1%; no material mixed-build regression. Ready for review on CPU preparation evidence, not a GPU/actual FPS claim. Keep the prerequisite order and recheck when foundation lands. No changes to #429/#452.
..in a pattern (clippy) d224598e69clippy's unneeded_wildcard_pattern on `GeomKey::Triangles { vertex_count: _, .. }` where a refit's geometry keys are compared but for their vertex counts (reported on #342). The pattern matches the same values without it. Co-Authored-By: Claude Fable 5.2 <[email protected]>clippy's if_same_then_else on `if i == a { 2 } else if i == b { 2 }` in a test of the named-structures book: one condition now. With it this branch has main's 51 clippy warning lines again (it had 52). Tests, under Wine: hwrt 95 passed. Co-Authored-By: Claude Fable 5.2 <[email protected]>perf(hwrt): share immutable updatable geometry layouts across refitsto perf(hwrt): avoid temporary layout allocations during refitsView command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.