Summary: | Change saturation for rerference images almost freezes Krita | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Karl Ove Hufthammer <karl> |
Component: | Tools/Reference Images | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | griffinvalley, halla |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/a7679986344a2e47b4d334d09a923e4a5e44d012 | Version Fixed In: | |
Sentry Crash Report: |
Description
Karl Ove Hufthammer
2019-08-30 21:46:53 UTC
Hm... What's the size of the image and of ther eference images? I tried on a 1600x1200 image with three reference images, and everything was pretty much instant. The size of the reference image seems to matter most. For small reference images, everything works fine. For large ones (either rescaled in Krita or shown at the original size), Krita slows to a crawl. Here’s a (very large) example image (tested on a 1600 × 1200 document): https://unsplash.com/photos/MN251xZ9mBk/download?force=true Changing the opacity is near instant, but changing the saturation is *extremely* slow. And when you drag the slider left and right a few times (without letting go of the mouse button), Krita seems to want to calculate all intermediate saturation values, not just the final one (?), and basically freezes for a *long* time. I can confirm here with an A4 sized reference image. Git commit 63689a3efa04a0757030b95c16e6d0c479e3b7df by Wolthera van Hövell tot Westerflier. Committed on 06/08/2020 at 17:34. Pushed by woltherav into branch 'master'. Add signal compressor in the reference image tool to prevent freezes. The saturation slider takes up quite a bit of computation time, so we use the techniqu of using a signal compressor to reduce the amount of changes being calculated. M +13 -2 plugins/tools/defaulttool/referenceimagestool/ToolReferenceImagesWidget.cpp M +2 -0 plugins/tools/defaulttool/referenceimagestool/ToolReferenceImagesWidget.h https://invent.kde.org/graphics/krita/commit/63689a3efa04a0757030b95c16e6d0c479e3b7df Git commit a7679986344a2e47b4d334d09a923e4a5e44d012 by Wolthera van Hövell tot Westerflier. Committed on 06/08/2020 at 17:36. Pushed by woltherav into branch 'krita/4.3'. Add signal compressor in the reference image tool to prevent freezes. The saturation slider takes up quite a bit of computation time, so we use the techniqu of using a signal compressor to reduce the amount of changes being calculated. M +13 -2 plugins/tools/defaulttool/referenceimagestool/ToolReferenceImagesWidget.cpp M +2 -0 plugins/tools/defaulttool/referenceimagestool/ToolReferenceImagesWidget.h https://invent.kde.org/graphics/krita/commit/a7679986344a2e47b4d334d09a923e4a5e44d012 |