Fix test case again because of SDDisplayLink behavior, do not use the isRunning check

This commit is contained in:
DreamPiggy 2019-11-04 16:31:55 +08:00
parent 6d4b241c39
commit 6a3f97551c
1 changed files with 2 additions and 3 deletions

View File

@ -165,6 +165,7 @@
self.currentLoopCount = 0;
self.currentTime = 0;
self.bufferMiss = NO;
[self handleFrameChange];
}
- (void)clearFrameBuffer {
@ -175,9 +176,6 @@
#pragma mark - Animation Control
- (void)startPlaying {
if (self.isPlaying) {
return;
}
[self.displayLink start];
// Calculate max buffer size
[self calculateMaxBufferCount];
@ -209,6 +207,7 @@
}
self.currentFrameIndex = index;
self.currentLoopCount = loopCount;
[self handleFrameChange];
}
#pragma mark - Core Render