sdr performance workaround fix

This commit is contained in:
True Zhuanjia committed 2026-02-11 11:43:00 +08:00
1 parent 80af6a9636
commit 1d33feec8b
2 files changed
+3 -2

No files matched your search

@@ -876,7 +876,7 @@ static NSMutableSet* hostList;
_streamConfig.supportedVideoFormats |= VIDEO_FORMAT_AV1_HIGH8_444; _streamConfig.supportedVideoFormats |= VIDEO_FORMAT_AV1_HIGH8_444;
} }
else { 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; else _streamConfig.supportedVideoFormats |= VIDEO_FORMAT_AV1_MAIN8;
} }
} }
@@ -1334,7 +1334,8 @@
if(strcmp(stageName, "video stream establishment")==0){ if(strcmp(stageName, "video stream establishment")==0){
if(!_settings.enableHdr if(!_settings.enableHdr
&& _settings.sdrPerformanceWorkaround && _settings.sdrPerformanceWorkaround
&& [Utils hdrSupported]){ && [Utils hdrSupported]
&& LiGetCurrentHostDisplayHdrMode()){
dispatch_time_t delay = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)); 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), ^{ dispatch_after(delay, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
NSArray* hdrCommand = [CommandManager.shared extractAutoReleaseButtonStringsFrom:@"WIN+ALT+B"]; NSArray* hdrCommand = [CommandManager.shared extractAutoReleaseButtonStringsFrom:@"WIN+ALT+B"];