Repository navigation
Aether 0.944.0, and the store's lanes read where they lie - #237
Merged
Merged
Conversation
lanes.lane8 takes the vector by value, and an index known only at run time made each read a 32-byte load, a spill and a reload. The store works a contact at a time and read eleven lanes a contact that way; now it reads each as one float through a pointer (lane_at), Box3D's ((float*)&value)[lane]. The sleep scene's store stage: 0.116 to 0.100 ms a step (Box3D 0.111). Bits unchanged.
std.math's square root inline (aether#3852) and a returned view's release without a call (#3853). Every test passes on it locally, the golden trace bit for bit, no warnings. trees25 3% faster, large world and the spinner 1%.
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
Store
lanes.lane8takes the vector by value. With an index known only at run time, each read became a 32-byte load, a spill and a reload, and the store read eleven lanes per contact that way. It now reads each one as a single float through a pointer, like Box3D's((float*)&value)[lane]. The sleep scene's store stage went from 0.116 to 0.100 ms a step, against Box3D's 0.111. The bits are unchanged.Against Box3D on 0.944.0
Pinned to one core, best run, aephysics / Box3D. The machine was loaded, so these are ratios rather than absolute times:
Moving from 0.940 to 0.944 made trees25 3% faster and large world and the spinner 1% faster; the other scenes moved within noise. The contact solve's out-of-line body gather still waits on
@inline(aether#3849).