Bug 440807 - Big performance penalty when reloading an animated GIF in gwenview
Summary: Big performance penalty when reloading an animated GIF in gwenview
Status: REPORTED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 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: 2021-08-09 19:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


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