Having lots of layers make the document tab and the layer docker sluggish. The use case is the following: On a single file, I storyboard a chapter of my webtoon series. A chapter is 40 to 80 panels long. I draw each panel on a separate layer. Then, I have a script Wolthera helped me to develop, that exports each layer to a separate file so I get the real skeleton of my chapter ready. So I end up with lots and lots of layers. Since the script is recursive, I can have folders containing subfolders of layers, etc. and everything works fine. But layer navigation becomes extremely laggy... To reproduce: make an A3 at 300 dpi document add something like 50 layers to it. Try to navigate smoothly. The only thing that will kinda work smoothly is dragging a layer.
I made a document like that, with about sixty layers some of them in some groups, and pgup/pgdn was instant, ctrl-pgup/ctrl-pgdn was instant, d&d was instant -- which navigation tasks were slow for you? And could you perhaps share privately a file where you observe the slowdown?
Yes I have 2 concrete files that, if opened together, moving layers up and down or just changing selection is sluggish. How shall I share these ? (around 20 MB)
A google drive link or dropbox link shared with vurian@gmail.com would work for me.
Done ! Thank you.
Got it. On Linux, I don't see performance problems, so I'm trying on my mac now.
Hm... On my powerbook m1, I also don't see any lag, not when switching between files, not changing the current layer or moving the current layer in the layer stack. The files really aren't excessively big, too. I've tried both with canvas acceleration on and off.
changing layer and moving layers should be laggy
Yes, those are the actions I tried: it's all instant on test hardware -- the M1 macbook pro and my t470p.
I'm at a loss. It's super slugish here and I have no clue what causes it...
Me too... Even on my 2015 macbook pro, it's not really sluggish. It's slower than the t470 and the M1, of course, since it's pretty old hardware by now, but it's perfectly usable :-(
is there anything else I can provide ? Except recording a useless video ?
Thanks for your comment! Automatically switching the status of this bug to REPORTED so that the KDE team knows that the bug is ready to get confirmed. In the future you may also do this yourself when providing needed information.
No... I cannot imagine anything that would help me figure out what is up with that file on your mac, but not on my mac.
How sluggish?? I find it slow, 1 second after click release, but that is with 2 layers and I get the following message. 2021-09-13 02:24:14.819649-0500 krita[25485:4741113] [krita] CGImageDestinationAddImage:3997: *** ERROR: CGImageDestinationAddImage: cgImage is nil 2021-09-13 02:24:14.819672-0500 krita[25485:4741113] [krita] finalizeDestination:3117: *** ERROR: image destination must have at least one image The message is not shown if the arrows in the docker are used and the change is much faster. Adding 100 file layers and 20 normal layers has no effect on time the delay layers.
It could go from half a second to a full second or more. It slows down proportionally to the number of layers in all the documents open. The more open docs simultaneously, the more it shows. I have stopped using keyboard shortcuts to navigate through layers as it became way too slow and I now click with the mouse to avoid the slowness. This is only on mac.