Fps drop on ui interactions on mac ?

Bo's icon

I have been debugging my major and cpu heavy vj patch because after updating i have gone from 60 fps to around 25, after some long hours i have gotten the fps back but found that ui spectroscope~ and a single button changing state would take around 10 fps and multiple interactions would add up?

Spam clicking a single button not connected to anything will steal 10 fps ect..

Have anybody experienced similar ui fps loss? and is there a fix to this ? 

I am on a Apple M1 max

//Bo


Bo's icon

Maybe its just me using to many ui objects?

Jean-Francois Charles's icon

We can't have a general answer to that. It depends the rate at which you update/re-draw the UI objects. One approach consists in lowering the refresh rate of some UI objects. Questions like: do you need the default 20ms polling rate for spectroscope~, or, for your application, would 60ms be OK?

Objects to use include [speedlim], [deferlow], or [qlim].

And not refreshing them at all when they are not visible - Max by itself may or may not be smart about that, it depends.

Bo's icon

Thanks alot for the aswer will try that !

//Bo

mizu's icon

Hi Bo

i use that to test "à la volée", basic prefs of Max. Like Jean-François, the thing isn't so clear to crashtest... Max makes the job to deal with many timing clocks. Clearly when the screen is laggy, it can be unusable, even if the job is done. Need to choose what needs to be realtime for the eyes. Hahah

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

hth

zz

Wetterberg's icon

hej Bo <3

is it possible your audio settings have changed? I find sometimes that the two settings "Scheduler in overdrive" and "audio interrupt" can have a great effect on how the UI interferes with your framerates and ui speed. I guess double-checking the vector sizes as well, while you're at it?

As others have said, [speedlim], [deferlow], or [qlim] where possible, but of course the issue is new, so not solely based on that issue.

I too find that spectroscope~ is pretty "cpu expensive", but again, it's a new thing, so I don't know.

good luck, pal!