On 26/03/2013 4:55 PM, Alan Wolfe wrote:
I just wanted to chime in real quick to say that unless you need to go
multithreaded for some reason, you are far better off doing things
single threaded.

Introducing more threads does give you more processing power, but the
communication between threads isn't free, so it comes at a cost of
possible latency etc.  When you do it all on a single thread, that
disappears and you get a lot more bang for your buck.

Well that's true. But if you want to send MIDI events with millesecond resolution and your audio callback is running at a 5ms period with 90% processor load the only way you're going to get your 1ms MIDI granularity is with a separate thread that is either (1) running on another core or (2) is pre-empting the audio callback compute.

Ross.
--
dupswapdrop -- the music-dsp mailing list and website:
subscription info, FAQ, source code archive, list archive, book reviews, dsp 
links
http://music.columbia.edu/cmc/music-dsp
http://music.columbia.edu/mailman/listinfo/music-dsp

Reply via email to