massive cpu hit from this

Jan 31, 2013 at 3:48pm

massive cpu hit from this

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. –
#66298
Jan 31, 2013 at 4:01pm

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…

#238640
Jan 31, 2013 at 4:07pm

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?

#238641
Jan 31, 2013 at 4:20pm

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

#238642
Jan 31, 2013 at 4:29pm

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

#238643
Jan 31, 2013 at 4:39pm

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

#238644
Jan 31, 2013 at 4:44pm

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

#238645
Jan 31, 2013 at 5:02pm

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

#238646
Jan 31, 2013 at 5:09pm

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

#238647
Jan 31, 2013 at 5:51pm

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.

#238648
Feb 1, 2013 at 1:14am

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.

#238649

You must be logged in to reply to this topic.