Bug 502931 - Switch layer visibility performance
Summary: Switch layer visibility performance
Status: REPORTED
Alias: None
Product: krita
Classification: Applications
Component: Dockers (other bugs)
Version First Reported In: 5.2.9
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-17 12:36 UTC by thequver
Modified: 2025-04-19 03:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Thumbnails updating (2.90 MB, video/webm)
2025-04-18 23:59 UTC, thequver
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thequver 2025-04-17 12:36:47 UTC
SUMMARY
When painting with bigger resolutions and rapidly switching visibility of layers in the layers docker, the process becomes very clunky and slow because "Update layer thumbnails" progress bar appears and prevents painting and interaction with program until it is completed.

STEPS TO REPRODUCE
Make canvas size big enough for your system to be slowed (4-6k is enough for me), add multiple layers, paint and switch layers visibility fast. I guess with bigger canvas resolution/stroke size the effect grows too.

OBSERVED RESULT
After every stroke and visibility switch, program hangs from milliseconds to seconds until "Update layer thumbnails" thing completes.

EXPECTED RESULT
Those microstutters are super annoying. I set thumbnail size on minimal but this changes nothing. I'd like this process to be running in parallel with painting, or at least an option to disable layer thumbnails completely


SOFTWARE/OS VERSIONS
Windows: 11
Krita build git ac6cae8
Comment 1 Dmitry Kazakov 2025-04-17 18:45:35 UTC
Hi, thequiver!

Could you please make a video recording of the issue?
Comment 2 thequver 2025-04-18 23:59:16 UTC
Created attachment 180396 [details]
Thumbnails updating
Comment 3 thequver 2025-04-18 23:59:59 UTC
(In reply to Dmitry Kazakov from comment #1)
> Hi, thequiver!
> 
> Could you please make a video recording of the issue?

(In reply to Dmitry Kazakov from comment #1)
> Hi, thequiver!
> 
> Could you please make a video recording of the issue?

Hello Dmitry, I was trying to reproduce this on a fresh project but couldn't. So I just kept working on a painting in hopes of encountering the problem again and got the video.
A few points i took away from this:
- 2 layers are definetely not enough to make this happen
- I had layer groups with 7 - 10 layers in them
- Krita was running for some hours and become slow in general
- Maybe groups nestings could worse the problem but I'm not sure
Comment 4 Bug Janitor Service 2025-04-19 03:47:24 UTC
๐Ÿ›๐Ÿงน Thanks for your comment!

Automatically switching the status to REPORTED so the team can perform further triage.

In the future you may also do this yourself when providing needed information.