You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Geeqie 3.0 and 3.1 are very slow in loading images #2531
Geeqie 2.9 works very well in my Fedora setup. Based on the source RPM I have compiled it for version 3.0 and 3.1. The build went problem-free but the executables got very slow (images are slowly loaded in tiles).
Can you please clarify what are the changes that result in such poor performance? Is this the result of wrong build options?
When using the development GTK4 version 4.23.3 I got a stack trace with gdb (included at the end). The problem was with /usr/lib64/gtk-4.0/4.0.0/immodules/libim-ibus.so overflowing the stack. Once ibus was removed Geeqie would start properly. Unfortunately, even with the 4.23.3 version the images still load very slowly as with 4.22.4.
#0 0x00007ffff6d8b9d4 in g_rw_lock_reader_lock () at /lib64/libglib-2.0.so.0 #1 0x00007ffff6ea1543 in g_type_value_table_peek () at /lib64/libgobject-2.0.so.0 #2 0x00007ffff6e844f2 in g_object_new_valist () at /lib64/libgobject-2.0.so.0 #3 0x00007ffff6e84b74 in g_object_new () at /lib64/libgobject-2.0.so.0 #4 0x00007ffff7b9a110 in gtk_widget_init () at /lib64/libgtk-4.so.1 #5 0x00007ffff6e9ddb3 in g_type_create_instance () at /lib64/libgobject-2.0.so.0 #6 0x00007ffff6e826e0 in g_object_new_internal.part () at /lib64/libgobject-2.0.so.0 #7 0x00007ffff6e83d0a in g_object_new_with_properties () at /lib64/libgobject-2.0.so.0 #8 0x00007ffff6e84b89 in g_object_new () at /lib64/libgobject-2.0.so.0 #9 0x00007ffff7fb3ab4 in ibus_im_context_set_client_widget () at /usr/lib64/gtk-4.0/4.0.0/immodules/libim-ibus.so #10 0x00007ffff7a84989 in gtk_im_multicontext_set_delegate () at /lib64/libgtk-4.so.1 #11 0x00007ffff7a84af6 in gtk_im_multicontext_get_delegate () at /lib64/libgtk-4.so.1 #12 0x00007ffff7a84f4a in gtk_im_multicontext_set_client_widget () at /lib64/libgtk-4.so.1 #13 0x00007ffff7b6d35b in gtk_text_view_init () at /lib64/libgtk-4.so.1 #14 0x00007ffff6e9ddf0 in g_type_create_instance () at /lib64/libgobject-2.0.so.0 #15 0x00007ffff6e826e0 in g_object_new_internal.part () at /lib64/libgobject-2.0.so.0 #16 0x00007ffff6e83d0a in g_object_new_with_properties () at /lib64/libgobject-2.0.so.0 #17 0x00007ffff6e84b89 in g_object_new () at /lib64/libgobject-2.0.so.0 #18 0x00007ffff7fb3ab4 in ibus_im_context_set_client_widget () at /usr/lib64/gtk-4.0/4.0.0/immodules/libim-ibus.so #19 0x00007ffff7a84989 in gtk_im_multicontext_set_delegate () at /lib64/libgtk-4.so.1 #20 0x00007ffff7a84af6 in gtk_im_multicontext_get_delegate () at /lib64/libgtk-4.so.1 #21 0x00007ffff7a84f4a in gtk_im_multicontext_set_client_widget () at /lib64/libgtk-4.so.1 #22 0x00007ffff7b6d35b in gtk_text_view_init () at /lib64/libgtk-4.so.1 #23 0x00007ffff6e9ddf0 in g_type_create_instance () at /lib64/libgobject-2.0.so.0 #24 0x00007ffff6e826e0 in g_object_new_internal.part () at /lib64/libgobject-2.0.so.0 #25 0x00007ffff6e83d0a in g_object_new_with_properties () at /lib64/libgobject-2.0.so.0 #26 0x00007ffff6e84b89 in g_object_new () at /lib64/libgobject-2.0.so.0 #27 0x00007ffff7fb3ab4 in ibus_im_context_set_client_widget () at /usr/lib64/gtk-4.0/4.0.0/immodules/libim-ibus.so
...
Removing the configuration files from ~/.config/geeqie mostly fixed the problem. Images are now loading much faster but still not as fast as with version 2.9 and GTK3.
The problem you encountered with Geeqie migrated to GTK4 is a classic one for graphics-intensive applications (viewers, editors) migrating from an older toolkit.
The reason lies in the fundamental change in the rendering architecture between GTK3 and GTK4, as well as in how applications handle large images.
GTK3 used Cairo by default—a 2D graphics library that performs almost all calculations on the central processing unit (CPU). Cairo works very well and predictably with large pixel arrays in RAM.
GTK4 introduced GSK (GTK Scene Kit). By default, GTK4 uses the gl (OpenGL) or vulkan renderers. This means that all interface and image rendering is now offloaded to the graphics card (GPU).
When you scroll or switch images in the viewer, the program needs to render a large amount of data.
Geeqie decodes JPEG/PNG (this is done by the CPU), obtaining a raw pixel array in RAM.
In GTK3, Cairo simply took a pointer to this array in RAM and drew it on the screen. This is a fast operation for the CPU.
In GTK4 (with the gl/vulkan renderer), the raw pixel array needs to be loaded into video memory (VRAM), turning it into a texture (Texture Upload). Uploading an uncompressed bitmap image (for example, 40-50 MB for a single photo) via the PCI-E bus to the GPU for each scroll frame is a very expensive operation. This creates a bottleneck: the GPU waits while the CPU decodes the image and transfers it over the bus, which is what creates the "slideshow" effect.
GTK4 handles screen scaling differently, especially if you have a 4K monitor or have fractional scaling enabled (e.g., 125% or 150%). To draw the interface on such screens, GTK4 renders everything at a higher resolution and then scales it up. As Geeqie isn't optimized to use the new GTK4 texture caching APIs (such as GdkTexture or GdkSnapshot), the application will attempt to redraw and recalculate huge textures every time the scroll bar is moved.
GTK4 uses Retained Mode. The toolkit stores the scene graph tree. In GTK3 (Immediate Mode), Geeqie could simply say, "Draw this piece of the image." In GTK4, scrolling invalidates widgets, recalculates scene graph nodes, and only then draws them. If Geeqie (whose codebase was written for GTK2/GTK3 for years) doesn't use the new GTK4 patterns yet, it leads to unnecessary redraws and lag.
By setting GSK_RENDERER=cairo, you force GTK4 to behave like GTK3—bypassing the GPU and rendering everything using Cairo on the CPU.
This removes the bottleneck of loading textures into video memory (VRAM).
However, the GTK4 interface in Cairo mode is still a bit heavier than native GTK3, since GTK4 emulates its internal model (Scene Graph) on top of Cairo.
There is a thumbnail cache at ~/.cache/geeqie/thumbnails
Cache location is defined in Preferences/General/Thumbnails
Is there a full image cache that speeds up the decoding?
Sorry. I do not understand your question.
(There is Preferences/General/Preload Next Image)
There is a new option - Preferences/General/Display Tile Cache Per Image . Your config file has it preset to 10Mb, but you should set it to maybe 64Mb.
Also try with Preferences/Image/Two-Pass set to off, and Preferences/Image/Tile Size to 256.
There is also another minor change in this area (GList to GQueue) that is probably not significant.
@caclark
I found the cache settings for images at Preferences/General/Image loading and caching. There is also a Preload next image option which explains the fast loading.
3.2 is much faster in rendering the images than 3.1. It almost renders immediately just like 2.9, but there seems to be a 0.5s delay between selecting another picture and the picture actually being rendered. It seems like the file selection is what is slowing it down now. Preloading has no influence on this.
Edit: I noticed that the delay is also present when zooming or dragging a zoomed view so overall performance is still poor. What might also be noteworthy is that the performance is exactly the same regardless whether image quality is set to best or worst and whether two pass rendering is enabled or not.
Even though the improvement to 3.2 is huge, I would suggest to reopen this until performance gets anywhere near 2.9.
@caclark What do you think about repoening this one? Despite the large improvement to 3.2, performance is still poor compared to 2.9 and other viewers, especially zooming and panning are still too slow to be usable.
Try turning off/changing anything that may affect the display speed e.g. thumbnail create, exif rotation, preload next image, two-pass render, initial zoom setting, tile size etc.
Can you upload a test image that is particularly slow?
I am just trying Geeqie 3.3 and the performance increase is huge again. Zoom actions are now delayed for maybe 0.5 seconds and panning seems to render with a guessed 20 fps with the exception that parts of the image that were previously invisible (dragging them in from outside the screen) are black and are then rendered for about a full second until they appear again.
Performance-wise, Geeqie 3 has become usable now.
Just one more 10x performance increase and it could compete with 2.9.
This how I see it. Interestingly, sometimes small blocks are being rendered while dragging and sometimes rendering only takes place when the dragging stopped.
Performance has increased significantly in 3.4.
I think it's enough even though it's still slower than 2.9 where the rendering was so fast that I couldn't even watch it render.
Hello. I'm seeing similar things probably. I'm on Debian. X11. Comparing a build from latest git (807068c) and geeqie in Debian/trixie (2.5). Looking at a directory of large jpg photos geeqie 2.5 can move between images and zoom in/out instantly. The geeqie from git today stutters and is much slower. Due to #2782 I'm using the mouse wheel to zoom.
The options are all default,except I'm using nearest-neighbor scaling. I don't think the GSK_... environment settings do anything here. Happy to run any specific experiments.
Activity
[-]Geeqie 3.0 and 3.1 is very slow in loading images[/-][+]Geeqie 3.0 and 3.1 are very slow in loading images[/+]x3x7 commentedon Aug 7, 2026
I tried also the Mageia package (https://ftp.uni-erlangen.de/mirrors/Mageia/distrib/cauldron/SRPMS/core/release/geeqie-3.0-1.mga11.src.rpm) with identical results.
I noticed that a major change is GTK4 support for versions 3.0 and above. I have GTK4 version 4.22.4, maybe it is badly configured...
x3x7 commentedon Aug 7, 2026
I tested with different GSK renderer:
About same behavior, the vulkan option was very slow.
x3x7 commentedon Aug 7, 2026
I tried using the development GTK4 version 4.23.3. With such build Geeqie 3.1 is dumping core at startup.
caclark commentedon Aug 7, 2026
You should have:
Configurationexecinfo : stacktrace supported:YESThere should be a backtrace when there is a crash.
I have
pkg-config --modversion gtk44.22.4x3x7 commentedon Aug 7, 2026
I had "stacktrace supported: YES" in my builds. No visible backtrace though.
caclark commentedon Aug 7, 2026
Try
meson setup -Dbuildtype=debug buildetc
then
geeqie --debug=4x3x7 commentedon Aug 8, 2026
When using the development GTK4 version 4.23.3 I got a stack trace with gdb (included at the end). The problem was with /usr/lib64/gtk-4.0/4.0.0/immodules/libim-ibus.so overflowing the stack. Once ibus was removed Geeqie would start properly. Unfortunately, even with the 4.23.3 version the images still load very slowly as with 4.22.4.
#0 0x00007ffff6d8b9d4 in g_rw_lock_reader_lock () at /lib64/libglib-2.0.so.0
#1 0x00007ffff6ea1543 in g_type_value_table_peek () at /lib64/libgobject-2.0.so.0
#2 0x00007ffff6e844f2 in g_object_new_valist () at /lib64/libgobject-2.0.so.0
#3 0x00007ffff6e84b74 in g_object_new () at /lib64/libgobject-2.0.so.0
#4 0x00007ffff7b9a110 in gtk_widget_init () at /lib64/libgtk-4.so.1
#5 0x00007ffff6e9ddb3 in g_type_create_instance () at /lib64/libgobject-2.0.so.0
#6 0x00007ffff6e826e0 in g_object_new_internal.part () at /lib64/libgobject-2.0.so.0
#7 0x00007ffff6e83d0a in g_object_new_with_properties () at /lib64/libgobject-2.0.so.0
#8 0x00007ffff6e84b89 in g_object_new () at /lib64/libgobject-2.0.so.0
#9 0x00007ffff7fb3ab4 in ibus_im_context_set_client_widget () at /usr/lib64/gtk-4.0/4.0.0/immodules/libim-ibus.so
#10 0x00007ffff7a84989 in gtk_im_multicontext_set_delegate () at /lib64/libgtk-4.so.1
#11 0x00007ffff7a84af6 in gtk_im_multicontext_get_delegate () at /lib64/libgtk-4.so.1
#12 0x00007ffff7a84f4a in gtk_im_multicontext_set_client_widget () at /lib64/libgtk-4.so.1
#13 0x00007ffff7b6d35b in gtk_text_view_init () at /lib64/libgtk-4.so.1
#14 0x00007ffff6e9ddf0 in g_type_create_instance () at /lib64/libgobject-2.0.so.0
#15 0x00007ffff6e826e0 in g_object_new_internal.part () at /lib64/libgobject-2.0.so.0
#16 0x00007ffff6e83d0a in g_object_new_with_properties () at /lib64/libgobject-2.0.so.0
#17 0x00007ffff6e84b89 in g_object_new () at /lib64/libgobject-2.0.so.0
#18 0x00007ffff7fb3ab4 in ibus_im_context_set_client_widget () at /usr/lib64/gtk-4.0/4.0.0/immodules/libim-ibus.so
#19 0x00007ffff7a84989 in gtk_im_multicontext_set_delegate () at /lib64/libgtk-4.so.1
#20 0x00007ffff7a84af6 in gtk_im_multicontext_get_delegate () at /lib64/libgtk-4.so.1
#21 0x00007ffff7a84f4a in gtk_im_multicontext_set_client_widget () at /lib64/libgtk-4.so.1
#22 0x00007ffff7b6d35b in gtk_text_view_init () at /lib64/libgtk-4.so.1
#23 0x00007ffff6e9ddf0 in g_type_create_instance () at /lib64/libgobject-2.0.so.0
#24 0x00007ffff6e826e0 in g_object_new_internal.part () at /lib64/libgobject-2.0.so.0
#25 0x00007ffff6e83d0a in g_object_new_with_properties () at /lib64/libgobject-2.0.so.0
#26 0x00007ffff6e84b89 in g_object_new () at /lib64/libgobject-2.0.so.0
#27 0x00007ffff7fb3ab4 in ibus_im_context_set_client_widget () at /usr/lib64/gtk-4.0/4.0.0/immodules/libim-ibus.so
...
x3x7 commentedon Aug 8, 2026
Removing the configuration files from ~/.config/geeqie mostly fixed the problem. Images are now loading much faster but still not as fast as with version 2.9 and GTK3.
froloffw7 commentedon Aug 8, 2026
The problem you encountered with Geeqie migrated to GTK4 is a classic one for graphics-intensive applications (viewers, editors) migrating from an older toolkit.
The reason lies in the fundamental change in the rendering architecture between GTK3 and GTK4, as well as in how applications handle large images.
GTK3 used Cairo by default—a 2D graphics library that performs almost all calculations on the central processing unit (CPU). Cairo works very well and predictably with large pixel arrays in RAM.
GTK4 introduced GSK (GTK Scene Kit). By default, GTK4 uses the gl (OpenGL) or vulkan renderers. This means that all interface and image rendering is now offloaded to the graphics card (GPU).
When you scroll or switch images in the viewer, the program needs to render a large amount of data.
Geeqie decodes JPEG/PNG (this is done by the CPU), obtaining a raw pixel array in RAM.
In GTK3, Cairo simply took a pointer to this array in RAM and drew it on the screen. This is a fast operation for the CPU.
In GTK4 (with the gl/vulkan renderer), the raw pixel array needs to be loaded into video memory (VRAM), turning it into a texture (Texture Upload). Uploading an uncompressed bitmap image (for example, 40-50 MB for a single photo) via the PCI-E bus to the GPU for each scroll frame is a very expensive operation. This creates a bottleneck: the GPU waits while the CPU decodes the image and transfers it over the bus, which is what creates the "slideshow" effect.
GTK4 handles screen scaling differently, especially if you have a 4K monitor or have fractional scaling enabled (e.g., 125% or 150%). To draw the interface on such screens, GTK4 renders everything at a higher resolution and then scales it up. As Geeqie isn't optimized to use the new GTK4 texture caching APIs (such as
GdkTextureorGdkSnapshot), the application will attempt to redraw and recalculate huge textures every time the scroll bar is moved.GTK4 uses Retained Mode. The toolkit stores the scene graph tree. In GTK3 (Immediate Mode), Geeqie could simply say, "Draw this piece of the image." In GTK4, scrolling invalidates widgets, recalculates scene graph nodes, and only then draws them. If Geeqie (whose codebase was written for GTK2/GTK3 for years) doesn't use the new GTK4 patterns yet, it leads to unnecessary redraws and lag.
By setting
GSK_RENDERER=cairo, you force GTK4 to behave like GTK3—bypassing the GPU and rendering everything using Cairo on the CPU.This removes the bottleneck of loading textures into video memory (VRAM).
However, the GTK4 interface in Cairo mode is still a bit heavier than native GTK3, since GTK4 emulates its internal model (Scene Graph) on top of Cairo.
caclark commentedon Aug 8, 2026
I fed some of @froloffw7 's comments into Codex, which provided some headache-inducing suggestions:
2531-1.md
Shallrath commentedon Aug 9, 2026
15 seconds to render a 12 Megapixel phone photo on an i7-6700 with GTX1070.
x3x7 commentedon Aug 10, 2026
@Shallrath In my case for JPEG images it took about 4 seconds. After removing the configuration files from ~/.config/geeqie it is now about 1 sec.
caclark commentedon Aug 10, 2026
@x3x7
Is there any obvious part of the
.config/geeqiedirectory contents that might be an influence?8 remaining items
x3x7 commentedon Aug 20, 2026
In my test I have used the same images as with version 3.1. There is a thumbnail cache at
~/.cache/geeqie/thumbnailsbut that is empty.Is there a full image cache that speeds up the decoding?
caclark commentedon Aug 20, 2026
@x3x7
Cache location is defined in
Preferences/General/ThumbnailsSorry. I do not understand your question.
(There is
Preferences/General/Preload Next Image)There is a new option -
Preferences/General/Display Tile Cache Per Image. Your config file has it preset to 10Mb, but you should set it to maybe 64Mb.Also try with
Preferences/Image/Two-Passset to off, andPreferences/Image/Tile Sizeto 256.There is also another minor change in this area (GList to GQueue) that is probably not significant.
x3x7 commentedon Aug 21, 2026
@caclark
I found the cache settings for images at
Preferences/General/Image loading and caching. There is also aPreload next imageoption which explains the fast loading.Shallrath commentedon Sep 24, 2026
3.2 is much faster in rendering the images than 3.1. It almost renders immediately just like 2.9, but there seems to be a 0.5s delay between selecting another picture and the picture actually being rendered. It seems like the file selection is what is slowing it down now. Preloading has no influence on this.
Edit: I noticed that the delay is also present when zooming or dragging a zoomed view so overall performance is still poor. What might also be noteworthy is that the performance is exactly the same regardless whether image quality is set to best or worst and whether two pass rendering is enabled or not.
Even though the improvement to 3.2 is huge, I would suggest to reopen this until performance gets anywhere near 2.9.
Shallrath commentedon Sep 29, 2026
@caclark What do you think about repoening this one? Despite the large improvement to 3.2, performance is still poor compared to 2.9 and other viewers, especially zooming and panning are still too slow to be usable.
caclark commentedon Sep 30, 2026
@Shallrath
Is the delay on all file types?
Try turning off/changing anything that may affect the display speed e.g. thumbnail create, exif rotation, preload next image, two-pass render, initial zoom setting, tile size etc.
Can you upload a test image that is particularly slow?
caclark commentedon Sep 30, 2026
@Shallrath
Ignore my previous post. There is a new commit that seems to improve speed. Please try that first.
Shallrath commentedon Oct 5, 2026
I am just trying Geeqie 3.3 and the performance increase is huge again. Zoom actions are now delayed for maybe 0.5 seconds and panning seems to render with a guessed 20 fps with the exception that parts of the image that were previously invisible (dragging them in from outside the screen) are black and are then rendered for about a full second until they appear again.
Performance-wise, Geeqie 3 has become usable now.
Just one more 10x performance increase and it could compete with 2.9.
caclark commentedon Oct 5, 2026
This clip shows what I see:
Screencast.From.2026-10-05.19-32-34.mp4
Shallrath commentedon Oct 5, 2026
This how I see it. Interestingly, sometimes small blocks are being rendered while dragging and sometimes rendering only takes place when the dragging stopped.
2026-10-05.21-25-20-1.mp4
Shallrath commentedon Nov 2, 2026
Performance has increased significantly in 3.4.
I think it's enough even though it's still slower than 2.9 where the rendering was so fast that I couldn't even watch it render.
caclark commentedon Nov 3, 2026
@Shallrath
Please compare these suggestions with your settings:
Bilinear is also the GdkPixbuf-recommended default; nearest-neighbor gives poor results when shrinking photographs.
dkogan commentedon Nov 16, 2026
Hello. I'm seeing similar things probably. I'm on Debian. X11. Comparing a build from latest git (807068c) and geeqie in Debian/trixie (2.5). Looking at a directory of large jpg photos geeqie 2.5 can move between images and zoom in/out instantly. The geeqie from git today stutters and is much slower. Due to #2782 I'm using the mouse wheel to zoom.
The options are all default,except I'm using nearest-neighbor scaling. I don't think the
GSK_...environment settings do anything here. Happy to run any specific experiments.Thanks