Live data from Hacker News

Control Center on macOS is always re-rendering its SwiftUI causing 1% CPU load

twitter.com

11–20 of 145 posts

Re: Control Center on macOS is always re-rendering its SwiftUI causing 1% CPU load

#14

Can't reproduce this on macOS Ventura 13.6 on a Mac Studio.

13.5.2 on Mac Studio and I def see it at 1,0 to 1,5 when not using it. Will update this mac later.

13.6 on my M2 MacBook air: 0,8 tot 1,1 when idle, not using.

Re: Control Center on macOS is always re-rendering its SwiftUI causing 1% CPU load

#16

This is such a classic UI programming bug, and almost every UI programming framework has a way to achieve this accidentally using core components. React is notorious for this, but even in non-declarative frameworks it's very easy to get a reactivity loop on a trigger or model update and do this.

It’s way easier in declarative frameworks, though.

Re: Control Center on macOS is always re-rendering its SwiftUI causing 1% CPU load

#18
post #3

That's probably a good amount of battery life that can be claimed back once this is fixed

The fix will be ready for the next macOS Apple Event so that they can claim battery performance improvements

Meanwhile Apple is the company most actively working on better battery performance, less memory utilization (e.g. compressed memory) and other such changes...

Re: Control Center on macOS is always re-rendering its SwiftUI causing 1% CPU load

#19
post #7

What does "even though there is no UI visible" mean?

Control Center is an overlay that is only shown when the appropriate icon in the menu bar is clicked. https://support.apple.com/guide/mac-help/mchl50f94f8f/13.0/m...

Couldn't it render on demand (on click)?

Or when the mouse starts entering the target before the click at least?

Post reply on HN