Bug 395705

Summary: Painting on Mask is Very Slow
Product: [Applications] krita Reporter: Kenneth Evans <ken>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: scottpetrovic
Priority: NOR    
Version: 4.0.4   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description Kenneth Evans 2018-06-21 21:07:24 UTC
Editing a mask by drawing on it is very slow for me.  I have experienced this mostly with Selection Masks.  Even drawing a small stroke, it can take tens to hundreds of seconds to display the results.  There is no indication that it is busy.  Just nothing happens for a very very long delay.

It seems to happen with a Transparency Mask, as well.

It has been consistent (always slow in my experience), and happened with 4.0.3 as well as 4.0.4.

For Selection Masks, the only thing that works for me is to make a Paint Layer with the mask on it mask on it, then use Select Opaque.  Editing the Paint Layer is fast and responsive.  Editing the mask after it has been made into a selection is very very slow. (This workaround doesn't work for Transparency Masks, which seem to be B&W, not transparency based, nor is a selection involved.)  Also the workaround doesn't let you see the selection results in Mask Mode as you paint.  

I don't believe it is the computer.  In general Krita is very responsive for me (except maybe when using very large brushes). The delay is only with masks.
Comment 1 Scott Petrovic 2018-07-19 13:38:21 UTC
There is work being done right now to improve the speed when trying to use paint tools when editing masks. Dmitry is working on it in a branch and seems to be pretty far along. I tested the new feature out a week ago and it is significantly faster than it is right now in the stable version of Krita. 

We can close this ticket once it gets merged to master.
Comment 2 Scott Petrovic 2018-07-26 19:04:05 UTC
This improvement was merged to master on July 25, 2018 from Dmitry. It will be in Krita 4.2 whenever that gets released. Resolving this for now. If there are issues it can be in a new ticket.