electrolobzik
02/15/2024, 1:04 PMcoil in a lazyList I see lags during scrolling because image needs some time to load. Especially when I use VideoFrameDecoder. Does coil cache the result in this case? If not by default is there any API to force it using cache? In this case I will be able to prefetch the items into cache.jw
02/15/2024, 1:29 PMelectrolobzik
02/15/2024, 1:46 PMelectrolobzik
02/15/2024, 1:49 PMjw
02/15/2024, 1:49 PMColin White
02/15/2024, 4:28 PMVideoFrameDecoder has limited parallelism so it can be slow to decode lots of frames at the same time. Coil will cache the result in its memory cache until the cache fills upColin White
02/15/2024, 4:29 PMelectrolobzik
02/15/2024, 5:10 PMColin White
02/15/2024, 5:12 PMColin White
02/15/2024, 5:15 PMMediaMetadataRetreiver (the underlying class used by Coil) is pretty slow. Probably out of scope, but if you wanted it to decode much faster you could write a Decoder that integrates with FFmpeg (and if you do, please open source it!). That’ll include native libs in your apk, thoughelectrolobzik
02/15/2024, 5:17 PM