Creeping memory allocation

macOS: Sequoia (15.7.3)
BetterTouchTool: 6.160

What can cause creeping up of memory allocation? Yesterday around 9pm I restarted BTT and it had a starting allocation of around 150M. This morning around 8:30 it had allocated 650M. Most of the timespan BTT config wasn't even open or active(so far I know).

Is there a way to periodically flush allocated memory besides restarting at certain interval?

the current builds do not yet (immediately) auto clear the memory taken by the preferences window creation, this will soon be back once I have finished all the related parts.

However there are also many other things that can contribute to memory usage, e.g. webviews take a lot of memory, floating menus depending on their complexity etc.

Usually the system auto clears the memory once it hits memory limitations, as long as you have enough free memory it doesn't.

Thanks for your explanation, I understand that memory handling is a complex process (esp. on macs). I was just surprised by the quite steep creep during a timespan of mostly idle time. For now I monitor every 30min. the allocation and if it exceeds 500M do a auto-restart.

that’s usually not necessary, the system will free up the space it needs (unless there is a real memory leak). If your system still has enough free memory, restarts will achieve the opposite of what you want (it would slow things down)

My M2 Pro has 16GB of RAM, I've not noticed the slowing down after BTT restart. Can you point out for which aspect of BTT to check for this?

not in BTT, but Activity Monitor will show how much RAM is used in total and how much swapping is happening

6.163 should now clean the window memory immediately again

//edit: ah damn, not in all cases yet!

6.165 should now really release everything immediately after closing the window

Nice, installing…