Merge lp://qastaging/~hikiko/unity/unity.multimonitor-speed-up into lp://qastaging/unity

Proposed by Eleni Maria Stea
Status: Merged
Approved by: Andrea Azzarone
Approved revision: no longer in the source branch.
Merged at revision: 4145
Proposed branch: lp://qastaging/~hikiko/unity/unity.multimonitor-speed-up
Merge into: lp://qastaging/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://qastaging/~hikiko/unity/unity.multimonitor-speed-up
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.qastaging.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).

To post a comment you must log in.
Revision history for this message
Andrea Azzarone (azzar1) wrote :

Works fine here.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.