mac/common: add support for force-render option

This commit is contained in:
der richter
2025-08-28 15:23:33 +02:00
parent 9f153e2a20
commit 78458a55ef
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3648,7 +3648,7 @@ Window
``--force-render``
Forces mpv to always render frames regardless of the visibility of the
window. Currently only affects X11 and Wayland VOs since they are the
window. Currently only affects X11, Wayland and macvk VOs since they are the
only ones that have this optimization (i.e. everything else always renders
regardless of visibility).
+1 -1
View File
@@ -110,7 +110,7 @@ class MacCommon: Common {
}
@objc func isVisible() -> Bool {
return window?.occlusionState.contains(.visible) ?? false
return window?.occlusionState.contains(.visible) ?? false || option.vo.force_render
}
override func displayLinkCallback(_ displayLink: CVDisplayLink,