Patch veeery slow to behave smoothly

Feb 24, 2012 at 5:48pm

Patch veeery slow to behave smoothly

Hi all!
I have something like 280 loadbangs in my patch, and i thing this is the reason why it starts reacting properly after more than 60000 milliseconds. Which I know you know is a minute ;-)

I wish to have just onebang which drives sequentially the other ones,as i read this could speed up performance.
But If everything was in the same window, no problem: just a [t b b b b b b etc.] would have done it. But what if I have multiple subpatchers (so no direct patchords)? I don’t know what’s the best way to efficiently do that.

Ah… and I *hope* the slowdown is a loading issue and not another one…: 280 loadbangs to trigger in order is not a very fun game ;-)
Any tip?


Feb 24, 2012 at 6:26pm

In my biggest patch, I adopted a scheme that works pretty well for me.
In the upper left corner of my top-level patch, I have a sub-patcher
that receives a loadbang, and starts a process of counting to 100,
driven by a metro. I distribute this value via [s LoadPercent]. Then
in all my abstractions, bpatchers, and subpatchers, I have an [r
LoadPercent] and fire off my local initialization when the LoadPercent
exceeds some threshold.

This way I can determine the order in which things get initialized,
across a giant, sprawling, patch.

It adds a little time to my startup, but everything always starts up
in the proper order.

Feb 24, 2012 at 7:49pm


Feb 24, 2012 at 11:45pm

nice, indeed!
looks like a lot of different [>] made one by one, if I get it right

Feb 25, 2012 at 12:31am

They probably don’t all need to be at different times, but yeah.

Feb 25, 2012 at 10:13am

My implementation of Chris Muirs suggestion:

Save abstraction as “loadpercent.maxpat”:

– Pasted Max Patch, click to expand. –

The loadpercent sender patch:

– Pasted Max Patch, click to expand. –
Mar 25, 2012 at 8:11pm

how did you know how to use patches attributes like – sel #1? is it discussed in some help file?

Mar 25, 2012 at 8:54pm

#1 is not strictly speaking an attribute, but rather an argument.

See Max Basic Tutorial 15 – Abstractions

Mar 28, 2012 at 11:08am

thanks! thats great!


You must be logged in to reply to this topic.