Bug 442876 - Spectacle is quite slow in taking screenshots
Summary: Spectacle is quite slow in taking screenshots
Status: REPORTED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 21.08.1
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-24 06:42 UTC by Riccardo Robecchi
Modified: 2024-03-28 18:37 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Riccardo Robecchi 2021-09-24 06:42:48 UTC
SUMMARY
Spectacle has become quite slow in taking screenshots, so that taking one of e.g. a specific frame of a video becomes quite difficult.

STEPS TO REPRODUCE
1. Press the "print screen" key.

OBSERVED RESULT
There is a significant delay in taking the screenshot.

EXPECTED RESULT
The screenshot is taken immediately.

SOFTWARE/OS VERSIONS
Linux: KDE neon
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Comment 1 Forest 2022-07-17 21:10:47 UTC
I tried setting desktop animation speed to "instant" and disabling compositing, but screen shots still have a painful delay after I press the keyboard shortcut.

It was effectively instant when I used Xfce. This lag makes the KDE's screen shot feature mostly useless for gaming and video.
Comment 2 Forest 2022-07-17 21:19:05 UTC
I measured the lag at about 1/3 of a second, which is a lot of lost frames.

Method: Pressing Kronometer's Start key and Spectacle's Capture Active Window key at the same time. This was on an idle system with ~4 GHz CPU, an SSD, and both apps recently used (and therefore probably cached in RAM).
Comment 3 QeMXA2JNeU.bugs.kde.org 2023-05-04 09:11:34 UTC
I also noticed this.
In fact even simple things like displaying the version take alot of time and taking a screenshot a whopping 2s.

LOG:
$ time spectacle --version
spectacle 23.04.0
spectacle --version  0,77s user 0,28s system 93% cpu 1,122 total

# Take fullscreen screenshot in background to clipboard
$ time spectacle -b -c -f          
spectacle -b -c -f  2,05s user 0,31s system 51% cpu 4,614 total

SOFTWARE/OS VERSIONS
Linux: EndeavourOS
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Graphics Platform: Wayland
Comment 4 Amir 2024-03-28 18:37:59 UTC
Note that this is still happening with KDE 6.