What's the best way to re-use AsyncImages in LazyColumns? #2219
Unanswered
vitorpamplona
asked this question in
Q&A
Replies: 1 comment
-
AsyncImages could use the same GPU texture(i.e. AHardwareBuffer, dma-buf) if they retrieve the same Bitmap from coil's memoryCache. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Twitter-like LazyColumn feed where the profile picture of each post can repeat in separate items of the lazy column. On heavy images, it's visible that the AsyncImage re-loads for each for the repeated instances.
Do you know if having two AsyncImages in separate items creates two identical textures in the GPU for rendering?
Is there an efficient way to re-use AsyncImage in multiple items? Maybe caching only one painter for each image url in the viewModel? Or is that already handled by AsyncImage directly?
Beta Was this translation helpful? Give feedback.
All reactions