metabolist / metatext

A free, open-source iOS Mastodon client.
https://metabolist.org/metatext
GNU General Public License v3.0
727 stars 102 forks source link

Stuttering when scrolling through timeline #47

Open tbodt opened 3 years ago

tbodt commented 3 years ago

Describe the bug When I scroll through a timeline, I notice frequent frame drops/stutters.

To Reproduce Steps to reproduce the behavior:

  1. Scroll through timeline

Expected behavior No stuttering

Screenshots Here is a recording of scrolling through the federated timeline on mastodon.social. The stuttering should be obvious.

https://user-images.githubusercontent.com/5678977/136917207-c8b7c9ce-df49-4808-9415-72e880e52e1d.MP4

(please complete the following information):

Additional context Add any other context about the problem here.

ShredderWalnut commented 2 years ago

I'm experiencing the same when scrolling through the federated timeline. Yesterday Metatext completely froze, neither force quitting the app nor restarting the device fixed the issue. I had to reinstall the app.

I tried to find more useful log or diagnostics to help with troubleshooting but couldn't find any.

Edit: I also noticed excessive heat and battery drain during longer sessions of scrolling through the federated timeline, which may or may not be related.

Device: iPhone X OS: iOS 15.2 App version: 1.5.0 (4)

pndurette commented 2 years ago

Adding to this— I've been using Metatext for maybe only 10 days, but it started doing this really badly only the last few days. It can get pretty bad, especially when new content is loading.

Device: iPhone 12 mini OS: iOS 16.1.1 App version: 1.6.0 (1)

Let me know if I can provide anything else likes logs or whatever. Thanks for your hard work!

tbodt commented 2 years ago

I did a bit of profiling recently and found that much of the time is spent fiddling with autolayout constraints. I couldn't figure out exactly what was doing all the layout or how to make it do less.