Stop Unity from redrawing the shell on every frame (ie. when it doesn't need to). It had a severe impact on graphics performance. (LP: #988079)
This especially improves OpenGL application performance and multi-monitor desktop performance. Because unity was previously slowing down compiz rendering by 20-40% for each monitor added to the system. This slowdown no longer occurs as only damaged areas of the unity shell are repainted. Now unity will not have any impact on compiz rendering performance for most video frames.
Coincidentally, this fixes a number of other bugs (linked).. Fixes: https://bugs.launchpad.net/bugs/734908, https://bugs.launchpad.net/bugs/874619, https://bugs.launchpad.net/bugs/886605, https://bugs.launchpad.net/bugs/967112, https://bugs.launchpad.net/bugs/988079, https://bugs.launchpad.net/bugs/992516, https://bugs.launchpad.net/bugs/1016430. Approved by Tim Penhey, Sam Spilsbury, jenkins.