avatar_glow icon indicating copy to clipboard operation
avatar_glow copied to clipboard

Is the degraded performance expected when more than 3-4 avatars are glowing at the same time?

Open frankyvij opened this issue 4 years ago • 7 comments

I would like to confirm that the performance of the scrollbar becomes really janky when more than 3-4 avatars are glowing at the same time.

frankyvij avatar Mar 07 '21 05:03 frankyvij

Hi @frankyvij Scrollbar performance might degrade(due to animation) on flutter web. But if you run the example on mobile devices or desktop you will not experience any lag.

apgapg avatar Mar 07 '21 06:03 apgapg

I am actually experiencing lag on my android device (Samsung Note 9), even in release mode with 3 avatars glowing at the same time.

I am using this in ListTile where there will be some users who will glow, and others won't. So when I scroll, I see a lag. I will upload the video soon.

frankyvij avatar Mar 07 '21 06:03 frankyvij

Using in Listview with multiple ListTile having avatar_glow might lag. I will try checking this with a sample.

apgapg avatar Mar 07 '21 16:03 apgapg

Any update on this ?

sanalkv avatar Dec 01 '21 09:12 sanalkv

The lag might be due to heavy animations running. When multiple are present this will cause a load on GPU. I will try finding a way to min animation load if lucky

apgapg avatar Dec 01 '21 14:12 apgapg

I think the widget itself is refreshing the entire UI leading to degraded performance. I hope you are able to find a solution for it.

sanalkv avatar Dec 02 '21 10:12 sanalkv

@sanalkv the stateful widget rebuilds itself. There is no need to rebuild its parent. I think the problem is not an issue related to this package. If this avatar's parent widget rebuilds frequently, it will cause all avatars to rebuild themselves. If the list is small try to use Column rather than listview builder. I have tested this with almost 75 avatars in a column, and no performance issue was found.

tanmoysrt avatar Aug 13 '22 04:08 tanmoysrt