CPU overload when recalling data from pattrstorage

Alberto Gonzalez's icon

Hey guys, I have an issue when recalling data from pattrstorage. It seems it might be due to the amount of data recalled (changemode 1 enabled) but what does not make sense to me is that only does happen when the presets are recalled by a sequencer (live.step or counter), when I recall the presets manually the CPU is stable, even though the amount of data recalled is the same on both cases, also no CPU overload when Max device editor is open.

I have subscribe mode to only store/recall specific data from the autopattr objects.

Note: The CPU overload is on Ableton Live, nothing on Windows task manager.

Any idea what may be?

Alberto Gonzalez's icon

As another point worthy to take in account is the values stored/recalled are on bpatchers inside another bpatcher, i.e. the pattrstorage is inside a patcher then there is a bpatcher which contains 17 bpatchers, each of one with an autopattr object that exposes two modules to the pattr system, a live.dial and a matrixctrl. The matrixctrl then recalls a preset for a function object.

The CPU overload does happen just with 6 matrixctrl configured, depite those ones will also send a change on their respectives function objects I do not believe it is too much data, right?

What am I doing wrong?

schlam's icon

Hello.
Maybe posting your patch could help

Ernest's icon

HI, the cpu usage reported by Max, Windows, and MacOs is an average. What I do is keep a little indicator in the corner showing the peak reported CPU usage updated every couple of seconds, here is a clip. Thanks to Cycling 74 for updating it to report multiprocessor usage, by the way, that's happened sometime since Max8.

Max Patch
Copy patch and select New From Clipboard in Max.

schlam's icon

When I asked for your patch it was one with your pattrstorage, not the one to show the CPU usage..

Ernest's icon

Oh! Well my pattrstorage implementaiton has gotten a bit sophisticated, but it's already available for download here, and there's some notes on the design lower on the page. If you really want to understand it, I'm glad to answer questions, but I gotta warn you it's pretty advanced, lol

Unai Barruetabeña's icon

Hi guys! I'm having exactly the same issue, did anybody got any usefull solution?

Jean-Francois Charles's icon

Unai, pattrstorage interpolating or not? recalling data often or not? Most often, you can improve things by looking at how often you are recalling the pattr data.

Unai Barruetabeña's icon

Hi Jean, thanks for your question because I think it brought me to the answer. I knew nothing about pattrstorage interpolation and so I had to read some tutorials and articles. The thing is that I learned that pattrstorage and autopattr were not necessary and preset object was enough. It seems that this makes the job much more efficiently in order to use my devices in live performance.
Thanks again