jordanbaird / Ice

Powerful menu bar manager for macOS
https://icemenubar.app
GNU General Public License v3.0
10.19k stars 194 forks source link

High CPU, memory, and energy usage #41

Open soukingang opened 3 months ago

soukingang commented 3 months ago

A cool and very useful tool,but its energy usage is relatively high, such as CPU、memory may optimize it? thanks

SCR-20240401-ltot SCR-20240401-ltrm SCR-20240401-lvwd
jordanbaird commented 3 months ago

What settings do you have enabled to cause such high numbers?

soukingang commented 3 months ago

@jordanbaird

The settings :

image image image

And my app on the menu bar:

image
jordanbaird commented 3 months ago

Interesting. So nothing out of the ordinary. I'll look into it to see if I can figure out what is causing this.

soukingang commented 3 months ago

@jordanbaird Operation Video https://www.dropbox.com/t/UyAK918EDn1TeVnL

Last night,i turn on the "show on hover" option, like this:

SCR-20240402-kbau

Now,when i hover the menu bar, my hidden icon appear ,but its memory usage is too high(usage:538.7MB)

image image image

。。。

Please optimize it ,thank you very much

my Mac: OS version is Sonoma 14.4.1 Apple M3 Max Memory:36 GB

And what anything else i can provide?

jordanbaird commented 3 months ago

Wow, that's bad. I have never had it go above 90 MB on my machine. Does it still have high memory usage immediately after restarting Ice? I'm thinking there is a memory leak somewhere.

soukingang commented 3 months ago

Wow, that's bad. I have never had it go above 90 MB on my machine. Does it still have high memory usage immediately after restarting Ice? I'm thinking there is a memory leak somewhere.

@jordanbaird Not immediately , its memory usage is high,sometimes. And when i hover menubar,it is high very often(watch the video https://www.dropbox.com/t/UyAK918EDn1TeVnL

i try restarting ice ,or restarting my computer, it still has high memory usage sometimes (and very often in certain situation)

What can i provide some other info about it,and how..? thanks.

jordanbaird commented 3 months ago

I can't reproduce this. Like I said, it mostly stays below 90 MB on my machine. In my testing, I was able to get it to jump to around 100 MB, but that was a rare case. In fact, more often than not, memory usage is around 50 MB. There must be something specific to your configuration that's causing this. What's strange is that memory usage should actually go down when menu bar items are being shown, not up.

Can you clarify whether it only happens when you use the "show on hover" feature? Or does it happen more generally when showing menu bar items?

exlemor commented 3 months ago

Hi Jordan,

Not sure if this helps but I use ICE on the last generation Intel Macbook Pro [right before M1] it's an Intel Core i9, 2.9Ghz, with 32gig DDR 4 RAM, dual graphics card Intel UHD Graphics 630 1536 MB and Radeon Pro 560X (even though the Radeon doesn't turn on for ICE use), and it typically takes:

Mac OS Sonoma 14.4.1

120-130mg of RAM, 9 threads, around ~465 ports, 3.0%-5.5% CPU / 40.84 GPU Time [on for 20hrs straight]

After a restart the CPU restarts at ~ 1.7%-3.5%, around 41-44mg of RAM.

So it appears that over time it grows slightly - maybe a memory leak issue?

If that helps :)

jordanbaird commented 3 months ago

@exlemor thanks for the insight. Some memory growth is normal throughout the use of any program due to lazy loading of resources, but this does seem like a little too much. I'll look into the possibility of a memory leak.

jordanbaird commented 3 months ago

@soukingang after updating to 0.8.0, do any of these things get better? I did several optimizations for the release that I'm hoping will at least show some improvement.

soukingang commented 3 months ago

@jordanbaird Tonight, i will try using ... Thanks a lot : )

soukingang commented 3 months ago
image image

@jordanbaird a bad news... its memory usage has a little big, i try removing and reinstall it, but it remains

image

i had tried closing the menu bar apps, one by one . At last all my apps on the menubar (except built-in system) were closed, but its memory usage had still a little big , sometimes (be patient for a while) on my mac

image image

I know it is strange ,but it appears ... although not often

Hope it will be fixed some day, but it's not urgent and It's possible that it can only be reappear on my mac :(

if you need some info(about this)what i can provide,you can reply me any time 。 --- that's my pleasure :)