fix(mpv): avoid render stalls from video timing offset #6

Merged
tri merged 1 commits from fix/playlist-hover-jank-playback into main 2026-11-11 20:36:58 +07:00
Showing only changes of commit d9c9c7c8d8 - Show all commits
+4
View File
@@ -33,6 +33,10 @@ MpvItem::MpvItem(QQuickItem *parent)
// Leave the player on the last frame at end of file instead of unloading it. // Leave the player on the last frame at end of file instead of unloading it.
setPropertyAsync(QStringLiteral("keep-open"), QStringLiteral("yes")); setPropertyAsync(QStringLiteral("keep-open"), QStringLiteral("yes"));
setPropertyAsync(QStringLiteral("hwdec"), QStringLiteral("auto-safe")); setPropertyAsync(QStringLiteral("hwdec"), QStringLiteral("auto-safe"));
// mpvqt renders with the default blocking timing, so each new video frame stalls
// the Qt Quick render thread for up to this offset (50 ms) and animations drawn
// over a playing video stutter. Hand frames over at their display time instead.
setPropertyAsync(QStringLiteral("video-timing-offset"), 0);
// Also pick up "movie.en.srt" style files next to "movie.mkv". // Also pick up "movie.en.srt" style files next to "movie.mkv".
setPropertyAsync(QStringLiteral("sub-auto"), QStringLiteral("fuzzy")); setPropertyAsync(QStringLiteral("sub-auto"), QStringLiteral("fuzzy"));