Docile-Alligator / Docile-Alligator/Infinity-For-Reddit
Poor performance when opening multiple subreddit/user pages
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 5.5k
- Forks
- 521
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 1
Description
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 😄
https://stackoverflow.com/a/60675966
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the slowdown on Android 12 by opening multiple subreddit or user pages, then inspect the Android Studio profiling data alongside the OpenGLRenderer log shown in the report. Done means identifying and resolving the cause so the app remains responsive with several pages open.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100