Repository navigation
fix(app): stop animating live readings on every update - #106
Merged
Merged
Conversation
The open dashboard held the app at around half a CPU core, in front of other apps and behind them. On Overview the watts, volts, amps and temperature rolled their digits, and the Mac and battery bar eased its width, every time a reading changed. Readings change every second, so those animations ran almost all the time, and the digit roll is drawn on the CPU. Live readings now change without animation; the charge, the cycle count and settings still roll. A debug build started with --demo --live-readings varies the sample readings every second, so this can be measured: 48% CPU before and 5% after with the window open. Refs #90 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
3 tasks done
yogeshprasad098
added a commit
that referenced
this pull request
Nov 27, 2026
The open dashboard held the app at around half a CPU core, in front of other apps and behind them. On Overview the watts, volts, amps and temperature rolled their digits, and the Mac and battery bar eased its width, every time a reading changed. Readings change every second, so those animations ran almost all the time, and the digit roll is drawn on the CPU. Live readings now change without animation; the charge, the cycle count and settings still roll. A debug build started with --demo --live-readings varies the sample readings every second, so this can be measured: 48% CPU before and 5% after with the window open. Refs #90
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #90
With the dashboard open, Chargectl used around half a CPU core, in front of other apps and behind them. On Overview the watts, volts, amps and temperature rolled their digits, and the Mac and battery bar eased its width, each time a reading changed. Readings change every second, so these animations almost never stopped, and the digit roll is drawn on the CPU. 0.3.1 fixed the closed window; this fixes the open one.
Live readings now change without animation: the Power and Charger cards, the temperature, the energy list, and the Charger, Mac and Battery figures in the menu bar panel. The charge, the cycle count and settings still roll.
rollingNumbertakesisLivefor cells that hold both kinds of value.To measure it, a debug build started with
--demo --live-readingschanges the sample readings every second. CONTRIBUTING says to check CPU this way when changing the dashboard.Review focus
The Mac and battery bar under the Power card no longer eases to its new width; it jumps. With its 0.6 s ease on every reading, the whole page was laid out again on every frame.
Testing
Tested on an M3 MacBook Air, macOS 27.2.1, Debug build with
--demo --live-readings, CPU frompsover 20 s with the Overview window open:A sample of the installed 0.3.1 at 40% showed most of the main thread in
CGDrawingLayer.drawdrawingRBInterpolatedDisplayListContents, the numeric text transition../scripts/check.shpasses.Not tested: the release build with real readings. I'll measure it once this ships.
CHANGELOG.mdhas an entry under Unreleased saying what a user now sees, or nothing user-visible changed.!in the title and the migration above.