<div dir="ltr">just a short followup - on mac "-noprefs" makes a huge difference!<div><br></div><div>best</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 12, 2019 at 8:01 PM iftah gabbai <<a href="mailto:ift.gab@gmail.com">ift.gab@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div style="color:rgb(49,49,49);word-spacing:1px" dir="auto"><div dir="auto" style="font-size:1rem">thank you both for the answers, i am using the nogui tag since im building for a headless rpi, i will try to see if the noprefs makes a difference,  i have a script that launches pd when my sound.target is reached on the rpi and it takes 4-5 seconds only when booting, if i start the script manually its almost instantaneous and no lag is present in linux so it might be actually related to something else</div></div><div dir="auto" style="color:rgb(49,49,49);word-spacing:1px"><br></div><div dir="auto" style="font-size:1rem;color:rgb(49,49,49);word-spacing:1px">best</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue 12. Nov 2019 at 18:09, Miller Puckette <<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Pd sometimes seems to take several seconds to start up on MacOs.  It once<br>
started up very quickly. I haven't figured out if this is a change in MacOs<br>
or in Pd.<br>
<br>
And yes, the owing Pd instance has to wait for the sub-process to get running,<br>
so that will freeze it for a few seconds.<br>
<br>
It migth help to clear out unneeded "libraries" (start the subprocess with<br>
-noprefs and explicitly add the ones you want).  Also it will always speed<br>
things up to run the sub-process "-no-gui" whenever you don't need to see it.<br>
<br>
cheers<br>
Miller<br>
<br>
On Tue, Nov 12, 2019 at 03:52:51PM +0100, Christof Ressi wrote:<br>
> <html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div><br>
> <div>if the pd~ subprocess blocks (beyond the specified latency), then the parent process blocks as well, so the behavior you describe is expected. It&#39;s simply not possible to spawn pd subprocesses in a realtime safe manner (yet).</div><br>
> <br>
> <div>&nbsp;<br>
> <div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br>
> <div style="margin:0 0 10px 0;"><b>Gesendet:</b>&nbsp;Dienstag, 12. November 2019 um 15:25 Uhr<br/><br>
> <b>Von:</b>&nbsp;&quot;iftah gabbai&quot; &<a href="mailto:lt%3Bift.gab@gmail.com" target="_blank">lt;ift.gab@gmail.com</a>&gt;<br/><br>
> <b>An:</b>&nbsp;Pd-List &<a href="mailto:lt%3BPd-list@lists.iem.at" target="_blank">lt;Pd-list@lists.iem.at</a>&gt;<br/><br>
> <b>Betreff:</b>&nbsp;[PD] lag when starting sub-process</div><br>
> <br>
> <div name="quoted-content"><br>
> <div>hey there, im experiencing&nbsp;a lag in my main patch when i start a pd~ sub process. on my i7 quad core 16gb macbook pro its about 4-5 seconds until&nbsp;pd is running again and on an rpi 3 its about the same. is this a known thing? and if so, is there a workaround?<br>
> <div>&nbsp;</div><br>
> <br>
> <div>best</div><br>
> </div><br>
> _______________________________________________ <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list UNSUBSCRIBE and account-management -&gt; <a href="<a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a>" target="_blank"><a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a></a></div><br>
> </div><br>
> </div><br>
> </div></div></body></html><br>
> <br>
> <br>
> <br>
<br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
<br>
</blockquote></div></div>
</blockquote></div>