Merge lp://qastaging/~vanvugt/compiz-core/fix-880707.2 into lp://qastaging/compiz-core/0.9.5
Proposed by
Daniel van Vugt
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sam Spilsbury | Approve | ||
Compiz Maintainers | Pending | ||
Tim Penhey | Pending | ||
Review via email: mp+83472@code.qastaging.launchpad.net |
This proposal supersedes a proposal from 2011-11-14.
Description of the change
Introduced "tickless" frame timing to the composite plugin. This means we no longer need to poll for repaints. Composite only wakes up when a repaint is required and it's the right time to do so. This not only improves vsync accuracy, but also reduces CPU usage and power consumption.
To post a comment you must log in.
> bool scheduled, painting, reschedule;
Many coding standards say only one variable declaration per line. I'm not entirely sure what the compiz-core one says.
Also, please prefer initializer lists to setting variables in the constructor.
+ scheduled = false;
+ painting = false;
+ reschedule = false;
These should all be in the initializer list.