oculante icon indicating copy to clipboard operation
oculante copied to clipboard

Preload images for greater responsiveness

Open Shnatsel opened this issue 5 years ago • 2 comments

Many other image viewers decode the next image before viewing it is actually requested by the user. This makes the previous/next buttons far more responsive.

For example, https://github.com/ArturKovacs/emulsion also written in Rust and using the same image decoding code is dramatically more responsive thanks to preloading.

Shnatsel avatar Mar 25 '21 00:03 Shnatsel

That is a good suggestion, although I believe that users who'd like a good "Desktop image viewer" could be better served by using emulsion. Further, preloading images can consume quite some memory - even if it's just the previous and next one, you're hitting 150-200MB quickly. I can give it a try and maybe put it behind a feature flag.

woelper avatar Mar 25 '21 08:03 woelper

There is now caching in oculante, but still no preloading. Implementing this will be a lot easier though now.

woelper avatar Jan 07 '23 14:01 woelper