<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1477677119134_223390"><span id="yui_3_16_0_ym19_1_1477677119134_223389">It sounds like a design feature. The computation of re-blocked subpatches is not spread evenly over time, but it is carried out as fast as possible whenever the "clock ticks". The CPU usage is low on average, but there are spikes (on those sample blocks when all the ffts are computed) that prevent you from meeting some of the deadlines. Changing Pd's latency provides more buffering against those spikes.</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1477677119134_223331"><span><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1477677119134_223331"><span id="yui_3_16_0_ym19_1_1477677119134_223460">I guess [pd~] may help towards alleviating those problems: </span><a href="http://www.pdpatchrepo.info/hurleur/multiprocessing.pdf" id="yui_3_16_0_ym19_1_1477677119134_223504">http://www.pdpatchrepo.info/hurleur/multiprocessing.pdf</a> </div><div dir="ltr" id="yui_3_16_0_ym19_1_1477677119134_223331"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1477677119134_223331">I started a discussion on the topic here <a href="https://lists.puredata.info/pipermail/pd-list/2016-09/116315.html" id="yui_3_16_0_ym19_1_1477677119134_223482">https://lists.puredata.info/pipermail/pd-list/2016-09/116315.html</a></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1477677119134_223394"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1477677119134_223394"><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1477677119134_223148" style="display: block;"> <blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;" id="yui_3_16_0_ym19_1_1477677119134_223147"> <div style="font-family: Helvetica Neue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1477677119134_223146"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1477677119134_223145"> <div dir="ltr" id="yui_3_16_0_ym19_1_1477677119134_223144"> <font size="2" face="Arial" id="yui_3_16_0_ym19_1_1477677119134_223395"> <hr size="1" id="yui_3_16_0_ym19_1_1477677119134_223501"> <b><span style="font-weight:bold;">From:</span></b> Christof Ressi <christof.ressi@gmx.at><br> <b><span style="font-weight: bold;">To:</span></b> Christof Ressi <christof.ressi@gmx.at>; pd-list <pd-list@iem.at> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, 31 October 2016, 14:19<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [PD] Weird issue: need to increase Pd latency in FFT patches, otherwise Pd sound output glitches and clocks are slowing down!!!<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1477677119134_223480"><br>OK, some updates:<br clear="none"><br clear="none">obviously it doesn't have to be FFTs, in block-glitch1.pd I replaced the FFTs with square roots. But it's neither related to the number of block~ objects or subpatches. In block-glitch2.pd, I have a single blocked subpatch with lots of square roots and I get the same result. Again, the CPU load is not the problem. It seems the problem is merely related to reblocking, overlap and upsampling.  <br clear="none"><br clear="none">> Gesendet: Montag, 31. Oktober 2016 um 14:38 Uhr<div class="yqt7528276064" id="yqtfd89340"><br clear="none">> Von: "Christof Ressi" <<a shape="rect" ymailto="mailto:christof.ressi@gmx.at" href="mailto:christof.ressi@gmx.at">christof.ressi@gmx.at</a>><br clear="none">> An: pd-list <<a shape="rect" ymailto="mailto:pd-list@iem.at" href="mailto:pd-list@iem.at">pd-list@iem.at</a>><br clear="none">> Betreff: [PD] Weird issue: need to increase Pd latency in FFT patches, otherwise Pd sound output glitches and clocks are slowing down!!!<br clear="none">><br clear="none">> Hi, <br clear="none">> <br clear="none">> I have the following issue with Pd 0.47.1 on Win 7 (onboard soundcard + ASIO4ALL and also Focusrite Scarlett 6i6 + Focusrite ASIO Driver):<br clear="none">> <br clear="none">> When I use more than just a few FFTs anywhere in my patch, I get a staggering sound output + clicks from Pd unless I increase the Pd latency... Apparently, it's only the playback because I couldn't hear it in a recording I made with [writesf~]. Therefore I made a recording in Reaper to show you what I'm hearing.<br clear="none">> <br clear="none">> The more FFTs and the larger the FFT blocksize, the larger I have to set the latency. This even happens if the CPU load is as little as 5% (where 25% would be the maximum for one hardware thread on my laptop). <br clear="none">> <br clear="none">> In my test patch, I put a couple of FFT subpatches and a single sine wave with a volume control to check the sound output. Usually, I can play a sine wave without artifacts as long as the CPU load is not peeking. But here, the FFTs seem to magically disturb the audio output of the whole patch...<br clear="none">> <br clear="none">> I think there's something going wrong with the scheduler because also objects like [metro] and [line] start to go slower - sometimes up to 50%!<br clear="none">> <br clear="none">> What is going on!?<br clear="none">> <br clear="none">> Christof_______________________________________________<br clear="none">> <a shape="rect" ymailto="mailto:Pd-list@lists.iem.at" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br clear="none">> UNSUBSCRIBE and account-management -> <a shape="rect" href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br clear="none">> </div><br><div class="yqt7528276064" id="yqtfd34840">_______________________________________________<br clear="none"><a shape="rect" ymailto="mailto:Pd-list@lists.iem.at" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br clear="none">UNSUBSCRIBE and account-management -> <a shape="rect" href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br clear="none"></div><br><br></div> </div> </div> </blockquote> </div></div></body></html>