Skip to content

Aether 0.944.0, and the store's lanes read where they lie - #237

Merged
nicolas-maman merged 2 commits into
mainfrom
store-lane-loads
Nov 25, 2026
Merged

nicolas-maman merged 2 commits into
mainfrom
store-lane-loads

Conversation

@nicolas-maman

Copy link
Copy Markdown
Collaborator

Progress at a glance

  • CI pin and README on Aether 0.944.0: inline sqrt (aether#3852) and the faster slice release (#3853)
  • Store stage reads each wide lane as one float from memory, as Box3D does
  • Full local suite on 0.944.0: green, golden trace bit for bit, no warnings

Store

lanes.lane8 takes 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:

Scene ratio
junkyard 0.99
washer 1.00
many pyramids 1.04
spinner 1.05
large pyramid 1.07
convex pile 1.08
sleep 1.09
joint grid 1.10
trees25 1.11
large world 1.20

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).

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%.
@nicolas-maman
nicolas-maman merged commit fe50b5f into main Nov 25, 2026
3 checks passed
@nicolas-maman
nicolas-maman deleted the store-lane-loads branch November 25, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant