Live data from Hacker News

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

twitter.com

131–140 of 145 posts

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

#131
post #56

I am currently at war with google docs and notion re: memory usage. gmail takes something like half a gigabyte of memory. I had a notion database where each time it loaded an additional 25 rows, memory use went up 400MB. It only got up to 200-300 rows total before it died. I gave up Sublime because of memory usage, but the alternatives aren't much better. I'm getting ready to trade in my 8gb Mac for 24gb to help with…

TLDR; do not trust Activity Monitor. > I gave up Sublime because of memory usage Isn't this just because of GPU-mapped memory/textures? Because you can't get much better with any other app, for example text-rendering is not a solved problem yet, there are few nice tricks but they always come with some tradeoff so if you want to support non-english scripts, you usually just go with glyph atlas which needs to include 1…

Sublime with no windows open: 410mb of memory

CotEditor with no windows open: 80mb of memory

BBEdit with no windows open: 85mb of memory

In the Activity Monitor.

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

#132

Earlier quoted context omitted.

TLDR; do not trust Activity Monitor. > I gave up Sublime because of memory usage Isn't this just because of GPU-mapped memory/textures? Because you can't get much better with any other app, for example text-rendering is not a solved problem yet, there are few nice tricks but they always come with some tradeoff so if you want to support non-english scripts, you usually just go with glyph atlas which needs to include 1…

Sublime with no windows open: 410mb of memory CotEditor with no windows open: 80mb of memory BBEdit with no windows open: 85mb of memory In the Activity Monitor.

So? 410M is reported, it does not mean it's actually used.

I'm not sure if you are familiar with how virtual memory works but if you are, then I don't understand what's your point.

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

#133

Earlier quoted context omitted.

Go try and use it with any part of the keyboard, too. It’s jarring how rapid the backslide on accessibility and interface standards macOS has been.

In fairness, none of the options present in Control Center are exclusive to it. Everyone one of the options is available in System Preferences (with full keyboard support) or elsewhere.

Yeah, instead of having keyboard users do the normal thing to check their WiFi, interacting with the menubar, they should instead, every time, 1. Open System Settings; 2. Type Cmd-F; 3. type "wifi"; 4. press Tab 2 times

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

#134

Earlier quoted context omitted.

TLDR; do not trust Activity Monitor. > I gave up Sublime because of memory usage Isn't this just because of GPU-mapped memory/textures? Because you can't get much better with any other app, for example text-rendering is not a solved problem yet, there are few nice tricks but they always come with some tradeoff so if you want to support non-english scripts, you usually just go with glyph atlas which needs to include 1…

Sublime with no windows open: 410mb of memory CotEditor with no windows open: 80mb of memory BBEdit with no windows open: 85mb of memory In the Activity Monitor.

I guess it varies... I have ~50 files open in sublime right now, mostly small, but some fairly large (e.g. one is 600K), and I'm seeing 279MB in activity monitor. It was less, but I cycled through all my open files just to keep it honest.

Of course, there are a million different workflows people use, not to mention different plug-ins and language packages, etc., so it may just not work for you.

But I don't think there's really an inherent problem.

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

#135
post #126

Earlier quoted context omitted.

Control center is responsible for drawing a bunch of the ui on the top right of the menu bar, things like the clock (many comments here seem to be saying this is related to showing seconds), Wi-Fi, sound settings, etc. It also shows the annoying overlay bit when you accidentally open it :D

Indeed! When "Display the time with seconds" is enabled for the menu bar clock, Control Center sits at 0.8% CPU activity instead of 0.0% on my Mac.

I think part of the confusion is that there's the feature "Control Center" and the process controlcenter so you would reasonably think it's only involved in the marketing feature's UI.

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

#136
post #61
post #56

I am currently at war with google docs and notion re: memory usage. gmail takes something like half a gigabyte of memory. I had a notion database where each time it loaded an additional 25 rows, memory use went up 400MB. It only got up to 200-300 rows total before it died. I gave up Sublime because of memory usage, but the alternatives aren't much better. I'm getting ready to trade in my 8gb Mac for 24gb to help with…

To be fair, 8gb hasn't been quite enough for most dev work since containers and VMs became a standard way for local builds and runs.

I do heavy dev work on an 8GB M1 Mac. Like, dozens of Chrome tabs, multiple IDEs, Notion, Slack, etc. Works great. MacOS does a good job at compressing memory and using swap. The SSD on an M1 Mac is basically DDR2 speed, so even if you're mostly running on swap programs still execute fast enough.

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

#137

Earlier quoted context omitted.

In fairness, none of the options present in Control Center are exclusive to it. Everyone one of the options is available in System Preferences (with full keyboard support) or elsewhere.

Yeah, instead of having keyboard users do the normal thing to check their WiFi, interacting with the menubar, they should instead, every time, 1. Open System Settings; 2. Type Cmd-F; 3. type "wifi"; 4. press Tab 2 times

You mean like every other OS? On Windows, you have to press the Win button, go to Settings, tab over to Network, tab over to Wifi.

If you were such a keyboard expert, you'd know that you can 1. Press Cmd+Space 2. Type 'wifi' 3. Do whatever you need to do.

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

#138
post #134

Earlier quoted context omitted.

Sublime with no windows open: 410mb of memory CotEditor with no windows open: 80mb of memory BBEdit with no windows open: 85mb of memory In the Activity Monitor.

I guess it varies... I have ~50 files open in sublime right now, mostly small, but some fairly large (e.g. one is 600K), and I'm seeing 279MB in activity monitor. It was less, but I cycled through all my open files just to keep it honest. Of course, there are a million different workflows people use, not to mention different plug-ins and language packages, etc., so it may just not work for you. But I don't think ther…

That's fascinating. I wonder what's different between your situation and mine. You're on an M-series Mac? Current MacOS?

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

#139
post #134

Earlier quoted context omitted.

I guess it varies... I have ~50 files open in sublime right now, mostly small, but some fairly large (e.g. one is 600K), and I'm seeing 279MB in activity monitor. It was less, but I cycled through all my open files just to keep it honest. Of course, there are a million different workflows people use, not to mention different plug-ins and language packages, etc., so it may just not work for you. But I don't think ther…

That's fascinating. I wonder what's different between your situation and mine. You're on an M-series Mac? Current MacOS?

Yes, it’s an M1 (the lower-end Studio one), and Monterey.

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

#140
post #122

Earlier quoted context omitted.

My wife’s Intel-based laptop got considerably slower in the last year or so. I tried everything I could but nothing seemed to return it to its original performance. Then she got a warning that the battery needed servicing. After getting it replaced (and the Apple employee warning us several times that it might not help performance), the laptop was back to its previous state. My theory is that the battery running warm…

Interesting, how old was it? Do you recall how many cycles the battery was at? Unfortunately throttling is unlikely in my case, at least for the lagging I observe day-to-day, I don't see any throttling via `pmset -g thermlog`. I did wonder if changing thermal paste would help, but since I don't observe throttling I'm not sure it would

I believe we purchased it around 2018 or so. I didn’t look at the power cycles, just got the warning about needing maintenance.
Post reply on HN