Slow switching between precached images for some formats
Posted: Wed Oct 01, 2025 9:01 pm
Hi.
SW: XnView MP 1.9.4 (same issue for at least 1.9.3)
OS: Windows 10 22H2 x64
I'm trying to compare images by switching forward and backward using arrow keys (left and right), but issue also happens when using mouse to switch images. Here is the issue - switching for some formats is super fast, and for some it is very slow (0.5-1.0 sec by rough estimation).
In preferences I have caching for current image and prefetching of next image enabled. I obviously did not try all formats, but for those I'm interested in - it is fast for JPG, TIFF, PSD and RAW (builtin preview), and is slow for PNG. Which is quite strange, because my TIFFs and PSDs are often 16-bit/channel in ProPhotoRGB colorspace, while PNG is 8-bit/channel in sRGB - so much smaller.
And it is not clear to me why this is happening, because I can understand different times for initial load, but once current and next images are already preloaded - I don't understand from where this differences comes from. I've tried checking "Disable GIF/JIF/APNG/ANI animation", but it makes no difference. So I'm out of ideas, and it really unclear to me how image format can affect switching times for already decoded images.
I've also tried XnView MP 0.99.7 - and no issue there, everything is super fast for switching between all formats including PNG.
Sample files to reproduce: https://filebin.net/d6ubivyc6rof65ym Just unpack into empty folder, start XnView MP and navigate there, open first image in fullscreen by pressing F11. Then use left and right keys to switch between two images (right, left, right, left, ...) - observe delay for PNG files even for second and further switches. Then do the same for two provided TIFF files and see that switching is much faster.
PS: actually, after some testing I've found out that regression happened in 1.9.0
1.8.8 is the last version when switching was fast, and in 1.9.0 and newer it is slow.
SW: XnView MP 1.9.4 (same issue for at least 1.9.3)
OS: Windows 10 22H2 x64
I'm trying to compare images by switching forward and backward using arrow keys (left and right), but issue also happens when using mouse to switch images. Here is the issue - switching for some formats is super fast, and for some it is very slow (0.5-1.0 sec by rough estimation).
In preferences I have caching for current image and prefetching of next image enabled. I obviously did not try all formats, but for those I'm interested in - it is fast for JPG, TIFF, PSD and RAW (builtin preview), and is slow for PNG. Which is quite strange, because my TIFFs and PSDs are often 16-bit/channel in ProPhotoRGB colorspace, while PNG is 8-bit/channel in sRGB - so much smaller.
And it is not clear to me why this is happening, because I can understand different times for initial load, but once current and next images are already preloaded - I don't understand from where this differences comes from. I've tried checking "Disable GIF/JIF/APNG/ANI animation", but it makes no difference. So I'm out of ideas, and it really unclear to me how image format can affect switching times for already decoded images.
I've also tried XnView MP 0.99.7 - and no issue there, everything is super fast for switching between all formats including PNG.
Sample files to reproduce: https://filebin.net/d6ubivyc6rof65ym Just unpack into empty folder, start XnView MP and navigate there, open first image in fullscreen by pressing F11. Then use left and right keys to switch between two images (right, left, right, left, ...) - observe delay for PNG files even for second and further switches. Then do the same for two provided TIFF files and see that switching is much faster.
PS: actually, after some testing I've found out that regression happened in 1.9.0
1.8.8 is the last version when switching was fast, and in 1.9.0 and newer it is slow.