This is a simple N-body simulation with visualisation for exploring the use of Metal for compute and graphics on OS X.
This project uses Swift 5, and has been tested with Xcode 12.
The d
key can be used to cycle through Metal devices.
The number of bodies can be increased and decreased with the +
and -
keys.