refactor: remove framerate limiter to avoid false positives

This commit is contained in:
Acaki
2025-08-26 03:07:30 +08:00
parent ebf46042ba
commit 91f95f13ae
-13
View File
@@ -460,19 +460,6 @@ void ClSetControllerLED(uint16_t controllerNumber, uint8_t r, uint8_t g, uint8_t
renderer = myRenderer;
_callbacks = callbacks;
// Check for low power mode which limits framerate to 60
if (config.frameRate > 60 && [[NSProcessInfo processInfo] isLowPowerModeEnabled]) {
Log(LOG_W, @"Limiting stream to 60fps because device is in low power mode");
config.frameRate = 60;
}
// Lower to 90fps on Vision Pro
NSInteger deviceFps = UIScreen.mainScreen.maximumFramesPerSecond;
if (deviceFps < config.frameRate) {
Log(LOG_W, @"Limiting stream to %dfps due to max refresh rate", deviceFps);
config.frameRate = (int)deviceFps;
}
LiInitializeStreamConfiguration(&_streamConfig);
_streamConfig.colorRange = 1; // Full range
_streamConfig.width = config.width;