You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

poor performance after wake from sleep in Lion

I have problem with wake up from sleep.

when i just use my mac, it works normaly

but after wake from sleep, graphic performance

down to about half.


for example i got 70 fps around. in WOW.

after wake, it drops to 20 fps around.

Cinebench 11.5 shows 16fps after wake.

but 30 fps from first reboot condition.


Mac is 2008 2.8 octacore with Radeon 5770

lion looks heavy than SL. more heavy feeling to

click something. it reacting bit slowly than SL

and this made feel heavy. please fix this problems.

Posted on Jul 23, 2011 9:45 AM

Reply
78 replies

Nov 18, 2011 10:00 AM in response to WEBconsultant

Didn't work for me. Also, some people on this thread mentioned that complete Lion re-install didn't help either.


I guess performance issue could be caused by some compatibility issue with older software / settings. And if you have NVIDIA graphocs most likely it can be fixed by cleaning your system or installing fresh copy of Lion.


However, there are also us, ATI owners. And the only discovered "fix" for us is to roll back to old Snow Leopard kexts, which isn't an option for me. I'm still waiting for the real fix from ATI / Apple.

Apr 13, 2012 1:42 AM in response to raulcab

Yea, I uninstalled the Air Display and the performance of graphic (in term of scrolling up and down in safari and preview) on my macbook pro 13 early 2011 is back to normal. I do not know why is it so but I hope this issue can be addressed.


However I have another issue, which is when connect to an external monitor via thunderbolt port, the system will show two screens even though the main display has been closed down by closing down the lid. I shall try it later to see whether it is related to the Air display as well.

Jul 31, 2012 9:14 PM in response to macreal

It appears that Mountain Lion has not fixed this issue. I upgraded, put my Mac Pro 3,1 (with ATI Radeon 5770) to sleep for a minute, woke it up, and launched Diablo III. Even in the menus, with the character loop, you can see that frame rates are decimated. Restart fresh, no problems.


The good news is that Diablo III and WoW seem to run fine in Mountain Lion otherwise.

Sep 17, 2012 1:19 AM in response to Glenn Gutierrez

From what I've read here and there, and based on my own experience, OS X has this issue of low OpenGL performance after 'wake from sleep' (at least since) 10.6.x up till 10.8.1 (that I'm running now).


You can easily prove it like this:


- restart your mac / or start from cold and run a Cinebench "OpenGL" test

you can DL from here: http://www.maxon.net/products/cinebench/overview.html

- put your Mac to sleep

- wake from sleep

- run the "OpenGL" test again


most probably you'll see a serious degradation in performance. In my case 15fps down from the 55fps


Here's how managed to live with this issue since 10.6.x


I've created an AppleScript that I run each morning when I wake my mac.

What it does is, that it switches the resolution of monitor to some other resolution, then switches back to my desired native resolution - you will have to adopt the script depending on your monitor/video card.


After running this script your OpenGL performance will return to it's normal.


There was a change in System Preferences/Display since Mountain Lion, so you need different script depending on your OS version.


The lines responsible for resolution are those that start with:


selectrow 2 of table 1 ...


the number after 'row' is the number of resolution within your list



- - - - - - - - - - - - - - - - - - - - - -

Script for 10.6.x/10.7.x users:

- - - - - - - - - - - - - - - - - - - - - -


tell application "System Preferences"


activate

set current pane to pane "com.apple.preference.displays"

end tell


tell application "System Events"


click radio button "Display" of tab group 1 of window 1 of process "System Preferences"


select row 2 of table 1 of scroll area 1 of group 1 of tab group 1 of window 1 of process "System Preferences"

select row 5 of table 1 of scroll area 1 of group 1 of tab group 1 of window 1 of process "System Preferences"

end tell


tell application "System Preferences"


quit

end tell




- - - - - - - - - - - - - - - - - - - - - -

Script for 10.8.x users:

- - - - - - - - - - - - - - - - - - - - - -


tell application "System Preferences"


activate

set current pane to pane "com.apple.preference.displays"

end tell


tell application "System Events"


click tab group 1 of window 1 of process "System Preferences"

click radio button "Scaled" of tab group 1 of window 1 of process "System Preferences"


select row 2 of table 1 of scroll area 1 of tab group 1 of window 1 of process "System Preferences"

select row 5 of table 1 of scroll area 1 of tab group 1 of window 1 of process "System Preferences"

end tell


tell application "System Preferences"


quit

end tell

Sep 17, 2012 4:17 PM in response to Glenn Gutierrez

Running this script after wake can be automated by invoking other helper apps like SleepWatcher.


A quick quide on how to setup a 'wake' script with SleepWatcher:


http://theglenbot.com/sleep-and-wake-scripting-osx/


Let me note, to run an AppeScript from terminal or bash script we have to use the command osascript


so for example type in Terminal


osascript /path/to/your/applescript.scpt


Oct 1, 2012 10:14 AM in response to Mac Admin1

Or you can just use the status bar app I threw together when I started noticing this issue over the weekend on my MP.


It's available here: https://github.com/winterton/wakeRes/downloads


It's not signed, so gatekeeper may complain, but I'm primarily an iOS developer so I never got around to spending the extra $99 for a Mac dev program account. Also, I haven't tested it on any other machine than my own, so any input would be appreciated.

Oct 5, 2012 12:43 PM in response to ColonelSmith

Very nice! I've used wakeRes for a few days now, with no problems. It's also quicker than the AppleScript, so it's a keeper. One minor thing: Even if set otherwise, the delay setting goes right back to 15 seconds after a reboot.


Curious: My Mac Pro requires a password on wake. The delay countdown seems to start from 'wake' time, and not after password entry. If the refresh happens to occur before entering the password, I'm assuming it's all the same to the OS? (Seems ok so far.)


Thanks!

Oct 5, 2012 1:08 PM in response to Glenn Gutierrez

Thanks for the feedback! I'll make a note to add better persistence to the delay.


In my use, I've noticed that 10 to 15 seconds is the sweet spot, if the delay is too short, it may not improve perofrmance. The delay isn't dependent on when or if you enter your password, it'll work even if you don't unlock your account. You may want to use a few different delay settings and run benchmarks to see which is right for your system.


Also, if anyone would like to expand upon wakeRes, feel free to contribute to the project on github.

poor performance after wake from sleep in Lion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.