27Saumya / Macboard

A minimalistic clipboard manager for macOS
https://saumya.lol/macboard
MIT License
94 stars 1 forks source link

200+ Energy Impact on Activity Monitor #10

Closed Rayrnond closed 7 months ago

Rayrnond commented 7 months ago

When using the app (just installed, didn't actually 'use' it yet), the app is using more than 200 on my Activity Monitor energy impact, which is insane. For context, 20 tabs open FireFox is using just under 300, running IntelliJ uses 150, and I personally noticed my battery go from 40% to 10% in about 30 mins, compared to normally taking 3ish hours.

Screenshot 2024-02-22 at 5 08 59 PM
Rayrnond commented 7 months ago

The energy impact is increasing with each "large" copy. I tested copying a large coding file (aprox. 200 lines) and it jumped from 10 to 100.

27Saumya commented 7 months ago

uh-oh this shouldn't be happening, I'll look forward and release a patch soon! Also what is your macOS version

Rayrnond commented 7 months ago

Version 14.4 Beta (23E5205c) Also tested on latest stable 14.3 on a M3 MacBook Air, same issue.

Rayrnond commented 7 months ago

Did some instrumenting, every copy is using an interesting amount of CPU total.

Screenshot 2024-02-22 at 8 21 39 PM
27Saumya commented 7 months ago

oh that's strange I tried replicating it on my machine, it goes max till 20, I'll check it in a while, thanks!

27Saumya commented 7 months ago

oh hi @Rayrnond, I tried out it does go upto 100, but then I tried out couple other clipboard managers as well they all go upto 150 on average and even 250 quite a lot of times, the reasoning for this is:

This is when the app is hidden in the menu bar

image

This is when the app is visible

image