Open Gadgetoid opened 2 years ago
CPU usage really is just a factor of how much stream data is being processed. I switched to PA_STREAM_PEAK_DETECT
and only process the samples received every 5ms (dropping any samples between) which cut CPU usage from ~30% to ~12% on a Pi 400. Could probably cut this more by locking the display output to 50-60 FPS and decoupling it from the audio stream processing.