Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Severe lag in nested threads #666

Closed
yutotakano opened this issue Jan 17, 2023 · 6 comments
Closed

Severe lag in nested threads #666

yutotakano opened this issue Jan 17, 2023 · 6 comments

Comments

@yutotakano
Copy link

When viewing a post with multiple replies, which are nested and go several levels deep (indicated by the 5 or 6 vertical lines on the left), scroll actions lose framerates and become very laggy. This fixes itself when you scroll to a place where only single or 2nd layer replies are shown on screen.

Presumably it's to do with the number of elements drawn, but it seems like nested post threads increase processing complexity exponentially instead of linearly like with multiple single-deep replies.

Tooot version: v4.8.2

Toot where I experienced this: https://sauropods.win/@futurebird/109698982405188004

@xmflsct
Copy link
Member

xmflsct commented Jan 17, 2023

Are you using Android or iOS?

@yutotakano
Copy link
Author

Ah, Android. I didn't realise tooot was available on iOS, apologies for leaving out that info.

@xmflsct
Copy link
Member

xmflsct commented Jan 17, 2023

Just released v4.8.3 on Play Store. Can you give it a try and let me know if it has improved?

@ottomano
Copy link

Hi all.
I downloaded and tried 4.8.3 but the issue is still present on Android.

I will send you a video via DM on Mastodon.

@yutotakano
Copy link
Author

Good morning, apologies for the late reply -- I downloaded 4.8.3 too and still face the issue. I've also recorded a screencast (here). You can see how the scroll is smoother at shallower levels, and laggier at deep levels. At first I suspected it was the loading of images and new network content, but I scrolled back and forth around the same place (which should already have downloaded content) it doesn't look like that's the case.

@xmflsct
Copy link
Member

xmflsct commented Jan 18, 2023

Problem identified. It relates to the use of react-native-svg somehow.

xmflsct added a commit that referenced this issue Jan 26, 2023
More optimisation still needed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants