Bug 441392

Summary: Open brush editor window affects zooming in main window
Product: [Applications] krita Reporter: Manga Tengu <mangatengu>
Component: UsabilityAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: normal CC: ghevan, halla
Priority: NOR Keywords: triaged
Version: 5.0.0-beta1   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Manga Tengu 2021-08-22 20:43:06 UTC
when zooming out in relative zoom mode (holding command + space + left mouse): as the canvas becomes smaller and smaller, the zoom starts to slow down and lag more and more.


STEPS TO REPRODUCE
1. Open a nice canvas like 4000x4000px
2. zoom out with the relative zoom mode
3. reach below 25% zoom

OBSERVED RESULT
the lag can be prettt strong

EXPECTED RESULT
Smooth silky zooming like in 4.4.7

macOS: 11.2.3 (20D91)
Comment 1 Halla Rempt 2021-08-23 08:49:43 UTC
I cannot reproduce that on my M1 mac mini :-(
Comment 2 Manga Tengu 2021-08-23 08:51:35 UTC
Could you try it on an older mac with an intel processor ? Here it's so strong I had to downgrade to 4.4.7

Would a video footage be of any help ?
Comment 3 Halla Rempt 2021-08-23 10:30:37 UTC
I tried on my 15" 2015 macbook pro with canvas acceleration turned on and a 4000x4000 pixel document, but I couldn't seee any difference.
Comment 4 Manga Tengu 2021-08-23 10:32:00 UTC
hmmmm is there anything I can do to bring more info ?
Comment 5 Halla Rempt 2021-08-23 10:34:39 UTC
Is zooming also slow if you zoom using the scrollbutton of the mouse (if you have one) or when you use the keyboard shortcuts?
Comment 6 Manga Tengu 2021-08-23 20:41:57 UTC
I was wrong about one thing. Restarting Krita solves the issue (temporarily, duno what it resets/dumps).
It's not lagging because of the shortcut. At the beginning of a session, it's smooth. Then after working for a while it lags. I still need to figure out what is triggering that / piling up...
Comment 7 Manga Tengu 2021-08-24 07:46:00 UTC
also to be noted: rotation stays very smooth.
Happened with a file I worked on for 1 hour continuously with less than 10 layers
Comment 8 Halla Rempt 2021-08-24 08:19:16 UTC
That looks like we got a memory leak somewhere...
Comment 9 Manga Tengu 2021-08-24 11:10:36 UTC
it seems I don't need to use the software for long. Didn't identify the exact trigger yet but soon!
Comment 10 Manga Tengu 2021-08-25 07:14:55 UTC
I found out what it was. And man, I deserve a golden achievement on krita-artists for such a sneaky bug report!

When you open the brush editor popup, if you click on the main window, the popup will not close but go behind the main window, Becoming invisible. As long as this popup is opened in the background, you will notice the lag very clearly.

I love myself *self-kiss*
Comment 11 Halla Rempt 2021-08-25 08:37:00 UTC
Well, I don't know we can do much about this in that case...  We can make the window always in front, but some people don't want that, and most people want to have the brush editor stay up so they can also paint on the canvas while editing a preset.
Comment 12 Manga Tengu 2021-08-25 08:38:51 UTC
an auto closeable checkbox if click outside?
Comment 13 Manga Tengu 2021-08-25 14:57:12 UTC
when I try it in full screen it's even worse, everytime I call the popup, the desktop slides...
Comment 14 vanyossi 2021-08-25 17:06:31 UTC
Im not sure what to confirm here as many things are described in this report.

It seems detached brush editor has real issues in macOS, old versions show artifacts and slowdown; all versions get pulled out of fullscreen mode (this only happens if detached brush editor is activated before going full screen, if its done after the editor works as expected).