refactor: remove framerate limiter to avoid false positives
This commit is contained in:
1 parent
ebf46042ba
commit
91f95f13ae
1 file changed
-13
@@ -460,19 +460,6 @@ void ClSetControllerLED(uint16_t controllerNumber, uint8_t r, uint8_t g, uint8_t
|
|||||||
renderer = myRenderer;
|
renderer = myRenderer;
|
||||||
_callbacks = callbacks;
|
_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);
|
LiInitializeStreamConfiguration(&_streamConfig);
|
||||||
_streamConfig.colorRange = 1; // Full range
|
_streamConfig.colorRange = 1; // Full range
|
||||||
_streamConfig.width = config.width;
|
_streamConfig.width = config.width;
|
||||||
|
|||||||
Reference in new issue
Block a user