refactor: remove framerate limiter to avoid false positives
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user