Animation Playback Lag?

Hi! This is my first time posting here, but I need some help so I thought I’d give it a shot. Up until a week ago, Krita had been working just fine, and I usually use it to animate. The animation playback was perfectly fine, showing all the frames and everything. Up until a week ago, the playback has been severely lagging, or something (I don’t even know if it’s lag).

If I have 2 frames, one at 0 and one at 1, and I press play, the animation will never show frame 1 in the playback no matter what the framerate or playback speed is. It will just play frame 0 for the entire time as if frame 1 never existed. If I set the starting frame to 0 and the ending frame to 1 it plays both frames no problem, but anything other than that results in frame 0 shown instead of an actual animation between the frames. I don’t know how to solve this issue and some help would be really appreciated!

What size is your canvas, is it a pixel-art animation?

  • Check “Drop Frames” feature in Animation docker both on and off
  • Check both “in-memory” and “on-disk” options in Configure Krita → Performance → Animation → Animation Cache
  • As a last resort, you may want to check if disabling Canvas Graphics Acceleration in Configure Krita → Display works for you. It will disable animation cache altogether but also make your Krita much slower! So be very careful whether you really need to disable it, and it would be best to enable it as soon as you move to a standard painting mode.

Please tell me your results! What worked and what didn’t. That way I’ll know better what to tell other users :slight_smile:

2 Likes

I just tried each one of those solutions and neither of them worked sadly. Is there anything else you’d suggest to help solve this problem?

I’m using a 640 by 360 canvas, before I had discovered that larger canvases contributed to the problem so I thought downsizing would help but it ended up doing nothing.

For the Performance setting you need to restart Krita. For the Display you shouldn’t need to, but you may want to try anyway.

I tried that; I restarted Krita and everything, playback didn’t change. The display settings just made it slow and not playing.

Which operating system and which version of krita are you using?
It would help to understand your situation if you posted a full screen screenshot (.png) of the window, including the Timeline docker, the Animation docker and the Layers docker for this situation.

Also, can you post a link to a file sharing service to provide the .kra file you’re describing?

Does this affect all your previous animations or just the ones you’ve made in the past week?

If everything was working fine until a week ago, can you think of anything that may have changed, with krita, your settings, any new hardware attached to your computer, etc?

1 Like

Hi,

I encounter the same bug on Krita 4.3, macos Catalina 10.15.6 (Macbook Air). After doing some trials, I have been able to understand that the playback lag is linked to the frame cache:

  • I first disabled the option “Enable Background Cache Generation”
  • Then when I manually play the animation by dragging my mouse on the timeline header, everything is fine and all keyframes are correctly displayed.
  • Then when I start the animation by clicking on the “play” button, Krita caches the frames as can be seen in the timeline header (light-grey rectangles show up in the header). At this point, the animation is not correct anymore : basically the frames are displayed with a shift of one keyframe. Keyframe #1 is showed on keyframe #2, keyframe #2 is showed on keyframe #3 and so on…
  • If I force emptying the cache by modifying the options in the preferences menu, then animation comes back to normal, until frames are cached again…

I tried fiddling with the various cache options (RAM or disk, limit size or not…), but it has no effect.

Here is a link to a video showing the bug:

I am surprised so few people can see this bug. Could it be due to some bad configuration ? Any help would be appreciated.

This has been formally reported before and the developers who work with macOS are aware of it. I don’t think it’s a config problem but only a developer could say for sure.

From what I’ve read, the lag doesn’t happen after the first Play of an animation. (But that may be a slightly different bug.)
Rendering out to a video file is supposed to be ok too.

Thanks for the quick reply. You are right, I could not find it previously but it is actually reported in the bug database:
https://bugs.kde.org/show_bug.cgi?id=422239

The good news is that the mentioned workaround, consisting in using 16-bit instead of 8-bit color, actually solves the issue !

That was a confusing situation. Have you tried using 16-bit and did it work?

According to Vanyossi (a developer), the bit depth wasn’t a factor.
Maybe there are two causes of the bug … I don’t know.

Yes turning the color depth to 16-bit makes the bug disappear. I tried with several files and I always get the same result : with 8-bit the animation is bugged, with 16-bit it’s ok.

Hey bro, I just wanna say Thank You. You solved a very big problem of mine. Because of this issue I won’t be able to get the required output.

If anyone else is also suffering from the same problem should uncheck Canvas Graphics (Settings >Configure Krita> Display)Acceleration as this works for me and hope that works for you as well.

1 Like

@tiar @kosmiik @T0xiC_OmegA @AhabGreybeard @imikael21 I had similar issues with the playback on the latest Krita 5. The playback didn’t show all the layers and jumped randomly between them. This issue was nonexistent in previous Krita versions.

What solved it for me was to disable “Use texture buffer” (Settings > Display > Canvas Graphics Acceleration).
I have Canvas Graphics Acceleration “on”.

Hope it helps someone too!

This topic is from March 2020?

Michelist

Yes, but the issue seems similar to what I encounter in the new Krita 5. Someone posted recently and I thought it might help to post my experience.

Sorry for being Off-Topic:
@oliver: I saw that post, but that this problem existed nearly two years back in time tells me that it must have existed in Versions before the latest Krita 5. :thinking:

Michelist

Yes, you’re right, I didn’t notice the date. I only read the post title :slight_smile:

1 Like

The influence of the texture buffer has been seen before:
Krita 5.0 issue
That one isn’t an animation though.

Oh my god it worked! I know this is kinda old but thanks a lot!!