Bug 440807 - Big performance penalty when reloading an animated GIF in gwenview
Summary: Big performance penalty when reloading an animated GIF in gwenview
Status: RESOLVED WORKSFORME
Alias: None
Product: gwenview
Classification: Applications
Component: general (other bugs)
Version First Reported In: 21.04.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-09 19:14 UTC by Frank Steinmetzger
Modified: 2025-07-09 13:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
A tiny demo GIF with which to visibly reproduce the issue (4.64 KB, image/gif)
2021-08-09 19:14 UTC, Frank Steinmetzger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Steinmetzger 2021-08-09 19:14:48 UTC
Created attachment 140619 [details]
A tiny demo GIF with which to visibly reproduce the issue

SUMMARY
I was experimenting with creating an animated GIF and played around with the frame delays. But playback did not seem to follow my GIF creation settings.

As it turned out, playback speed becomes lower and lower with every time I press F5 on the image.

STEPS TO REPRODUCE
- View the example GIF I quickly made up of an icon from my system.
- Press F5 to reload the image.

OBSERVED RESULT
According to KDE's task manager, Gwenview’s CPU load was at 6 % for even this tiny GIF.
When reloading a few times, CPU load goes up and playback quickly slows down, even before CPU load hits 25 % (one core saturated). This is easily visible due to the high original framerate of the GIF.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Kernel Version: 5.13.5-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-4590 CPU @ 3.30GHz
Memory: 31.0 GiB of RAM
Graphics Processor: AMD PITCAIRN
Comment 1 Frank Steinmetzger 2021-08-09 19:20:37 UTC
Extra note: Dolphin has been showing a preview of the arrow animation the whole time, and it shows no significant CPU load. The same when previewing the bigger GIF that I was working on originally (640x320 at 25 fps).
Comment 2 Bojidar Marinov [:bojidar-bg] 2025-07-09 11:17:21 UTC
I think I failed to reproduce this issue on:

Gwenview: 25.04.3
KDE Frameworks: 6.15.0
Qt: Using 6.9.1 and built against 6.9.1
Arch Linux (Wayland)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.15.5-arch1-1

Playing the gif file in Gwenview does take more CPU time than playing it in Dolphin, but reloading the attached gif file in Gwenview does not seem much slower than reloading e.g. a png file.
Comment 3 Frank Steinmetzger 2025-07-09 13:08:05 UTC
I retried it on my 9 years old laptop and indeed I can’t see any slowdown now. Core load on the i5-5200U stays low even after dozens of reloads.