From 78458a55ef435fe707107942bd02dccc18241e47 Mon Sep 17 00:00:00 2001 From: der richter Date: Sun, 24 Aug 2025 13:36:27 +0200 Subject: [PATCH] mac/common: add support for force-render option --- DOCS/man/options.rst | 2 +- video/out/mac_common.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index d718baed62..6c9cd315c1 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -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). diff --git a/video/out/mac_common.swift b/video/out/mac_common.swift index 27c2ec972d..a4ec886a68 100644 --- a/video/out/mac_common.swift +++ b/video/out/mac_common.swift @@ -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,