<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Thanks for your advices Franck, these are the kind of programming tips I was looking for.
<P>&nbsp;
<P>David
<P>&nbsp;
<P>&nbsp;
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><FONT size=3><FONT face="Times New Roman"><A href="http://www.flickr.com/photos/schafferdavid/">http://www.flickr.com/photos/schafferdavid/</A></FONT></FONT><BR>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><FONT size=3><FONT face="Times New Roman"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><A href="http://audioblog.arteradio.com/David_Schaffer/">http://audioblog.arteradio.com/David_Schaffer/</A></o:p></FONT></FONT></P></DIV><BR><BR><BR>&nbsp;
<BR>&gt; Date: Mon, 2 Aug 2010 13:02:00 +0200<BR>&gt; From: fbar@footils.org<BR>&gt; To: pd-list@iem.at<BR>&gt; Subject: Re: [PD] CPU saving strategies<BR>&gt; <BR>&gt; Hi,<BR>&gt; <BR>&gt; On Sun, Aug 01, 2010 at 12:35:41PM +0200, David Schaffer wrote:<BR>&gt; &gt; I recently built a midi CC sequencer abs. It helps me add some<BR>&gt; &gt; timeline-based control to my patches. But I came across a problem I never<BR>&gt; &gt; had to deal with before: CPU consumption. I realized I could'nt use more<BR>&gt; &gt; than four instances of my sequencer before the patch would become<BR>&gt; &gt; unmanageable (interface freezes, audio drops, and, finally... a crash) I<BR>&gt; &gt; think this is related to the use of large size arrays. I would be grateful<BR>&gt; &gt; if someone out there could point me to a better data storing/ CPU saving<BR>&gt; &gt; strategy for my sequencer, maybe data structures? Thanks in advance.<BR>&gt; <BR>&gt; You're using way too many debugging GUIs, like [bng] or number boxes. Remove<BR>&gt; all of them that you don't see and optionally speedlimit the updates of those,<BR>&gt; that you want to see. [m_speedlimit] from rj (http://github.com/rjdj/rjlib) can<BR>&gt; be used for speedlimiting.<BR>&gt; <BR>&gt; In general, never patch debuigging stuff like this: <BR>&gt; <BR>&gt; [...]<BR>&gt; |<BR>&gt; [0\ &lt;- a numberbox<BR>&gt; |<BR>&gt; [...]<BR>&gt; <BR>&gt; or this: <BR>&gt; <BR>&gt; [...]<BR>&gt; |<BR>&gt; [bng] &lt;- a GUI bang<BR>&gt; |<BR>&gt; [...]<BR>&gt; <BR>&gt; <BR>&gt; Instead always put the debugging GUIs into their own path like here: <BR>&gt; <BR>&gt; [...]<BR>&gt; |\<BR>&gt; | [0\ &lt;- a numberbox<BR>&gt; |<BR>&gt; [...]<BR>&gt; <BR>&gt; This way it's easier to remove them later, when you're finished debugging your<BR>&gt; patch. Make that a habit.<BR>&gt; <BR>&gt; Ciao<BR>&gt; -- <BR>&gt; Frank Barknecht Do You RjDj.me? _ ______footils.org__<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; Pd-list@iem.at mailing list<BR>&gt; UNSUBSCRIBE and account-management -&gt; http://lists.puredata.info/listinfo/pd-list<BR>                                               </body>
</html>