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. :)
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...
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?
Hi,
you might also be interested in my external called [sadam.canvas]
, announced in this earlier post: https://cycling74.com/forums/announce-the-sadam-library-version-2012-10-08 . 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
This looks VERY cool Ádám, I'll spend several hours pissing around with that object I'm sure, thanks very much for sharing! :)
P.S I am loving your music Ádám, beautiful!
i feel like this should be made into a sticky for Ádám's sake ;)
I don't know what you mean Zoid Ktho! ;)
Strange. It does reduce the CPU load on my setup.
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.
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.