Infinity-For-Reddit icon indicating copy to clipboard operation
Infinity-For-Reddit copied to clipboard

Poor performance when opening multiple subreddit/user pages

Open patrickpichler opened this issue 3 years ago • 0 comments

I'm using version 5.1.9 and noticed that if you open multiple subreddits/user pages at the same time, the app starts responding slow.

What I also notice was, that when I was running Android 11, the amount of subreddit/user pages I could open was significantly higher, than now when I upgraded to Android 12 (I'm talking about ~10 pages before, where as it now starts lagging with about 4 pages).

I've tried profiling the App with Android Studio, but couldn't find anything obvious (neither heap dump, nor call stack sampling).

What I've also tried was enabling android:largeHeap in the application manifest, as I suspected it to be related to heap size and garbage collection. It didn't change a thing, the app still feels sluggish after opening ~5 pages.

When the App starts feeling sluggish, it starts logging the following event:

2022-04-19 21:07:05.371 10591-17237/ml.docilealligator.infinityforreddit I/OpenGLRenderer: Davey! duration=9223362864216ms; Flags=0, FrameTimelineVsyncId=291933, IntendedVsync=9172619481812, Vsync=9172619481812, InputEventId=0, HandleInputStart=9172630339554, AnimationStart=9172630340939, PerformTraversalsStart=9172630988400, DrawStart=9172631116208, FrameDeadline=9172652815144, FrameInterval=9172630336362, FrameStartTime=16666666, SyncQueued=9172631227439, SyncStart=9172649617785, IssueDrawCommandsStart=9172650125785, SwapBuffers=9172654106708, FrameCompleted=9223372036854775807, DequeueBufferDuration=2336269, QueueBufferDuration=10134000, GpuCompleted=9223372036854775807, SwapBuffersCompleted=9172665536169, DisplayPresentTime=0, 

I'm not an android developer, so I might have overlooked something!

The phone I'm using is a Samsung Galaxy S10+.

Edit: Today I learned that it is no coincidence that this message is logged :smile: https://stackoverflow.com/a/60675966

patrickpichler avatar Apr 19 '22 19:04 patrickpichler