session-foundation / session-android

A private messenger for Android.
https://getsession.org
GNU General Public License v3.0
30 stars 2 forks source link

Performance issues - extreme lag rendering app difficult or impossible to use #306

Open zcyph opened 2 years ago

zcyph commented 2 years ago

This has been an issue raised by many users in the official Session open groups, which I have experienced personally as well. I first dismissed this as being related to the age of my devices (OnePlus One - 2014, OnePlus 3T - 2016) even though everything else remained smooth.

I've recently acquired a brand new device, the OnePlus 10 Pro - a device with very good specs by current standards that is otherwise buttery smooth everywhere. Session clearly ran much better here - until I began joining a few open groups and using them for a little while. Around the same time, I joined the same groups from an iPhone 11 Pro.

Unfortunately the Android app has slowed down to the point of being basically impossible to use. As I have been sharing these details with the team and typing this up, Session remains unresponsive now going over half an hour - hence "extreme" is not an exaggeration. The iPhone version has continued operating with but an occasional hint of a slight hiccup, almost perfectly smooth by comparison while joined to the same groups.

I'm including a short screen recording to demonstrate some of this behavior. I can include more if needed.

https://user-images.githubusercontent.com/46662375/194572361-e3319b7b-4713-46db-a652-ed7008491e81.mp4

SzBenedek2006 commented 2 years ago

I have the same issue. I'm in a lot of groups and it's lagging like hell.

KeeJef commented 1 year ago

We are looking into Android performance again, this is certainly an issue that we are experiencing internally too

KeeJef commented 1 year ago

How are you going on 1.16.5? Any noticeable improvement?

zcyph commented 1 year ago

@KeeJef I will have to recheck on the older devices, but on the 10 Pro the general performance issues I described are mostly improved ever since the past few releases where I have kept trimming enabled and limited the number of open groups.

Since 1.16.4, there seems to be additional load time when Session launches for the first time or is relaunching after being cleared from memory. This was initially more severe (4+ seconds), it's now ~2 seconds. Switching to Session is normal if it's already running.

I will rejoin the usual groups and see whether performance degrades again.