leits / MeetingBar

🇺🇦 Your meetings at your fingertips in the macOS menu bar
https://meetingbar.app
Apache License 2.0
4.36k stars 188 forks source link

Bug: Very high battery use #623

Closed nikjft closed 10 months ago

nikjft commented 1 year ago

macOS version

13.4 (22F66)

MeetingBar version

4.4.0

Installation source

AppStore

Calendars provider

Google Calendar

Bug description

With MeetingBar active, my MacBook's (Pro M1 Max) battery depletes extremely rapidly - getting ~3 hours of battery life instead of 8+ without MB running. This makes it utterly unusable if I'm not plugged in.

I do have an unusually large number of calendar events (my task lists all publish to my calendar), but even still, this seems excessive.

When I watch MeetingBar in Activity Monitor, it regularly shows an "energy impact" of 80 when it's idle, and then it bumps up to 150 - 400 intermittently (presumably when syncing). Not sure what that metric means, but it's more than known-energy-hungry apps like Chrome and Slack.

CPU, likewise, sits at 4% when it's just idle.

Wondering if it isn't polling too frequently or looping through to keep the countdown of minutes-until-next-meeting up to date so it never truly idles. Can only assume there's a less expensive way of doing that.

Reproduction steps

Open Activity Monitor

Look at Energy and CPU for MeetingBar.

You will see ~3 - 6% CPU and 80+ "energy impact" when idle

Expected behavior

Minimal or no energy impact or CPU usage when idle

Screenshots/screen recordings

Here's MeetingBar at rest:

image

image

Additional context

No response

leits commented 1 year ago

Thanks for the report!

Included a few optimizations in the 4.5 version. Please, check it out!

leits commented 10 months ago

I am closing this topic due to inactivity. Feel free to reopen the issue if the problem still exists.