-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
播放速度问题 #200
Comments
分支怎么用呢? |
我修改这个值( const NSTimeInterval kDelayTimeIntervalDefault = 0.035;),来改变gif 播放速度,不知道有什么不妥不? |
改拉一点效果都没有 |
研究了一下内部的FLAnimatedImageView播放逻辑,通过CADisplayLink回调每次去取对应的GIF帧,由于同步从cache中取帧,取不到则触发异步取帧的逻辑,所以在默认情况下需要至少两次DisplayLink回调才能刷新。解决办法可以在FLAnimatedImage初始化的时候设置optimalFrameCacheSize大于1,这样来增大前边描述的每次异步取帧的个数,达到预取帧的目的,可能造成的影响是内存可能会有所增加。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用这个库会导致GiF播放速度变慢,超级缓慢!比如说GiF图执行一次动画时间需要3秒,使用你这个库执行一次需要5-6秒左右。
希望你们能解决这个问题!
谢谢!
The text was updated successfully, but these errors were encountered: