Skip to content

Geeqie 3.0 and 3.1 are very slow in loading images #2531

Open

Description

@x3x7

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?

Activity

  1. changed the title [-]Geeqie 3.0 and 3.1 is very slow in loading images[/-] [+]Geeqie 3.0 and 3.1 are very slow in loading images[/+] on Aug 7, 2026
  2. x3x7 commented on Aug 7, 2026

    @x3x7
    Author

    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...

  3. x3x7 commented on Aug 7, 2026

    @x3x7
    Author

    I tested with different GSK renderer:

    GSK_RENDERER=gl geeqie
    GSK_RENDERER=vulkan geeqie
    GSK_RENDERER=cairo geeqie
    

    About same behavior, the vulkan option was very slow.

  4. x3x7 commented on Aug 7, 2026

    @x3x7
    Author

    I tried using the development GTK4 version 4.23.3. With such build Geeqie 3.1 is dumping core at startup.

  5. caclark commented on Aug 7, 2026

    @caclark
    Collaborator

    You should have:
    Configuration
    execinfo : stacktrace supported:
    YES

    There should be a backtrace when there is a crash.

    I have
    pkg-config --modversion gtk4
    4.22.4

  6. x3x7 commented on Aug 7, 2026

    @x3x7
    Author

    I had "stacktrace supported: YES" in my builds. No visible backtrace though.

  7. caclark commented on Aug 7, 2026

    @caclark
    Collaborator

    Try
    meson setup -Dbuildtype=debug build

    etc
    then geeqie --debug=4

  8. x3x7 commented on Aug 8, 2026

    @x3x7
    Author

    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
    ...

  9. x3x7 commented on Aug 8, 2026

    @x3x7
    Author

    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.

  10. froloffw7 commented on Aug 8, 2026

    @froloffw7

    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.

  11. caclark commented on Aug 8, 2026

    @caclark
    Collaborator

    I fed some of @froloffw7 's comments into Codex, which provided some headache-inducing suggestions:

    2531-1.md

  12. Shallrath commented on Aug 9, 2026

    @Shallrath

    15 seconds to render a 12 Megapixel phone photo on an i7-6700 with GTX1070.

  13. x3x7 commented on Aug 10, 2026

    @x3x7
    Author

    @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.

  14. caclark commented on Aug 10, 2026

    @caclark
    Collaborator

    @x3x7
    Is there any obvious part of the .config/geeqie directory contents that might be an influence?

  15. 8 remaining items

  16. x3x7 commented on Aug 20, 2026

    @x3x7
    Author

    In my test I have used the same images as with version 3.1. There is a thumbnail cache at ~/.cache/geeqie/thumbnails but that is empty.

    Is there a full image cache that speeds up the decoding?

  17. caclark commented on Aug 20, 2026

    @caclark
    Collaborator

    @x3x7

    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.

  18. x3x7 commented on Aug 21, 2026

    @x3x7
    Author

    @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.

  19. Shallrath commented on Sep 24, 2026

    @Shallrath

    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.

  20. Shallrath commented on Sep 29, 2026

    @Shallrath

    @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.

  21. caclark commented on Sep 30, 2026

    @caclark
    Collaborator

    @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?

  22. caclark commented on Sep 30, 2026

    @caclark
    Collaborator

    @Shallrath

    Ignore my previous post. There is a new commit that seems to improve speed. Please try that first.

  23. Shallrath commented on Oct 5, 2026

    @Shallrath

    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.

  24. caclark commented on Oct 5, 2026

    @caclark
    Collaborator

    This clip shows what I see:

    Screencast.From.2026-10-05.19-32-34.mp4
  25. Shallrath commented on Oct 5, 2026

    @Shallrath

    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
  26. Shallrath commented on Nov 2, 2026

    @Shallrath

    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.

  27. caclark commented on Nov 3, 2026

    @caclark
    Collaborator

    @Shallrath

    Please compare these suggestions with your settings:

    Preference Suggested value Effect
    Image → Quality Bilinear Good balance of scaling quality and speed.
    Image → Two pass rendering Off initially Renders at final quality directly, avoiding a rough preview followed by refinement. Try On if large images feel slow to appear.
    Image → Tile size 256 pixels A reasonable starting point for reducing tile-processing overhead. Default is 128; larger tiles can delay initial drawing. Requires restart.
    General → Display tile cache per image 64 MiB, or 128 MiB for high-resolution displays Helps reuse rendered areas when panning. Larger values consume more memory per image view.
    General → Decoded image cache size 512 MiB, if RAM permits Helps switching between recently viewed images without decoding again. Consider 1024 MiB for large photographs and ample RAM.
    General → Preload nearby images On Prepares images before you navigate to them.
    General → Images to preload 4 Sensible starting point; reduce to 1–2 if background decoding causes contention.
    Image → Nearest-neighbor above 200% Off for photographs Turn On for examining individual pixels; enlarged images look deliberately blocky.
    Color management Enabled, with appropriate profiles Preserves accurate color, although correction adds processing work.
    EXIF automatic rotation Enabled Keeps photographs correctly oriented.
    General → JPEG decode memory limit 1024 MiB A safety limit, not a speed control. Increase only when needed for unusually large JPEGs.

    Bilinear is also the GdkPixbuf-recommended default; nearest-neighbor gives poor results when shrinking photographs.

  28. dkogan commented on Nov 16, 2026

    @dkogan

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions