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

About merging layers

Tags: None
(comma "," separated)
User avatar
tayloryoung
Registered Member
Posts
104
Karma
0

About merging layers

Wed May 08, 2019 8:18 pm
Merging layers seems to enlarge memory usage for current document. I feel that it's because krita have to storage data for undo actions, maybe?

Just curious if it's not a bug.

After merging 15+ layers :
Image

After re-opening the file :
Image
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS

Re: About merging layers

Wed May 08, 2019 9:22 pm
Having the image layer data required to perform Undo actions does require memory of course and that may explain it. What was the memory usage before you merged the layers?
User avatar
tayloryoung
Registered Member
Posts
104
Karma
0

Re: About merging layers

Wed May 08, 2019 9:40 pm
ahabgreybeard wrote:Having the image layer data required to perform Undo actions does require memory of course and that may explain it. What was the memory usage before you merged the layers?


The same as the one after re-opening the file. (Slightly less then that, actually.)

Oh, I was wrong. It appeared like this :
Image

And deleting layers instead of merging them doesn't seem to affect the memory usage in the same way. I thought it's kinda weird if it's for undo actions.
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS

Re: About merging layers

Thu May 09, 2019 6:59 am
That is even more of a puzzle if you consider the need to be able to undo merges and deletions. However, if you use the task manager to see how much RAM krita is using, that amount doesn't go down until you close the image and then make or open a new (small) image. That may be related to the need to undo actions (or it may be something else entirely.)

I notice the coloured 'slider' bars on the image size/memory indicator, are you using a 4.2.0 pre-alpha? I don't know the significance of those bars and they seem to show caution/warning by being blue, yellow or red. They happen when I have plenty of RAM left so I can't figure out the logic of their appearing but their length seems to correrspond to the amount of RAM used.

Can anybody explain what they are, what they do and how they behave?
User avatar
mcoudert
Registered Member
Posts
118
Karma
1
OS

Re: About merging layers

Thu May 09, 2019 9:54 am
yes, it's the "Improve display of memory usage" in 4.2, see there
https://krita.org/en/krita-4-2-release-notes/


XP-Pen Artist Pro 24 - Windows 10
User avatar
TheraHedwig
KDE Developer
Posts
1794
Karma
10
OS

Re: About merging layers

Thu May 09, 2019 10:36 am
Yes, they were implemented to give people a better understanding of how much ram an image can take up, as a lot of Krita users are super inexperienced with computers, but still want to make a 1hour 60fps 4k animation in Krita, which is rather impossible if you don't know what ram is or have a conception of how much Krita is using. :)

I guess I could ask Dmitry if he knows what is up here, memory wise...
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS

Re: About merging layers

Thu May 09, 2019 1:06 pm
Thank you, to both of you, for the reference and the explanation. (I should read release notes more carefully and in more detail.)

Blue seems to mean 'no problem', yellow seems to mean 'be careful' and red obviously means 'you're nearly in trouble'. The two different shades and their extent look like the proportions of two different types of memory usage within krita as a fraction of the total memory allocation.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell