<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: Performance (Scheduler?) Spike in large sequencer style patch</title>
		<atom:link href="http://cycling74.com/forums/topic/performance-scheduler-spike-in-large-sequencer-style-patch/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/performance-scheduler-spike-in-large-sequencer-style-patch/feed</link>
		<description></description>
		<pubDate>Mon, 17 Jun 2013 23:19:23 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/performance-scheduler-spike-in-large-sequencer-style-patch/#post-46607</guid>
					<title><![CDATA[Performance (Scheduler?) Spike in large sequencer style patch]]></title>
					<link>http://cycling74.com/forums/topic/performance-scheduler-spike-in-large-sequencer-style-patch/#post-46607</link>
					<pubDate>Thu, 14 Jun 2012 12:43:23 +0000</pubDate>
					<dc:creator>BAK2K3</dc:creator>

					<description>
						<![CDATA[
						<p>Hi all,</p>
<p>I&#8217;m in the midst of designing a large scale multiple instrument based sequencer (that is mapped to an original musical controller), but I seem to be having a serious problem with a performance spike that occurs at the same point at every &#8220;loop&#8221; of the sequencer.</p>
<p>At the end of the current &#8216;bar&#8217;, the next bar&#8217;s worth of information is loaded into the relevant grids/matrices (This includes: parameter automation grids, matrixctrls, itables).   However at this specific point there is a 300-500ms hang while all of the relevant information is loaded.   This is a serious issue as the hang/spike causes performance/recording/play back problems.</p>
<p>What is the most appropriate way to identify what is specifically causing the performance spike? I&#8217;ve never attempted de-bugging on my Max patches, could de-bugging help?</p>
<p>I&#8217;ve been looking through the forums, and I&#8217;m led to believe this could be a scheduler based problem, and could potentially be resolved by using a timer system based on a [phaser~] -> [Edge~] concept, however my scheduler doesn&#8217;t appear to be going out of time, so I&#8217;m not sure whether this&#8217;ll resolve my problem.</p>
<p>I&#8217;d post the patch but its close to 7mb now, and I get the impressive it&#8217;d be difficult for people to &#8216;understand&#8217; what is happening where and why.   I&#8217;d appreciate some general guidance or tips on improving performance, or debugging a large patch to resolve performance based issues.</p>
<p>Thanks in advance,<br />
Ben K</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/performance-scheduler-spike-in-large-sequencer-style-patch/#post-167645</guid>
					<title><![CDATA[Re: Performance (Scheduler?) Spike in large sequencer style patch]]></title>
					<link>http://cycling74.com/forums/topic/performance-scheduler-spike-in-large-sequencer-style-patch/#post-167645</link>
					<pubDate>Thu, 14 Jun 2012 12:52:00 +0000</pubDate>
					<dc:creator>BAK2K3</dc:creator>

					<description>
						<![CDATA[
						<p>More info:</p>
<p>Most of the individual systems within the patch are in seperate patches loaded into bpatchers.</p>
<p>LOTS of Sends and Receives are used.</p>
<p>Each instrument is a &#8220;VSTi&#8221;</p>
<p>Win 7 , Max 6.05</p>
<p>It may not be much, but seeing as I haven&#39;t included a code, here is a sample screenshot of the presentation view.</p>
<p> [attachment=196591,4040]</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/performance-scheduler-spike-in-large-sequencer-style-patch/#post-167646</guid>
					<title><![CDATA[Re: Performance (Scheduler?) Spike in large sequencer style patch]]></title>
					<link>http://cycling74.com/forums/topic/performance-scheduler-spike-in-large-sequencer-style-patch/#post-167646</link>
					<pubDate>Thu, 14 Jun 2012 16:20:46 +0000</pubDate>
					<dc:creator>Roman Thilenius</dc:creator>

					<description>
						<![CDATA[
						<p>a 500 ms hang should not be a too many messages issue but some audio problem.</p>
<p>otherwise check your patch for what happens after the last beat (or before<br />
the first), there must be some coding which is suboptimal.</p>
<p>i bet you do something like updating the states of all toggles after each loop or<br />
something like that. (can you say &#8220;bug&#8221;?)</p>
<p>the functionality of this patch (except plug-ins but with audio on and overdrive on)<br />
should run tight on any 100 MHz computer.</p>
<p>-110</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/performance-scheduler-spike-in-large-sequencer-style-patch/#post-167647</guid>
					<title><![CDATA[Re: Performance (Scheduler?) Spike in large sequencer style patch]]></title>
					<link>http://cycling74.com/forums/topic/performance-scheduler-spike-in-large-sequencer-style-patch/#post-167647</link>
					<pubDate>Thu, 14 Jun 2012 16:31:18 +0000</pubDate>
					<dc:creator>BAK2K3</dc:creator>

					<description>
						<![CDATA[
						<p>The &#8216;hang&#8217; makes everything within the patch come to a halt, and the problems the &#8216;hang&#8217; cause are as follows:</p>
<p>Notes input on the first beat are often delayed, and placed into the wrong beat grid of the matrix.</p>
<p>Notes being played back from the matrix grid have to &#8220;catch up&#8221; with what was missed, causing a very &#8216;non-musical&#8217; output.</p>
<p>Automation is stopped, then has to also &#8220;catch up&#8221; when the hang stops, once again causes a very unoptimal output.</p>
<p>I&#8217;m aware of what happens, and when, within the patch, but my question is what is the best way of approaching identifying what specifically is causing the problem?  Is it a CPU hang? A GPU hang? A scheduler based hang?   I&#8217;ve tried changing the priority of messages sent on that beat using defer and deferlow objects, but it doesn&#8217;t seem to make a difference.</p>
<p>Overdrive and Interrupt is on, using ASIO drivers, my computer&#8217;s power settings are at ultra high, but I&#8217;m still at a loss!</p>
<p>Thanks for your reply!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/performance-scheduler-spike-in-large-sequencer-style-patch/#post-167648</guid>
					<title><![CDATA[Re: Performance (Scheduler?) Spike in large sequencer style patch]]></title>
					<link>http://cycling74.com/forums/topic/performance-scheduler-spike-in-large-sequencer-style-patch/#post-167648</link>
					<pubDate>Thu, 14 Jun 2012 16:44:01 +0000</pubDate>
					<dc:creator>Roman Thilenius</dc:creator>

					<description>
						<![CDATA[
						<p>defer should normally not be required, except at points where you want to<br />
come from the sequencer and go to some other place, which doesnt need<br />
to be in time.</p>
<p>some strategies how to find out what it causes:</p>
<p> &#8211; try to remember what you changed before it occured the first time.<br />
 &#8211; upload the whole patch for others to see<br />
 &#8211; connect 16 bang buttons instead of the metro, then debug the patch by enabling the message tracing mode.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/performance-scheduler-spike-in-large-sequencer-style-patch/#post-167649</guid>
					<title><![CDATA[Re: Performance (Scheduler?) Spike in large sequencer style patch]]></title>
					<link>http://cycling74.com/forums/topic/performance-scheduler-spike-in-large-sequencer-style-patch/#post-167649</link>
					<pubDate>Thu, 14 Jun 2012 20:11:29 +0000</pubDate>
					<dc:creator>broc</dc:creator>

					<description>
						<![CDATA[
						<p>It seems unlikely that simple data loading would take 500 ms.</p>
<p>Are you perhaps reloading the VST instruments/presets?</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

