Skip to content

MemPressure v1.4.2

Choose a tag to compare

@benfiart benfiart released this 24 May 09:08
· 1 commit to main since this release

Energy efficiency improvements

Two changes that meaningfully reduce 12-hour energy cost for an always-on menu-bar app.

Pause when display sleeps

Polling and the cog animation now stop when the display turns off, and resume on wake. Hours spent with the laptop closed or display asleep no longer accumulate WindowServer recompositing or kernel wakeups against MemPressure.

Hash-based bitmap cache

The menu-bar bitmap is only redrawn when the visible pixels would actually change (quantized percents, sparkline history, formatted strings, colors, layout). Stable ticks skip the NSImage allocation and per-renderer draw work.

Also under the hood

  • DispatchSourceTimer with 200 ms leeway replaces Timer.scheduledTimer, letting the kernel coalesce our polls with other system timers.

No visible behavior changes. Cog animation, popover, all UI exactly as before.