mirror of
git://jb55.com/damus
synced 2024-09-29 08:20:45 +00:00
perf: fix gif decoding performance issues
Preload as much as possible so that gif's don't use as much CPU Changelog-Fixed: Fix performance issue with gifs
This commit is contained in:
parent
4cf92756f1
commit
3b436f9d58
@ -23,7 +23,7 @@ struct EditBannerImageView: View {
|
||||
KFAnimatedImage(get_banner_url(banner: banner_image?.absoluteString, pubkey: damus_state.pubkey, profiles: damus_state.profiles))
|
||||
.imageContext(.banner, disable_animation: damus_state.settings.disable_animation)
|
||||
.configure { view in
|
||||
view.framePreloadCount = 3
|
||||
view.framePreloadCount = .max
|
||||
}
|
||||
.placeholder { _ in
|
||||
Color(uiColor: .secondarySystemBackground)
|
||||
|
Loading…
Reference in New Issue
Block a user