FelixKratz / JankyBorders

A lightweight window border system for macOS
GNU General Public License v3.0
1k stars 18 forks source link

High memory usage #54

Closed amusingimpala75 closed 7 months ago

amusingimpala75 commented 7 months ago

On the latest version (and older ones as well), I noticed that according to btop, JankyBorders consumes almost 300MB of RAM, more than double what Emacs is using, and only less than Wezterm and Firefox. Is there anything inherent about the design of JB that results in such high memory consumption, or is this some sort of bug?

FelixKratz commented 7 months ago

I suspect you have hidpi=on. If you have a lot of high resolution windows the backing stores will consume considerable amounts of storage, there is no way around that in macOS. If you set hidpi=off, you should notice that the memory consumption in activity monitor decreases drastically.