1
0
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:
William Casarin 2024-01-11 11:07:03 -08:00
parent 4cf92756f1
commit 3b436f9d58

View File

@ -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)