This repository has been archived by the owner on Jul 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QGtkWindow: Improve the tick callback
* Don't unconditionally install a tick callback, these are only used for the QtQuick (or other requestUpdate) users, not the widgets case * Remove the tick callback once window updates have ceased for a while, and reinstall it later. This significantly decreases the amount of unnecessary wakeups on otherwise idle gtkplatform clients. For instance, telegram-desktop while idle (measured using powertop): before: 60-80 wakeups per second (consuming 160-220 mW of power) after: ~0.5-2 wakeups per second (consuming 0.8-2.5 mW of power)
- Loading branch information
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters