Summary: | Krita idles at non-zero CPU/GPU usage if a selection is active, when minimized | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Pieter-Jan Briers <pieterjan.briers> |
Component: | General | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | 4.4.2 | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/ddb334257d56ade639451d40265c5c47f173e474 | Version Fixed In: |
Description
Pieter-Jan Briers
2021-01-29 17:33:18 UTC
Git commit 885bff93ec7765d7592583b89b8dfd4f4c755f76 by Dmitry Kazakov, on behalf of Bip Boop. Committed on 12/07/2022 at 11:35. Pushed by dkazakov into branch 'master'. Reduce idle cpu usage when a selection is active I made it so that when a canvas widget receives a show/hide event it notifies its decorations accordingly. This reduces idle cpu usage when the application is minimized and a selection is active because it prevents the ant animation from updating. M +3 -0 libs/ui/canvas/kis_canvas_decoration.cc M +2 -0 libs/ui/canvas/kis_canvas_decoration.h M +6 -1 libs/ui/canvas/kis_canvas_widget_base.cpp M +1 -0 libs/ui/canvas/kis_canvas_widget_base.h M +12 -0 libs/ui/canvas/kis_qpainter_canvas.cpp M +3 -1 libs/ui/canvas/kis_qpainter_canvas.h M +8 -0 libs/ui/kis_selection_decoration.cc M +2 -0 libs/ui/kis_selection_decoration.h M +12 -1 libs/ui/opengl/kis_opengl_canvas2.cpp M +3 -0 libs/ui/opengl/kis_opengl_canvas2.h https://invent.kde.org/graphics/krita/commit/885bff93ec7765d7592583b89b8dfd4f4c755f76 Git commit ddb334257d56ade639451d40265c5c47f173e474 by Dmitry Kazakov, on behalf of Bip Boop. Committed on 12/07/2022 at 11:37. Pushed by dkazakov into branch 'krita/5.1'. Reduce idle cpu usage when a selection is active I made it so that when a canvas widget receives a show/hide event it notifies its decorations accordingly. This reduces idle cpu usage when the application is minimized and a selection is active because it prevents the ant animation from updating. M +3 -0 libs/ui/canvas/kis_canvas_decoration.cc M +2 -0 libs/ui/canvas/kis_canvas_decoration.h M +6 -1 libs/ui/canvas/kis_canvas_widget_base.cpp M +1 -0 libs/ui/canvas/kis_canvas_widget_base.h M +12 -0 libs/ui/canvas/kis_qpainter_canvas.cpp M +3 -1 libs/ui/canvas/kis_qpainter_canvas.h M +8 -0 libs/ui/kis_selection_decoration.cc M +2 -0 libs/ui/kis_selection_decoration.h M +12 -1 libs/ui/opengl/kis_opengl_canvas2.cpp M +3 -0 libs/ui/opengl/kis_opengl_canvas2.h https://invent.kde.org/graphics/krita/commit/ddb334257d56ade639451d40265c5c47f173e474 |