ezmsg-org / ezmsg

Pure-Python DAG-based high-performance SHM-backed pub-sub and multi-processing pattern
https://ezmsg.readthedocs.io/en/latest/
MIT License
15 stars 6 forks source link

sigproc.synth.Clock sleeps too long #41

Closed cboulay closed 1 year ago

cboulay commented 1 year ago

https://github.com/iscoe/ezmsg/blob/005590f74ec66b22cd36a94827ff5822ee4bbc92/extensions/ezmsg-sigproc/ezmsg/sigproc/synth.py#L42

While this loop is very tight, the sleep time fails to account for what might be happening in the other asynchronous workloads. When running this as is, I was only getting about 990 samples per second when I specified the rate as 1 kHz.