This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Extremely poor performance due to Recents thumbnails

Tags: None
(comma "," separated)
kde-rawalanche
Registered Member
Posts
8
Karma
0
Hi,

I started using Krita a few days ago and everything worked and performed correctly, but recently Krita started to take several minutes to load, and any UI interaction, such as creating new document and such resulted in several minutes long freeze. I've tracked it down to an issue caused by the "Recent" category at the home screen. The issue started when I had to edit a few 8k*4k 32bit EXR HDRI maps.

It appears that every single time the welcome screen is refreshed, Krita reloads all off the giant several hundred megabyte exr files in the Recents section of the welcome screen just to generate those tiny thumbnails, instead of caching them the first time file is loaded. And the call that refreshes the welcome screen happens extremely often. Sometimes it happens even when the welcome screen is not drawn/visible, which makes entire Krita extremely slow and sluggish.

There's no workaround except clearing Recents section of welcome screen all the time, but that makes using the software really painful. For example, even if I start Krita with completely empty Recents, when I open single large EXR file, it takes 10 seconds to open, and if I close it without saving the changes as soon as I've opened it, closing it takes 35 seconds due to reloading of the whole image and creating Recents thumbnail. So not only does generation of thumbnail reload the whole image, it actually loads it slower than just opening it.

This is really bad as the Recents section or the welcome screen itself can't be disabled/removed :(

This happens on Windows 10, i7 5930k with 64GB of RAM and GTX1080Ti with latest drivers.

Is there anything I can do from the user side without touching the source code that would allow me to somehow disable/hide Recents column, or ideally the whole welcome screen?
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
That sounds curious, because I know there is a cache; I coded that myself. Could you please make a bug report? Then I will look into it.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Oh, never mind about the bug report, I've found the issue...
kde-rawalanche
Registered Member
Posts
8
Karma
0
boudewijn wrote:Oh, never mind about the bug report, I've found the issue...


Is there any way I can stay in the loop to know when it gets fixed so that I can grab the nightly? Because aside from this one performance issue, Krita is really amazing to use otherwise.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
I suspect that https://invent.kde.org/kde/krita has way to get mail whenever something is committed... Or you could check it periodically. I've merged the fix to master and the the stable 4.2 branch, so the next nightlies should have the fix.
kde-rawalanche
Registered Member
Posts
8
Karma
0
boudewijn wrote:I suspect that https://invent.kde.org/kde/krita has way to get mail whenever something is committed... Or you could check it periodically. I've merged the fix to master and the the stable 4.2 branch, so the next nightlies should have the fix.


Awesome, thank you very much!
kde-rawalanche
Registered Member
Posts
8
Karma
0
boudewijn wrote:I suspect that https://invent.kde.org/kde/krita has way to get mail whenever something is committed... Or you could check it periodically. I've merged the fix to master and the the stable 4.2 branch, so the next nightlies should have the fix.


Hi,

just want to let you know I've tested the nightly and it all works well. The 300MB EXR file that takes about 25 seconds to open now takes about 0.25s to close. The large EXR files no longer show in Recents. When they are closed. It's not a big deal for me as I don't really use Recents, just not sure if it's an intended behavior or side effect of the fix. Other files like relatively small JPGs do get added to Recents.

Thanks.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar