Switching between high resolution images is slow
Environment: Ubuntu 23.04, Wayland, Gnome 44.3, Apple Trash Can, 32GB Memory, Fast Graphics Performance, Image Viewer 45.beta.1, Folder of images on external harddrive connected through Thunderbolt 3 hub (OWC Thunderbolt 3 Dock, with thunderbolt 2 to 3 Apple Adapter).
Situation: when opening image viewer with standard .jpg images that are large ~10MB each, when tabbing quickly between images the "Image Viewer" stalls and the Gnome popup shows that application has become unresponsive (Wait, Force Quit). Loading times appear to be large 2-5seconds between images, and mouse arrow freezes during load (transitioning of image animation). Maybe that is a memory leak somewhere? To be sure I copied the same images on the local harddrive computer and the behaviour is also the same) showing halting image load and sometimes halting when half loaded similar to:
Workaround: Use apt://gnome-sushi with spacebar to preview same ~10MB images in folder, with no performance degradation no matter how quickly or often user selects the cursor left/right buttons. Sushi loading times for ~10MB image paging left or right is about 1sec in this case. The only apparent difference between Image Viewer is that there is no animation of images moving on or off the viewing window and it loads each image individually once selected and only shows it once fully loaded.
Note: the hesitant loading also exist when paging through ~500KB .jpg images, temporarily halting half way through the animation (next image is only half shown), then eventually shows the next image.
Steps to repeat:
- open folder with ~40 images ~10MB each with Image Viewer
- use right cursor keyboard button to page to next image repeatedly
- observe after a while the app freezes
- observe that even the mouse arrow freezes on the ui
Expected Behaviour: For the animation while the next image loading maybe slow dependant on image size with loading symbol shown, the animation for moving the already loaded image should not be impacted by the size of the already loaded image, or the size of the next image to be loaded. The already shown and loaded image should smoothly transition to the left and out of the viewing window. However, either animation of image off the viewer or image onto the viewer shows the halting, or stalling behaviour.
Example file format: