Bug 468823 - MPV stats overlay causes choppy playback and dropped frames
Summary: MPV stats overlay causes choppy playback and dropped frames
Status: RESOLVED FIXED
Alias: None
Product: Haruna
Classification: Applications
Component: generic (show other bugs)
Version: 0.10.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: george fb
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-22 17:53 UTC by Benjamin Smith
Modified: 2023-05-14 14:31 UTC (History)
0 users

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


Attachments
screenshot of "stats" overlay after 30 seconds of playback, showing 142 dropped frames. (537.38 KB, image/png)
2023-04-22 17:53 UTC, Benjamin Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Smith 2023-04-22 17:53:00 UTC
Created attachment 158332 [details]
screenshot of "stats" overlay after 30 seconds of playback, showing 142 dropped frames.

SUMMARY
MPV has a "stats" overlay which is activated by pressing Shift+I.  [I as in "ice", not L as in "Lady"]. I added it to Custom Commands in Haruna. When the stats screen is active, playback becomes choppy with many dropped frames reported. Playback still functions properly on regular MPV while the "stats" overlay is active.

STEPS TO REPRODUCE
1.  Open Haruna Settings > Custom Commands
2.  Add the custom command: script-binding stats/display-stats-toggle
3.  Map the custom command to a keyboard shortcut. 
4.  Press the keyboard shortcut while a video is playing. 

OBSERVED RESULT
While "stats" overlay is active, playback is choppy with many dropped frames reported. 

EXPECTED RESULT
Smooth playback with zero dropped frames

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9+kde+r151
Arch Linux with kernel 6.2.12
Comment 1 george fb 2023-05-03 11:32:36 UTC
Try with the latest changes.
If you can't compile it yourself use the flatpak from the kde remote https://userbase.kde.org/Tutorials/Flatpak#Nightly_KDE_Apps