-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Poor performance when using gui to snip while running GPU accelerated programs #1911
Comments
Is this a recent change or has it always been an issue. Since we had two reports this week from arch users I wonder if there was an upstream change. |
I want to say it's been an issue for a while, but I haven't used flameshot for more than a couple of months so I don't have a huge amount of confidence in that statement. Definitely a couple of weeks at least, I intended to make this report last week but it completely slipped my mind. |
@borgmanJeremy is this related to the other one which you could reproduce with xrandr hack? |
Yes i think this is a duplicate. It seems to be completely related to the # of pixels and nothing to do with the GPU. In fact in investigating this I found we are completely software rendering the screen. There is a different QtOpenGLWidget type if we want to take advantage of CPU's. |
I can say for certain that my issue has been a problem since #789 at least. |
Flameshot version
Bug Description
Probably related to #1901
When running hardware accelerated programs such as discord or some games (especially both simultaneously) it is sometimes virtually impossible to take screenshots as flameshot gui will perform at below single-digit framerates, taking several seconds to darken the screen and being entirely unresponsive when trying to drag out a selection.
Specifically it will either be impossible to make a selection (can't grow more than a few pixels per second), or it'll be impossible to make a precise selection (will overshoot by continuing to grow even after mouse input has stopped)
I don't really know if flameshot is gpu accelerated or not, but the issue is consistent with gpu accelerated programs so it seems probable. This doesn't feel like it should take a huge amount of GPU power either, dump the framebuffer, copy it, tint the copy black and do some alpha masking when selecting an area.
To Reproduce
Run some gpu accelerated programs (e.g discord, in a VC with a stream and a relatively intensive game, and try to screenshot said game; sometimes it'll work, sometimes it'll be unbearably slow but I haven't managed to pinpoint the precise conditions that cause it -- notably it happens quite frequently with discord (VC, w/ stream) + warframe (proton GE 6.13), settings as high as possible while maintaining framerates above 60)
Expected behavior
I'd expect it to have at least usable performance.
System Information
inxi output:
Relevant info regarding screens (3x 4K, hence similarity to #1901):
And relevant lshw GPU info:
The text was updated successfully, but these errors were encountered: