Bug 468823

Summary: MPV stats overlay causes choppy playback and dropped frames
Product: [Applications] Haruna Reporter: Benjamin Smith <bsmith7581>
Component: genericAssignee: george fb <georgefb899>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 0.10.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot of "stats" overlay after 30 seconds of playback, showing 142 dropped frames.

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