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. :)
----------begin_max5_patcher---------- 786.3oc6X99aiBBFG+01+JLl8xdK.ZU68t6uikkEpx0whEM.a2taY+ueHna8 Wqvrqzl3xxzHZe7Ke344q.uLIHZQ8yDQT3OCuILH3kIAA5lZaHn65fnU3mKp vB8iEwH+odwCQSM2RRdVpatpFWt.yV1eieWyjB5+Hs2DhtFz0L6wUTVEQpiE 78FqeTtcqzRcfUure.6iZCVVbOks7NNoPZTcNPE7vD8wT8Qj5X3sqoCFdkVG Q+hSwU8wx7Jk+sgXBTjV9g21d2WmLo8vTGYxJhPfWR1AJJwDmBBuB9YnBxYp L+.XAhLv.NyPFn9h7gQlgQkOJSgxHeFdDuWdf1kGHfK7nKeI8XxThlNTlTUT 1GUBCunhHZ3TIYig3EKkbLSzf4Dlbq5jcKdZ3Dg54vRZMa89KrqKlk2dJdtt aGmsdOdShlrGhBcfnwHyICXiSV+MrC4pnBYK85OSYxNXtmtyFPolWR3ss.9B KPKpHX9zvFrRGXdQHP8mpGn++JX3LPHrss8ltFejkuHjCvEkYNEizIuy8Y86 YxUK9Pl8YiMSMXhC3Xj3okmAW2vYPVZvY1442NZCrzM0NaGeFZ4G.JI4iM+r 4NPiQhcVR1biaSxQXmAryyusyFncFzNaOm1YpNvBEwO5EbumpzCMoCX2LSMY UyNpkb2kc0sx62dmb0uVR32Yp+9pyoP..3j3zirtMEckfY92m+77su3YVQxX Zt741owXY6IlYF6Ohu7Asuqfe+kugtFbfU1dJ9xmNB55us1RZsJz0ka.RQ8i 7h9P0sQwguqiRhPRYuMdcyatzq8L2SKKI5a2irRpnMyu7iGPcUMp45pFjNrZ x8pZrwFHzaxI2A4L2apo8CU1oi+FrPHWxj82nU6dqaWOH+pGa0VP+k+3xvU9 EkZ1Ji+bKmKrwp1cg1SxA5hw7V0emT83hybhekC7xIY1I7nm.kuDTpKBxi.J wE8j5W8.ufp2iANMSLnGUjKBxik7tLMd3PqvLKx.2z7DgK5hoVJp0k8Psdcb oS0WRYlK0QLhSdh1+7YSZi1qS9+wHSfC -----------end_max5_patcher-----------
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?
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,
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.
Forums > MaxMSP