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