Forums > MaxMSP

massive cpu hit from this

January 31, 2013 | 3:48 pm

Hi guys and gals, I’ve built a pretty complex patch that I would like to incorporate a little visual feedback in. I have included these four LCD objects and I am using them to animate a rotating arc. The CPU hit is astronomical within my bigger patch, the CPU load rises from around 30% without it (measured within activity monitor on osx) to 100%+ with!! I have isolated the animation so that you can see what I mean, any ideas how I can achieve this without the huge CPU drain? Many thanks. :)

– Pasted Max Patch, click to expand. –

January 31, 2013 | 4:01 pm

If you use a bigger time grain in the line instances, like 50, you’ll get a smaller CPU usage.

Thre may be other, lighter, ways to draw you animation…


January 31, 2013 | 4:07 pm

Hi Patrick and thanks for the reply, a grain size of 100 on just one of the line objects increases my CPU load by over 10%. I think your right about other lighter ways to draw the animation, any ideas?


January 31, 2013 | 4:20 pm

Hi,

you might also be interested in my external called [sadam.canvas], announced in this earlier post: http://cycling74.com/forums/topic.php?id=42930 . It is basically quite similar to LCD, but has some extra features, like rotating sprites etc. It also seems to consume less CPU than [lcd] under most scenarios, at least according to some user feedback and my own experience.

Hope that helps,
Ádám


January 31, 2013 | 4:29 pm

This looks VERY cool Ádám, I’ll spend several hours pissing around with that object I’m sure, thanks very much for sharing! :)


January 31, 2013 | 4:39 pm

P.S I am loving your music Ádám, beautiful!


January 31, 2013 | 4:44 pm

i feel like this should be made into a sticky for Ádám’s sake ;)

http://en.wikipedia.org/wiki/Hungarian_names

http://en.wikipedia.org/wiki/Eastern_name_order#Name_order


January 31, 2013 | 5:02 pm

I don’t know what you mean Zoid Ktho! ;)


January 31, 2013 | 5:09 pm

Strange. It does reduce the CPU load on my setup.


January 31, 2013 | 5:51 pm

yeah, it definitely reduced it, its just still quite a high drain within the bigger patch. In the patch I posted earlier it does dramatically reduce the load.


February 1, 2013 | 1:14 am

This patch shows something that I’ve become aware of recently. Check out the 50% reduction in processing as measured by Activity Monitor in different patching modes.

(using the original poster’s unmodified first patch)

Unlocked Patching Mode = 30% cpu
Locked Patching Mode =16% cpu
Unlocked Presentation = 23% cpu
Locked Presentation = 15% cpu

Something to be aware of.


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