IacobIonut01 / Gallery

Light-weight Media Gallery app for Android made with Jetpack Compose
Apache License 2.0
1.09k stars 59 forks source link

[BUG] Timeline and albums scrolling lags #299

Closed shomykohai closed 3 months ago

shomykohai commented 6 months ago

Describe the bug A clear and concise description of what the bug is.

When scrolling through the Timeline or a folder, based on the number of pictures, the app start lagging a lot.

To Reproduce Steps to reproduce the behavior:

Scroll through the Timeline with many many pictures. Also tried on a phone with lower specs than the one I've run the tests to confirm.

Expected behavior A clear and concise description of what you expected to happen.

A snappy and fast scrolling on mid/low end devices.

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

I've been using quickpic before, and wanted to use this app since I find it more appealing for my needs, but compared to how snappy quickpic is, I can't get used to this one. I assume the problem might be that the full picture gets loaded instead of a preview, contrary to how quickpic does.

st4ycool commented 6 months ago

Just to be clear, you use application from play store, right? Or you build it yourself?

shomykohai commented 6 months ago

Just to be clear, you use application from play store, right? Or you build it yourself?

I use the release from GitHub

st4ycool commented 6 months ago

Got you. I am having similar issues with debug builds, they are pretty laggy. But release one seems to be pretty fine, but not perfect, I also have freezes during fast scroll

shomykohai commented 6 months ago

Got you. I am having similar issues with debug builds, they are pretty laggy. But release one seems to be pretty fine, but not perfect, I also have freezes during fast scroll

Same, the problems as I said start to appear when scrolling fast, if I give it some time to load the medias of that particular section it does not give a problem doing smaller scrolls. But yeah basically it takes a lot of time to load medias so non high-end devices struggle to catch up.

I am using the latest release No-maps

IacobIonut01 commented 6 months ago

I'm still working on optimising the media-loading performance for all performance tiers of phones, might take a while until I figure everything out, also right now I'm working on the Edit feature of the app

IacobIonut01 commented 5 months ago

Starting with 2.1.0-21000 it should be much improved

shomykohai commented 5 months ago

Starting with 2.1.0-21000 it should be much improved

Pictured get loaded faster now in the Timeline, but the lag still persists, and it feels worse than before. Tested on the same phone as the one I used when I opened the issue.

Tried uninstalling and reinstalling + clearing cache but the only improvements seem to be the loading times as I said.

IacobIonut01 commented 5 months ago

Ok thanks for letting me know, I'll continue investigating

IacobIonut01 commented 5 months ago

@ShomyKohai please try this and see if there's any improvements Gallery-2.1.0_46e5acd-release.apk.zip

shomykohai commented 5 months ago

@ShomyKohai please try this and see if there's any improvements Gallery-2.1.0_46e5acd-release.apk.zip

There's a slight improvement, but it's still laggy

IacobIonut01 commented 5 months ago

Thanks! I'll send more builds later on if you want to test as well, would be great!

shomykohai commented 5 months ago

Thanks! I'll send more builds later on if you want to test as well, would be great!

sounds great!

ArmashOnGit commented 5 months ago

any updates on the issue?

IacobIonut01 commented 5 months ago

any updates on the issue?

You can try the last build from Github actions

BluePixel4k commented 5 months ago

I have the same problem with my new Pixel 8. The latest action build reduces the lags only a bit for me.

BluePixel4k commented 5 months ago

But the lags only occurs for me in the timeline view and not in the albums.

IacobIonut01 commented 5 months ago

I have the same problem with my new Pixel 8. The latest action build reduces the lags only a bit for me.

How many images/videos do you have in total?

BluePixel4k commented 5 months ago

@IacobIonut01 around 10800 with 25GB.

shomykohai commented 5 months ago

But the lags only occurs for me in the timeline view and not in the albums.

As for the albums, to me it happens mainly when an album has many pictures and videos, something that could mimic the behaviour of the main timeline.

ArmashOnGit commented 5 months ago

any updates on the issue?

You can try the last build from Github actions

it still lags unfortunately...

shomykohai commented 4 months ago

Tried the latest release and the latest github action build, unfortunately it still lags.

IacobIonut01 commented 3 months ago

The current release is the smoothest (Timeline) I can possibly make with the current Compose state. Regarding the video opening stutter, that is a different issue that I will investigate. Thanks

I will re-open this issue if I will be able to make further improvements to the lag issue