Reaction fixes

This commit is contained in:
Ali
2022-09-01 21:22:06 +04:00
parent c2834b175a
commit 800fc9763f
27 changed files with 176 additions and 149 deletions

View File

@@ -14,8 +14,8 @@ public func cacheLottieAnimation(data: Data, width: Int, height: Int, keyframeOn
return
}
let frameSkip: Int
if animation.frameRate >= 60 {
let frameSkip: Int = 2
/*if animation.frameRate >= 60 {
if ProcessInfo.processInfo.processorCount > 2 {
frameSkip = 1
} else {
@@ -23,7 +23,7 @@ public func cacheLottieAnimation(data: Data, width: Int, height: Int, keyframeOn
}
} else {
frameSkip = 1
}
}*/
let frameDuration = Double(frameSkip) / Double(animation.frameRate)
for i in stride(from: 0, through: animation.frameCount - 1, by: frameSkip) {