sdr performance workaround fix

This commit is contained in:
True Zhuanjia
2026-02-11 11:43:00 +08:00
parent 80af6a9636
commit 1d33feec8b
2 changed files with 3 additions and 2 deletions
@@ -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;
}
}
@@ -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"];