pguyot / Einstein

NewtonOS running on other operating systems
GNU General Public License v2.0
415 stars 56 forks source link

Fix performance hit, clicking output with Linux PulseAudio #180

Closed chuma closed 2 years ago

chuma commented 2 years ago

I swear this was working fine in 2018, but I recently discovered that TPulseAudioSoundManager had terrible, clicking output, and was also slowing down the emulation by at least 5-10x - on my Intel Core i7-8665U. PulseAudio would not stop polling for writes, and the interruptions were causing the severe slowdown.

This fixes the clicking output and the performance hit. It's still not perfect - the startup sound gets cut off, for example - but it's a vast improvement for sure.

MatthiasWM commented 2 years ago

Thank you. I will apply it as soon as I have a little bit more time, hopefully next week.