Merge lp://staging/~hikiko/unity/unity.multimonitor-speed-up into lp://staging/unity
Status: | Merged |
---|---|
Approved by: | Andrea Azzarone |
Approved revision: | no longer in the source branch. |
Merged at revision: | 4145 |
Proposed branch: | lp://staging/~hikiko/unity/unity.multimonitor-speed-up |
Merge into: | lp://staging/unity |
Diff against target: |
80 lines (+11/-11) 2 files modified
plugins/unityshell/src/unityshell.cpp (+10/-10) plugins/unityshell/src/unityshell.h (+1/-1) |
To merge this branch: | bzr merge lp://staging/~hikiko/unity/unity.multimonitor-speed-up |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrea Azzarone (community) | Approve | ||
PS Jenkins bot | continuous-integration | Pending | |
Marco Trevisan (Treviño) | Pending | ||
Review via email: mp+298981@code.staging.launchpad.net |
Commit message
UnityScreen: only redraw parts of the screen visible in each output
We draw only the parts of the screen that are visible in each output (monitor) because compiz draws things per output anyway. Speeds up the drawing by about N times, where N is the number of monitors because:
We used to draw all monitors' content when 1 monitor was rendered (=> we rendered N times the N monitors' content). Now, we draw only the current monitor's content (we render 1 time each of the N monitors' content).
Description of the change
Fix for multi-monitor:
We draw only the parts of the screen that are visible in each output (monitor) because compiz draws things per output anyway. Speeds up the drawing by about N times, where N is the number of monitors because:
We used to draw all monitors' content when 1 monitor was rendered (=> we rendered N times the N monitors' content). Now, we draw only the current monitor's content (we render 1 time each of the N monitors' content).
Works fine here.