Page 1 of 1

Slow when rapidly scrolling viewer through folder

Posted: Sun Jul 19, 2020 11:33 pm
by atomicthumbs
I have an older laptop (2nd generation i7 dual-core) and do a lot of work organizing folders of images. When I'm holding down the arrow keys to scroll through them in fullscreen and arrive at the right one, it often pauses quite a lot, working to decode large PNGs, GIF files, and such.

Animated GIF files of moderate or larger dimensions and length especially seem to take a very long time to load, compared to other files of their size; this effectively freezes the program until it finishes loading or rendering the animation.

I suspect a read-ahead (and read-behind) cache of more than one image (possibly, lots of images) would alleviate the navigation slowness a great deal, if it's possible to implement. I would rather the program pin the CPU for a little while to refill the cache, while maintaining responsiveness.

I have plenty of RAM to hold a large cache, but not much CPU to load images in realtime as I scroll. I'm not sure whether the cache as currently implemented prevents pausing when a large GIF is the next image in the sequence.

Re: Slow when rapidly scrolling viewer through folder

Posted: Mon Jul 20, 2020 12:46 pm
by xnview
yes, loading a big GIF can have a delay (all frames are decompressed)