Live data from Hacker News

Moving the mouse cursor can cause CPU spikes on macOS

mmazzarolo.com

21–28 of 28 posts

Re: Moving the mouse cursor can cause CPU spikes on macOS

#21

(Un?)related, but this brings back memories of wiggling a Windows 95 window back in the day and "speeding up" the application.

I also remember wiggling the mouse to get installation programs to progress.

Sometimes it would be stuck at 100% for ages, as usually you're not interacting with the machine during an install, and then somebody would wiggle the mouse and suddenly 'Installation complete'

Re: Moving the mouse cursor can cause CPU spikes on macOS

#22
post #18

>Finally, I tried and with a Magic Trackpad 2 (which should have a polling rate of ~90Hz) and with the built-in MacBook trackpad, and there were almost no changes to the WindowServer CPU usage. I just decided to test it on my MBP, continuously moving the cursor on trackpad, WindowsServer was hovering at ~20+%, and 2-5% when it is not moving. It is not as high as an USB mouse but it is definitely problematic. And I ha…

Interesting, what's your MBP version?

Re: Moving the mouse cursor can cause CPU spikes on macOS

#23
post #8

I’m surprised people are only noticing this on Big Sur, since I’ve been seeing this as early as Mojave using a 1kHz ‘gaming’ mouse. (It may have happened in even earlier versions of the OS and is just getting progressively worse on every new macOS release…) I suspect this is at least part of the reason why some people have mysterious performance problems with VirtualBox on macOS[0]—at least, it’s how I first noticed…

What if you used something like Synergy so that the mouse and keyboard input is shared over networking between host and guest rather than the virtual USB interface?

Re: Moving the mouse cursor can cause CPU spikes on macOS

#24

Sounds like they’re working on removing the 60fps hard limit that macOS has had for the past fifteen years, as part of bringing 120Hz support from the TV and tablet line to pro Macs someday.

What 60fps hard limit? You can already set it to 120fps if your monitor supports it (and it has been possible for a few years).

I was thinking of the hard limit on Apple's monitors, which have always been locked at 60Hz (such as MacBook, iMac, and Pro Retina). But I'm glad to hear that macOS is ready, even if the hardware isn't! Thanks for the correction.

Re: Moving the mouse cursor can cause CPU spikes on macOS

#25
post #18

>Finally, I tried and with a Magic Trackpad 2 (which should have a polling rate of ~90Hz) and with the built-in MacBook trackpad, and there were almost no changes to the WindowServer CPU usage. I just decided to test it on my MBP, continuously moving the cursor on trackpad, WindowsServer was hovering at ~20+%, and 2-5% when it is not moving. It is not as high as an USB mouse but it is definitely problematic. And I ha…

Interesting, what's your MBP version?

MBP 2015.

Re: Moving the mouse cursor can cause CPU spikes on macOS

#26
post #8

I’m surprised people are only noticing this on Big Sur, since I’ve been seeing this as early as Mojave using a 1kHz ‘gaming’ mouse. (It may have happened in even earlier versions of the OS and is just getting progressively worse on every new macOS release…) I suspect this is at least part of the reason why some people have mysterious performance problems with VirtualBox on macOS[0]—at least, it’s how I first noticed…

[deleted]

Re: Moving the mouse cursor can cause CPU spikes on macOS

#27
MacOS has had horrible mouse input since forever.

Up until some version I could kill the acceleration curve with SteerMouse (but not the scroll acceleration), but there was still the 2 frame lag. It's also extremely distracting how you can see the UI further lagging behind the cursor when you drag windows or click buttons. Another frame or two of delay, bringing it to a total of 64ms.

I have a 1000km RTT ping that takes less than it takes MacOS to react to mouse movement. It feels like using a remote desktop.

After Big Sur, the issue got even worse, especially on external displays. CPU usage also spiked through the roof.

After developing for a while on a Windows machine with a 144hz display and a 500+hz mouse I can't go back to using MacOS. It feels like trying to use a car infotainment system by comparison.

I also couldn't get a 2019 15" MBP to work on the external display at over 100hz using DP Alt Mode over a HDMI2.0 cable. The same one works fine on my desktop or on a ThinkPad.

Re: Moving the mouse cursor can cause CPU spikes on macOS

#28
post #8

I’m surprised people are only noticing this on Big Sur, since I’ve been seeing this as early as Mojave using a 1kHz ‘gaming’ mouse. (It may have happened in even earlier versions of the OS and is just getting progressively worse on every new macOS release…) I suspect this is at least part of the reason why some people have mysterious performance problems with VirtualBox on macOS[0]—at least, it’s how I first noticed…

> I’m surprised people are only noticing this on Big Sur

I've tried bringing peoples' attention to this issue for years now and they either don't notice it or care if they manage to.

Post reply on HN