From ab0fc039b9793215bc1314dd6bf529025b9f56ba Mon Sep 17 00:00:00 2001 From: tapframe <85391825+tapframe@users.noreply.github.com> Date: Sun, 19 Apr 2026 02:45:38 +0530 Subject: [PATCH] fix: update hardware decoding and Vulkan options in MPVPlayerViewController ios --- iosApp/iosApp/Player/MPVPlayerBridge.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/iosApp/iosApp/Player/MPVPlayerBridge.swift b/iosApp/iosApp/Player/MPVPlayerBridge.swift index 01a71e08..906a4983 100644 --- a/iosApp/iosApp/Player/MPVPlayerBridge.swift +++ b/iosApp/iosApp/Player/MPVPlayerBridge.swift @@ -203,12 +203,19 @@ final class MPVPlayerViewController: UIViewController { checkError(mpv_set_option_string(mpv, "vo", "gpu-next")) checkError(mpv_set_option_string(mpv, "gpu-api", "vulkan")) checkError(mpv_set_option_string(mpv, "gpu-context", "moltenvk")) - checkError(mpv_set_option_string(mpv, "hwdec", "videotoolbox")) + checkError(mpv_set_option_string(mpv, "hwdec", "auto")) + checkError(mpv_set_option_string(mpv, "vulkan-swap-mode", "fifo")) + checkError(mpv_set_option_string(mpv, "vulkan-queue-count", "1")) + checkError(mpv_set_option_string(mpv, "vulkan-async-compute", "no")) + checkError(mpv_set_option_string(mpv, "vulkan-async-transfer", "no")) + checkError(mpv_set_option_string(mpv, "vulkan-disable-interop", "yes")) checkError(mpv_set_option_string(mpv, "video-rotate", "no")) checkError(mpv_set_option_string(mpv, "subs-match-os-language", "yes")) checkError(mpv_set_option_string(mpv, "subs-fallback", "yes")) checkError(mpv_set_option_string(mpv, "keep-open", "yes")) checkError(mpv_set_option_string(mpv, "target-colorspace-hint", "yes")) + checkError(mpv_set_option_string(mpv, "tone-mapping", "auto")) + checkError(mpv_set_option_string(mpv, "hdr-compute-peak", "no")) checkError(mpv_initialize(mpv))