It did take considerable time to make it performant on the Raspberry Pi that runs it. It is just a web app. Got it down from the 50% CPU on the screenshot to around 8%. Still working on more improvements because the gravity simulation also runs a bit slower than I'd like.