We use `LazyVerticalGrid` with items containing so...
# compose
l
We use
LazyVerticalGrid
with items containing some Coil `AsyncImage`s and the scroll is stuttering very hard. Is this a known problem?
z
Are you testing in a release build ?
l
Yes, laggy as well
l
does it also stutter when you only have a thumbnail instead of downloading images? Maybe something’s wrong with caching
c
Have you determined that the LazyVerticalGrid items themselves aren't recomposing for any reason? I also had to tackle this problem, but my list was flickering. I was loading a bitmap into each image instead of a url, and ended up having to store my list of bitmaps in a remembered hashmap to cut down on recomposition.
z
If you have to do all that then you got an issue somewhere else that you have to solve
c
If you have to do all that then you got an issue somewhere else that you have to solve
I don't disagree, but I'm trying to offer a potential place to look for his problem instead of making snarky comments 🙂
z
You seem misunderstood, didn't mean to offend you. Just saying absolutely no one should have to do whatever you're doing, not even consider it a potential place to look
c
If the items themselves are recomposing too frequently and the code for displaying the image is inside that, that is a problematic area. That is where I was suggesting he should look.
l
Thanks for the feedback, I actually removed the AsyncImage and it still stutters...
I think that's a general problem with LazyVerticalGrid, it's not prime time ready yet. There are some issues open in Google Issue Tracker and posts on Stack Overflow regarding the general lagginess.
115 Views