Skip to content

Commit

Permalink
8240262: iOS refresh rate is capped to 30 Hz
Browse files Browse the repository at this point in the history
Reviewed-by: jvos
  • Loading branch information
Jose Pereda authored and Johan Vos committed Apr 8, 2020
1 parent 231879a commit 3f663e3
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,6 @@ - (id)initWithFrame:(CGRect)frame withJview:(jobject)jView withJproperties:(jobj
if ([currSysVer compare:reqSysVer options:NSNumericSearch] != NSOrderedAscending) {
displayLink = [[UIScreen mainScreen] displayLinkWithTarget:[GlassTimer getDelegate]
selector:@selector(displayLinkUpdate:)];
// 1 is 60hz, 2 is 30 Hz, 3 is 20 Hz ...
[displayLink setFrameInterval:2];
[displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
[displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:UITrackingRunLoopMode];
GLASS_LOG("GlassViewGL: displayLink SET");
Expand Down

0 comments on commit 3f663e3

Please sign in to comment.