from Hacker News

Anukari: An Interactive Physics-Based Synthesizer (GPU) [video]

by humbledrone on 6/14/23, 8:35 PM with 1 comments

  • by humbledrone on 6/14/23, 8:35 PM

    I've been working on Anukari for a while now, and this is the first public demo. It's been quite fun to figure out how to simulate hundreds of masses and thousands of springs in real-time with no hiccups, with the physics simulation stepping forward 48,000 times per second.

    It runs on the GPU and it took a lot of tricks to make that work reliably. The biggest difficulty has to do with the fact that the model is user-editable in real time, so all the GUI stuff has to be synchronized to the audio rendering thread, and due to the latency constraints that has to be done without locks, allocation, etc.

    Hopefully sometime in the near future I'll have time to write up a detailed explanation of the design!