From 1d33feec8b349a7a1604d05a251513c260e6c278 Mon Sep 17 00:00:00 2001 From: True Zhuanjia Date: Wed, 11 Feb 2026 11:43:00 +0800 Subject: [PATCH] sdr performance workaround fix --- VoidLink/ViewControllers/MainFrameViewController.m | 2 +- VoidLink/ViewControllers/StreamFrameViewController.m | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VoidLink/ViewControllers/MainFrameViewController.m b/VoidLink/ViewControllers/MainFrameViewController.m index 916f2492..914f6fda 100644 --- a/VoidLink/ViewControllers/MainFrameViewController.m +++ b/VoidLink/ViewControllers/MainFrameViewController.m @@ -876,7 +876,7 @@ static NSMutableSet* hostList; _streamConfig.supportedVideoFormats |= VIDEO_FORMAT_AV1_HIGH8_444; } else { - if(streamSettings.sdrPerformanceWorkaround && [Utils hdrSupported] && false) _streamConfig.supportedVideoFormats |= VIDEO_FORMAT_AV1_MAIN10; // 8bit performance degradation workaround for av1 + if(streamSettings.sdrPerformanceWorkaround && [Utils hdrSupported]) _streamConfig.supportedVideoFormats |= VIDEO_FORMAT_AV1_MAIN10; // 8bit performance degradation workaround for av1 else _streamConfig.supportedVideoFormats |= VIDEO_FORMAT_AV1_MAIN8; } } diff --git a/VoidLink/ViewControllers/StreamFrameViewController.m b/VoidLink/ViewControllers/StreamFrameViewController.m index 0605ec5c..6452a0bc 100644 --- a/VoidLink/ViewControllers/StreamFrameViewController.m +++ b/VoidLink/ViewControllers/StreamFrameViewController.m @@ -1334,7 +1334,8 @@ if(strcmp(stageName, "video stream establishment")==0){ if(!_settings.enableHdr && _settings.sdrPerformanceWorkaround - && [Utils hdrSupported]){ + && [Utils hdrSupported] + && LiGetCurrentHostDisplayHdrMode()){ dispatch_time_t delay = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)); dispatch_after(delay, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ NSArray* hdrCommand = [CommandManager.shared extractAutoReleaseButtonStringsFrom:@"WIN+ALT+B"];