pfalstad / circuitjs1

Electronic Circuit Simulator in the Browser
GNU General Public License v2.0
1.64k stars 279 forks source link

Ignoring timestep and running simulations without UI updates #54

Open tekinozbek opened 1 year ago

tekinozbek commented 1 year ago

I have an audio circuit that I want to run but I do not need to see the UI updating, so I would like to have the simulation run as fast as possible without losing any accuracy in the audio. Otherwise I have to wait a long time to get 1-2 seconds of audio samples.

ataricom commented 1 year ago

I get your frustration; I've recreated most of the MFOS synth modules and they're pretty sluggish and glitchy. Here are some of the things I do to speed it up: