Bug 490855 - Frame timing issues/juddering when playing 24FPS content in Kodi on kwin 6 when triple-buffering is enabled
Summary: Frame timing issues/juddering when playing 24FPS content in Kodi on kwin 6 wh...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: performance (other bugs)
Version First Reported In: 6.1.3
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-26 14:08 UTC by Michael Marley
Modified: 2024-07-26 17:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
KWin performance statistics while reproducing the issue (451.73 KB, text/csv)
2024-07-26 14:09 UTC, Michael Marley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Marley 2024-07-26 14:08:31 UTC
SUMMARY
Since upgrading to Plasma 6, I have noticed that if I play 24FPS content (specifically, DVDs) in Kodi, I get an odd judder (not the usual telecine judder) where it appears sort of like frames aren't being dropped but instead a few frames are being displayed with a shorter than normal pause between them followed by a longer than usual pause.  Oddly, kwin does not appear to be dropping frames per se during this because if I run another application that displays a 60FPS animation (such as vkcube-wayland) at the same time, that application is smooth and I don't see any stuttering or frame drops.

This is not affected by any of the work in https://bugs.kde.org/show_bug.cgi?id=488843; the issue occurs whether or not those patches are applied.  The issue does, however, only occur if triple-buffering is enabled.  If I force it disabled, the issue does not occur.

Even though kwin does not appear to be dropping frames, I did capture and attach some performance statistics that I captured while reproducing the issue.

I need to do a bit more testing to be sure, but I think this issue doesn't occur if the video is played in mpv rather than Kodi.  The issue also didn't occur on kwin 5.x.

STEPS TO REPRODUCE
1. Launch Plasma 6 and start Kodi
2. Play a 24FPS DVD in Kodi

OBSERVED RESULT
Abnormal juddering as described above

EXPECTED RESULT
Normal telecine judder/"smooth" playback

SOFTWARE/OS VERSIONS
Linux: 6.10.1
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.6.2
Comment 1 Michael Marley 2024-07-26 14:09:08 UTC
Created attachment 172007 [details]
KWin performance statistics while reproducing the issue