Skip to content

Commit

Permalink
dmzl
Browse files Browse the repository at this point in the history
  • Loading branch information
olinone committed Jul 9, 2020
1 parent 31e19f7 commit 0f8486f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HJDanmaku1/DanmakuView.m
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ - (void)resume {
self.isPlaying = YES;
if (!_displayLink) {
_displayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(onTimeCount)];
_displayLink.preferredFramesPerSecond = 60.0 * _frameInterval;
_displayLink.frameInterval = 60.0 * _frameInterval;
[_displayLink addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSRunLoopCommonModes];
}
_displayLink.paused = NO;
Expand Down

0 comments on commit 0f8486f

Please sign in to comment.