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

Very laggy on Android mobile app when scrolling on default photos view #12674

Open
1 of 3 tasks
maltokyo opened this issue Sep 14, 2024 · 12 comments
Open
1 of 3 tasks

Very laggy on Android mobile app when scrolling on default photos view #12674

maltokyo opened this issue Sep 14, 2024 · 12 comments

Comments

@maltokyo
Copy link

The bug

When scrolling on Google photos, the scrolling is extremely smooth even when scrolling too fast for full thumbnails to load. On Immich this is very laggy. Granted I have 100k photos, so not sure if that's the issue but it should still work. Attached a screen recording of me scrolling at a constant speed, and the laggy scrolling is clearly visible.

Link to video
https://youtube.com/shorts/D0theLCMa4s?si=ZsPg36C8EhGr6ktO

The OS that Immich Server is running on

android 14

Version of Immich Server

v1.115

Version of Immich Mobile App

v1.114

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

Stock standard docker compose. With Intel HW acceleration on.

Your .env content

Standard env

Reproduction steps

  1. Scroll on photos screen through many photos at medium pace (constant pace)
  2. Observe lagging
    ...

Relevant log output

No response

Additional information

No response

@bo0tzz
Copy link
Member

bo0tzz commented Sep 14, 2024

What device are you using? Try enabling "prefer remote images" in the advanced settings.

@Cookie-Monster-Coder
Copy link

What device are you using? Try enabling "prefer remote images" in the advanced settings.

This does not work.

Related issue:
#11113

@maltokyo
Copy link
Author

maltokyo commented Sep 14, 2024 via email

@maltokyo
Copy link
Author

maltokyo commented Sep 14, 2024 via email

@alextran1502
Copy link
Contributor

@maltokyo how many albums do you have? Did you start scrolling right away when you first open the app?

The stuttering is due to the albums sync mechanism compete with the UI thread, after the albums sync finished, it will be smoother.

Regardless, we have plan to optimize this process for a better user experience

@maltokyo
Copy link
Author

Thank you for the replies. Yes I used a script to make albums from about 1000 folders. So, many albums. But immich has been installed for weeks. So I thought it maybe has had enough time to scroll correctly. Thanks for the news on optimizing this.

@alextran1502
Copy link
Contributor

@maltokyo the sync here check for the diff with the server, adding and removing assets on the mobile...etc, basically expensive operations that can be taxing for the client, and it runs when opening the app and after some certain actions.

@maltokyo
Copy link
Author

maltokyo commented Sep 14, 2024 via email

@alextran1502
Copy link
Contributor

@maltokyo maybe a better wording from is the operation of figuring out what to sync is taxing and competing with UI thread

@maltokyo
Copy link
Author

@alextran1502 ok, is there anything I can do to get more data on this on my side, in order to find out what is causing the issue? Some way to get logs (and which ones?) from mobile or server, please let me know. Any way I can assist, I'm willing to of course.

@alextran1502
Copy link
Contributor

@maltokyo thanks for the offer, we already known the bottle neck and have plans to word toward improving it in the near future

@maltokyo
Copy link
Author

Understood. Thanks a lot. Apart from this, everything is absolutely amazing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants