-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screenshot takes 2-3 seconds to make on Ubuntu #549
Comments
What resolution are you running? |
I have 2x 1080p monitors. |
Shutter takes some seconds to load indeed. Also, the debug output is expected, see #338 But once Shutter has started and is sitting in the tray, taking screenshots should be fast, both from CLI and from GUI. |
I was hoping the issue was as simple to fix as that, but I tried, and not quite. First of all, yes I can start Then when I run the command to make a screenshot (not using the GUI), it takes a screenshot in 1 second. Still not instantaneous, but a better than 2-3 seconds. As a reminder: the delays are bad, because I can alt-tab away from the windows I wanted to make screenshots of, taking a screenshot of the thing I alt-tabbed into instead by mistake. Then as soon as the screenshot is made, |
That shouldn't happen. Could you please
|
@Photon89 That being said, I still saved the outputs: https://gist.github.com/amcsi/05ea58ed8e0490bf3a9ddce1cc54cfa8 So the situation is much better. Though there's still a ~1 second delay when making a screenshot from CLI even still. It would be really awesome if something could be done with that delay too. It appears that when making a screenshot through the GUI, the delay is even less ~500ms, which is pretty good already, but I can't achieve that using the CLI which I bound to global hotkeys. |
I think, that's because Shutter starts loading stuff when executed from CLI and only after half a second notices that an instance is already running and then connects to it. Maybe the check for an existing instance could be placed earlier in the launching routine? @DarthGandalf, any thoughts? |
Potentially this time could be decreased, but I don't know how much: CLI definitely loads too much stuff it won't use, but I can't remove some of it without breaking GUI (because of how Perl works with GLib). Likely rewriting shutter on Rust or whatever will yield more performance improvement. |
Brief summary of issue
It takes 2-3 seconds to make a screenshot with Shutter. This is a problem, because I often attempt to make a screenshot, then alt-tab to somewhere else, and then later realize that what I made a screenshot of was what I alt-tabbed into.
See lower down for a video.
Steps to reproduce the issue
shutter --full --delay=0 -e -o ~/Pictures/Screenshot_%Y-%m-%d_%H_%M_%S.png
Error output
Extra information, such as Shutter version, display server in use (Xorg or Wayland), operating system and ideas for how to solve:
0.99.2 Rev.1593
Ubuntu 22.04.2 LTS
Display Server: x11
Ideas: with all this unsolicited debug information I got, perhaps the PPA leads me to some heavily unoptimized debug build of the application?
Video:
https://user-images.githubusercontent.com/116494/220852726-a08accb3-51a5-44b0-b029-b688cd238efc.mp4
File:
https://gist.github.com/amcsi/1312272217e68857314d576105ca005a
The text was updated successfully, but these errors were encountered: