At any point in time that Krita has to render or re-render the selection preview outline (marching ants), it takes a non-insignificant amount of time to actually show up. Sometimes taking twice as long or more than the selection function itself. While the actual selection is pretty snappy, on more than one occasion I began to paint on the canvas before the selection showed up. My stroke wouldn't register, and I'd be left confused until the marching ants finally showed up and I realized I was painting outside of the selection. This applies to any time it needs to be recalculated, including post-transformation, magic wand, and similar color select tool.
Can you please share a video or example document with this? It's rather hard to reproduce with any given test file.
Created attachment 127835 [details] Selection timings Gladly, see attached
Setting to reported since I can't seem to find a way without commenting again.
Hi, Aaron! What is the size of the image? I guess all that extra time is spent on scanning the raster image and generating vector outline out of it.
I generally work at resolutions over 2500x2500, but it seems to take just as long with resolutions as low as 100x100, as I've just tested.
Okay, I see that we have a special 500ms delay before updating the outline. I should check why it was added
Just for admin purposes: There's a slight chance that this bug might be a duplicate: https://bugs.kde.org/show_bug.cgi?id=395861
Git commit c416124848d52a9b82ef275e24e3aaa1f45a3004 by Dmitry Kazakov. Committed on 29/04/2020 at 15:04. Pushed by dkazakov into branch 'master'. Remove 500ms delay between selection creation and cretion of marching ants This delay was originally introduced to not interfere with painting, which (in 2013) was done directly over the ants. Now we have overlay mask functionality, therefore this delay is not needed anymore. There is still a short visible delay. It is cause but the outline genration algorithm is really slow. Perhaps we should also try to fix speed when working on bug 419240. Related: bug 395861 M +1 -1 libs/ui/kis_selection_decoration.cc https://invent.kde.org/kde/krita/commit/c416124848d52a9b82ef275e24e3aaa1f45a3004
Git commit ca1399e9bb2886b1ad1378ddcc719dc65957d722 by Dmitry Kazakov. Committed on 29/04/2020 at 15:07. Pushed by dkazakov into branch 'krita/4.3'. Remove 500ms delay between selection creation and cretion of marching ants This delay was originally introduced to not interfere with painting, which (in 2013) was done directly over the ants. Now we have overlay mask functionality, therefore this delay is not needed anymore. There is still a short visible delay. It is cause but the outline genration algorithm is really slow. Perhaps we should also try to fix speed when working on bug 419240. Related: bug 395861 M +1 -1 libs/ui/kis_selection_decoration.cc https://invent.kde.org/kde/krita/commit/ca1399e9bb2886b1ad1378ddcc719dc65957d722
*** Bug 414310 has been marked as a duplicate of this bug. ***