Skip to content
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

Open
jiangyuan0336 opened this issue Jan 16, 2018 · 5 comments
Open

播放速度问题 #200

jiangyuan0336 opened this issue Jan 16, 2018 · 5 comments

Comments

@jiangyuan0336
Copy link

使用这个库会导致GiF播放速度变慢,超级缓慢!比如说GiF图执行一次动画时间需要3秒,使用你这个库执行一次需要5-6秒左右。
希望你们能解决这个问题!
谢谢!

@coding-life-1
Copy link

https://github.com/Flipboard/FLAnimatedImage/tree/dynamic-memory-category
用这个分支

@wty302857194
Copy link

分支怎么用呢?

@fengweizhao
Copy link

我修改这个值( const NSTimeInterval kDelayTimeIntervalDefault = 0.035;),来改变gif 播放速度,不知道有什么不妥不?

@bullerliu
Copy link

改拉一点效果都没有

@Jinlongning
Copy link

研究了一下内部的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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants