Bug 393716

Summary: Setting 'Frame Rendering Clones Limit' does not seem to help with animation
Product: [Applications] krita Reporter: phaineofcatz
Component: AnimationAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: 4.0.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description phaineofcatz 2018-05-01 06:26:16 UTC
Computer : Microsoft surface book with performance base
OS : windows 10
File : 900x666 three layers with 14 frames each and one layer without animation(Attatched)

-Expected behavior
It is noted in documentation that with 'heavy' animations and multiple cores you may experience slowdowns. The setting "Frame Rendering Clones Limit" is supposed to let you work around this by basically limiting multi-threading for animation only. 

-Actual Behavior
Thing is, this doesn't seem to do anything. Set to 4 works the same as set to 1. To actually limit things (and keep the app from freezing every few brushstrokes in my case) you have to limit the whole application to only use a set number of cores, which slows down other usages of multi-threading(most of which have been working beautifully for me btw, thanks). 

It should also be noted that this is a full stop when it happens. Was set up for using all four cores with zero slowdown, then I broke a certain threshold(I presume memory usage) and every two or three brush strokes krita stops for a full 15 count. It doesn't matter the size or complexity of the strokes, it is the quantity. After this point I had to bring it down to one core to get any sort of progress. I tried changing several other settings to do with memory allocated to no avail. After setting the app to only use 1 core brush strokes work as expected.

-Optimistic Future
It would be nice if this setting worked, since the only multi-threading issues I have had have been with animation. Alternatively, if I am misunderstanding the purpose of this setting, it would be nice to have a way to turn off multi-threading just for animation frame clones.
Comment 1 phaineofcatz 2018-05-01 06:28:57 UTC
File cannot be attached, too large (139MB)
Comment 2 phaineofcatz 2018-05-01 06:45:14 UTC
This issue also seems to increase in intensity switching between undoing strokes and drawing strokes. First undo is slow, second and third are normal, then first stroke is slow, followed by at least a couple normal ones. This seems to be an issue at this point even using one core.
Comment 3 phaineofcatz 2018-05-01 06:46:34 UTC
Also, since I can't attach the file here, I am saving a copy and can send it via email if contacted at the email that is my user name.
Comment 4 phaineofcatz 2018-05-01 07:03:04 UTC
OK, I was very wrong about the cause of this issue. It is memory and file size related, but it was only an issue because it was in my google drive folder. Past the size where Krita needed to store info on file in the same folder was where the issue seems to have occurred and once moved to my desktop it stopped having issues regardless of number of cores or frame clones used. I don't know why I was getting better results when the cores were turned down unless maybe that meant it was writing to file less often???? Sorry for the confusion.