Summary: | animation playing lag | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | ahmett <Ahmettabak1> |
Component: | Animation | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | critical | CC: | yavn.work |
Priority: | NOR | ||
Version: | nightly build (please specify the git hash!) | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://invent.kde.org/graphics/krita/-/commit/cab0dbdc2587dddf545123333491add2b50d0be2 | Version Fixed In: | |
Sentry Crash Report: |
Description
ahmett
2023-10-24 19:07:48 UTC
Hi, I wanted to add a bit more information about this issue. This is a regression in version 5.2.0 and still occurring in master. The animation playback was working correctly in version 5.1.5. To observe the bug, the following steps can be used: 1. Create a new document with 16 x 16 pixels size (to rule out any performance-related impact). 2. Switch to Animation workspace, or show the Timeline docker. 3. Verify that the frame rate is 24 FPS in Animation Settings. 4. Play the animation and hover the mouse cursor over the Drop Frames button. The tooltip will read "Real FPS: 21.5" (or similar) instead of 24 FPS. NB: In Krita 5.1.5 there's no FPS tooltip, but I measured it manually to confirm. It seems that the bug is only apparent with KisPlaybackEngineQT. If the animation is played back with KisPlaybackEngineMLT, the framerate is correct. To switch to MLT and "fix" the bug, you need to attach an audio file to the animation. However, I noticed that attaching a short MP3 file causes erratic frame pacing. It does not happen with a short WAV file. Related discussion in this thread: https://krita-artists.org/t/slower-animation-playback-in-krita/78244 A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/2002 Git commit e8fc172c90e42574c76e1496f36f9aad82d177a5 by Dmitry Kazakov, on behalf of Maciej Jesionowski. Committed on 21/11/2023 at 14:41. Pushed by dkazakov into branch 'master'. Use PreciseTimer type with KisPlaybackEngineQT This fixes the erratic playback of frames. A precise timer is needed to achieve 1 ms accuracy. M +1 -0 libs/ui/KisPlaybackEngineQT.cpp https://invent.kde.org/graphics/krita/-/commit/e8fc172c90e42574c76e1496f36f9aad82d177a5 Git commit cab0dbdc2587dddf545123333491add2b50d0be2 by Dmitry Kazakov, on behalf of Maciej Jesionowski. Committed on 21/11/2023 at 14:41. Pushed by dkazakov into branch 'krita/5.2'. Use PreciseTimer type with KisPlaybackEngineQT This fixes the erratic playback of frames. A precise timer is needed to achieve 1 ms accuracy. (cherry picked from commit e8fc172c90e42574c76e1496f36f9aad82d177a5) M +1 -0 libs/ui/KisPlaybackEngineQT.cpp https://invent.kde.org/graphics/krita/-/commit/cab0dbdc2587dddf545123333491add2b50d0be2 |