Forums > MaxMSP

Patch veeery slow to behave smoothly

February 24, 2012 | 5:48 pm

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?


February 24, 2012 | 6:26 pm

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.

February 24, 2012 | 7:49 pm


February 24, 2012 | 11:45 pm

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

February 25, 2012 | 12:31 am

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

February 25, 2012 | 10:13 am

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. –

March 25, 2012 | 8:11 pm

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

March 25, 2012 | 8:54 pm

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

See Max Basic Tutorial 15 – Abstractions

March 28, 2012 | 11:08 am

thanks! thats great!

Viewing 9 posts - 1 through 9 (of 9 total)