Great detective work!  I&#39;d love to see better CPU performance on OS X.  Hopefully this also implies that one could see their Pd-&gt;Jack performance increase as well.<br><br>Cheers,<br>~Brandon<br><br><div class="gmail_quote">
On Mon, Nov 1, 2010 at 7:31 AM, Jamie Bullock <span dir="ltr">&lt;<a href="mailto:jamie@postlude.co.uk">jamie@postlude.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
On 28 Oct 2010, at 17:55, Mathieu Bouchard wrote:<br>
<br>
&gt; On Thu, 28 Oct 2010, brandon zeeb wrote:<br>
&gt;<br>
&gt;&gt; This thread comes up every year or two,<br>
&gt;<br>
&gt; I&#39;d say at least twice a year... I think I already wrote about it on pd-list this autumn, no...? But it&#39;s hard to search the archives about the frequency of that thread, as the keywords might not be consistent. I just know that the problem has existed for quite a few years and that I read about it on pd-list more than a handful of times.<br>

<br>
</div>Indeed! I remembered it coming up and so I searched the archives before posting, but keywords like &#39;cpu&#39; and &#39;usage&#39; don&#39;t do very much.<br>
<br>
However, digging a little with Shark, I see that a high proportion of Pd&#39;s CPU time is spent talking with the audio hardware, so I try Google: &quot; DspFuncLib portaudio&quot;, and lo and behold:<br>
<br>
        <a href="http://www.google.co.uk/search?q=DspFuncLib+portaudio" target="_blank">http://www.google.co.uk/search?q=DspFuncLib+portaudio</a><br>
<br>
Trouble is &quot;use jack&quot; doesn&#39;t solve the problem, it merely avoids it.<br>
<br>
So, zooming in a bit, I see at least two issues here:<br>
<br>
        1. there is a lot of activity in the underlying audio drivers when using the Portaudio driver on OS X, even when audio is off in the application.  Let&#39;s call this the &#39;idle&#39; CPU usage. IMO, this should be less than 1% on modern CPUs for well behaved applications. I&#39;ve added this to the bug tracker.<br>

<br>
        2. there is a lot of activity in the underlying audio drivers when using the Portaudio driver on OS X, when audio is on in Pd. Comparison with AudioMulch, which also uses Portaudio suggests that is only in part a Portaudio problem. AudioMulch idles at ~10% on my machine. I suspect that the problem with Pd+portaudio may be due to a small buffer size used by Pd. I thought Pd&#39;s &#39;Delay&#39; setting in audio preferences was supposed to handle this, but changing delay to 500ms, has no effect on CPU use. Also added to tracker.<br>

<font color="#888888"><br>
Jamie<br>
<br>
<br>
<br>
<br>
</font></blockquote></div><br>