damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 3b436f9d58a57f49bbc54f40bca1252d06a707bc
parent 4cf92756f1593b8ffe9f8f2284de37c92b2708ac
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 11 Jan 2024 11:07:03 -0800

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

Diffstat:
Mdamus/Views/BannerImageView.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/damus/Views/BannerImageView.swift b/damus/Views/BannerImageView.swift @@ -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)