Forums > MaxMSP

checking CPU load of parts of the patch

August 19, 2009 | 5:11 pm

My patch is growing toward 50% CPU and I am working with a bunch of objects that I am quite unfamiliar with.

what is the best way to find out where the CPU load in the patch is happening? simply deleting objets? or is there a more elegant way?

I came across the "probing" menu entry in the Debug menu, but I couldn’t find it in the documentation and it didn’t make much sense poking around with it. Is this the way to go?

what a luxury it would be if had an indication of how much CPU a given object uses…Wink

any advice greatly appreciated!


August 20, 2009 | 11:28 am

the problem is that it is not so simple that you could say object
[cycle~] uses 0.0057% in order to have some kind of comparison.

some objects start using the more CPU the more intances you run.

try making copies of cycle~ and see how much they use and then try
the same with zerox~ and you will see what i mean.

of course it can also depend on CPU type, OS, background apps
and last but not leat about the current CPU requirement for
message stuff in the max runtime.

are you using specific objects maybe? that is where i would start
optimising beore i count my line~s …



August 20, 2009 | 3:48 pm

david posted a tester a long time ago I wish I knew the right search terms. something about

try this

— Pasted Max Patch, click to expand. —
August 20, 2009 | 7:58 pm

I often use Apple’s Shark to look at my patches. It usually tells you how much percentage each (mainly DSP) object takes. Of course if you’re just wondering if one instance of trigger takes more CPU than one of bangbang that’s another story Wink

September 8, 2009 | 1:56 pm

While this thread is about "parts of a patch", is there a way to optimize cpu by making some parts of the patch "inactive" when not used ?

I’m using rather old computers with Tuio objects and the Reactivision software (which is a big cpu-eater) so it requires the Maxmsp patches to be as light as possible …

First i put some gates everywhere but it doesn’t seem to make a big difference. I wonder if there’s a way to on/off in a more effective way …

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

Forums > MaxMSP