Sleep while idle
With no input for a second and nothing playing, recording, fading or being typed, the window redraws 20 times a second instead of 120, and wakes on the next event. Idle CPU with a document open went from 5.6% to 1.7% of a core.
This commit is contained in:
1 parent
20209e655e
commit
c38a3a9890
2 files changed
+29
-4
No files matched your search
+1
-1
@@ -42,7 +42,6 @@ class Taskbar
|
||||
PopupHelper vectorPopup = PopupHelper(LABEL_CONVERT_SVG_POPUP, POPUP_SMALL_NO_HEIGHT);
|
||||
PopupHelper renderPopup = PopupHelper(LABEL_TASKBAR_RENDER_ANIMATION, POPUP_SMALL_NO_HEIGHT);
|
||||
PopupHelper configurePopup = PopupHelper(LABEL_TASKBAR_CONFIGURE);
|
||||
PopupHelper aboutPopup = PopupHelper(LABEL_TASKBAR_ABOUT);
|
||||
Settings editSettings = {};
|
||||
int generateRegionsTarget = 0;
|
||||
bool isGenerateRegionsMapFrames = true;
|
||||
@@ -53,6 +52,7 @@ class Taskbar
|
||||
bool save_request(Manager&, Settings&, int = -1, const std::filesystem::path& = {}, bool = false);
|
||||
|
||||
public:
|
||||
PopupHelper aboutPopup = PopupHelper(LABEL_TASKBAR_ABOUT);
|
||||
float height = 0;
|
||||
|
||||
void update(Manager&, Settings&, Resources&, Dialog&, bool&);
|
||||
|
||||
Reference in new issue
Block a user