Tame High WindowServer CPU Use on a Mac with OS X Yosemite

WindowServer consuming CPU and slowing down a Mac

The Mac received a many changes with OS X Yosemite along with a notable visual redesign, but some of those changes and various transparent effects may be taking a toll on some users Mac performance with errant WindowServer behavior. This is typically demonstrated with the WindowServer process spiking into heavy CPU use for seemingly no reason, often with an accompanying inordinate usage of memory, leading to very sluggish and choppy behavior during general usage of OS X.

At the worst, something like opening Quick Look, opening a few new Finder windows, or scrolling through a busy Finder folders contents leads to a surge in WindowServer processor usage that is high enough to cause a computer to freeze up or even the appearance of the much maligned beachball cursor.

Oh no, not the beachball

If WindowServer is frequently staying at spiking high CPU usage for seemingly no meaningful reason in OS X Yosemite, this article is aimed at you. We’re going to attempt to tame the WindowServer process by reducing elements and features that may be spurring WindowServer behavior (or misbehavior), a challenging task given that WindowServer is necessary to draw almost everything seen in OS X. Hopefully the WindowServer CPU usage issue is simply a bug or optimization issue that will be addressed, but for the time being this behavior continues well into the latest versions of OS X 10.10.3 even on the newest of Mac hardware. Fortunately, there are some solutions which help, so let’s get to it.

Turn Off Transparent Effects in OS X

Simply turning off transparency effects singlehandedly speeds up every single Mac I’ve encountered running OS X Yosemite, whether the hardware is new or old. Even if the computer doesn’t feel particularly slow, it will almost certainly feel faster turning off the transparency effects.

  1. Go to the  Apple menu and choose “System Preferences”, then go to “Accessibility”
  2. Choose “Display” from the left menu
  3. Toggle the switch next to “Reduce transparency” to be ON (alternatively, you can enable Increase Contrast if you want the UI to be a bit easier to differentiate, that will also turn off the translucent elements throughout OS X)
Turn off Transparency speeds up OS X

The speed increase is immediately notable in most actions, and you can even measure the before and after results with the FPS frame rate monitor in Quartz Debug, which depending on the hardware can be a 10 FPS or greater boost in the refresh rate of screen animations.

This is still the case with OS X 10.10.3 (granted it’s beta), so perhaps there is a stubborn bug or maybe a bit of performance optimization is still in order for OS X Yosemite.

Me personally, I like the transparent effects so I tend to keep this on with the newest Mac hardware, but even my 2015 model Retina MacBook Pro with 16GB of RAM gets a boost from turning off transparency. Meanwhile, barely older hardware like a MacBook Air from 2012 is frustratingly sluggish with transparent effects on, and I’ve heard similar complaints from users of the Retina iMac 27″, which is obviously quite new and powerful hardware. That new hardware with ample resources can still struggle displaying transparent effects in OS X suggests an eventual software solution is likely.

Close Unused App & Finder Windows

When OS X Yosemite has many windows of apps or Finder open, WindowServer starts to consume an inordinate amount of resources. While this can happen in all versions of OS X (or any OS for that matter), there is something unique about Yosemite which causes this to be a particularly draining event.

The solution is more user behavior oriented than anything else; get in the habit of closing unused windows or apps so they are no longer requiring resources.

Remembering the Close All Windows keystroke can be useful for managing this.

Stop Mission Control Spaces Rearranging Itself

If you use Spaces, which is basically the virtual desktop environment on the Mac, stopping the spaces from rearranging themselves based on usage seems to make a small difference in WindowServer behavior.

  1. Open System Preferences from the  Apple menu and go to “Mission Control”
  2. Disable the setting for “Automatically rearrange Spaces based on most recent use”

Many users don’t notice this feature anyway, so even if the improvement is nearly nil it’s usually not missed.

Multiple Displays? Turn Off Spaces for Each

If you have a multi-display setup, another setting to disable is Spaces for each individual display.

  1. Open System Preferences and go to “Mission Control”
  2. Toggle the setting for “Displays have separate spaces” to be OFF
  3. Log out, or better yet, reboot the Mac
Stop displays from having separate spaces

Of course, if you’re not one to use multiple screens with your Mac, that change will have no effect so your focus should be elsewhere.

Reboot

Leave a Reply

Your email address will not be published. Required fields are marked *