Repository navigation
Ball joint point fields beside the impulse; solve parts in the benches - #239
Merged
Merged
Conversation
A plain ball joint's warm start and solve read the flags, the indices and the impulse at the front of the joint's data and its anchors and centres' offset (anchor_a, anchor_b, delta_center_f) at the end, about 700 bytes on: every pass over the joint grid's 19,800 joints fetched a line apart from the rest. The three now follow the impulse. Joint grid, pinned, best of 6: 10.90 to 10.36 ms a step (Box3D 10.48 single precision, 10.31 double). Bits unchanged; SNAPSHOT_VERSION 13 for the layout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Progress at a glance
anchor_a,anchor_banddelta_center_fmoved next tolinear_impulseWhy
A plain ball joint's warm start and solve read the flags, indices and impulse at the front of the joint's data, and its anchors and centres' offset at the end, about 700 bytes further on. So every pass over the joint grid's 19,800 joints fetched one more cache line, away from the others it needed. Our JointSim is 1064 bytes against Box3D's 444, so where the hot fields sit matters.
Numbers
Joint grid, pinned, best of 6, ms per step:
Solve parts
The new line shows large world's gap is entirely in the constraint stages: 6.3 µs against 4.75, while our setup is slightly faster than Box3D's. Large world's colours each hold one nearly empty wide slot, so the out-of-line body gather dominates there. That is aether#3849, now first in Aether's next batch.