We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 712405d commit 5095c44Copy full SHA for 5095c44
packages/skia/ios/RNSkia-iOS/DisplayLink.mm
@@ -10,6 +10,13 @@ - (void)start:(block_t)block {
10
_displayLink = [CADisplayLink displayLinkWithTarget:self
11
selector:@selector(update:)];
12
13
+ if (@available(iOS 15.0, *)) {
14
+ CAFrameRateRange rate = CAFrameRateRangeMake(60, 120, 120);
15
+ _displayLink.preferredFrameRateRange = rate;
16
+ } else {
17
+ _displayLink.preferredFramesPerSecond = 60;
18
+ }
19
+
20
// add the display link to the main run loop
21
[_displayLink addToRunLoop:[NSRunLoop mainRunLoop]
22
forMode:NSRunLoopCommonModes];
0 commit comments