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

Load thumbnails on main screen asynchronously #1933

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TheLastProject
Copy link
Member

Decoding a bitmap can be slow. On slow devices, loading all the images as soon as the card should be shown can lead to UI freezes.

By loading the thumbnail asynchronously, scrolling quickly remains smooth even on slow devices.

Note: This works quite well on my Fairphone 3 with just a few images, needs testing with many images and also on fast devices.

Decoding a bitmap can be slow. On slow devices, loading all the images
as soon as the card should be shown can lead to UI freezes.

By loading the thumbnail asynchronously, scrolling quickly remains
smooth even on slow devices.
@TheLastProject
Copy link
Member Author

Hmm, this one might be controversial.

It does make scrolling smoother, but you may also see the text instead of the icons for a second, even when opening the app (and this seems to also happen on relatively fast devices like Samsung Galaxy S20+ 5G).

I'm not sure if it's an improvement :/

@TheLastProject TheLastProject force-pushed the feature/asyncThumbnailLoading branch from 8338303 to 0431803 Compare June 27, 2024 17:05
@TheLastProject
Copy link
Member Author

Nobody ever complained about slow scrolling, so let's just keep this open in case this becomes a problem ever (so we have the fix ready) but leave it the way it is for now.

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

Successfully merging this pull request may close these issues.

1 participant