Skip to content

Commit

Permalink
avoid pausing the emulator as often
Browse files Browse the repository at this point in the history
- such as when menu is active
  • Loading branch information
sh95014 committed Dec 22, 2023
1 parent 98f07d7 commit 4abac5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/frontends/mariani/EmulatorViewController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ - (void)start {
CVDisplayLinkSetCurrentCGDisplay(_displayLink, viewDisplayID);
CVDisplayLinkStart(self.displayLink);

self.runLoopTimer = [NSTimer scheduledTimerWithTimeInterval:0 target:self selector:@selector(runLoopTimerFired) userInfo:nil repeats:YES];
self.runLoopTimer = [NSTimer timerWithTimeInterval:0 target:self selector:@selector(runLoopTimerFired) userInfo:nil repeats:YES];
[[NSRunLoop currentRunLoop] addTimer:self.runLoopTimer forMode:NSRunLoopCommonModes];
}

static CVReturn MyDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTimeStamp *now, const CVTimeStamp *outputTime, CVOptionFlags flagsIn, CVOptionFlags* flagsOut, void *displayLinkContext)
Expand Down

0 comments on commit 4abac5a

Please sign in to comment.