-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Xlib clipboard/selection requests do not play well with the powersave FPS-cap #39422
Comments
I tried commenting out this line and it makes the sluggishness moderately less sluggish, but only moderately. |
This may be unrelated, but I noticed that pasting the clipboard can take a very long time in other applications, if the current clipboard data comes from Godot. (Tested on Godot 3.2.1 running KDE on Fedora 31.) |
It very likely is related. I called this in a terminal
then caused the issue. It fixes itself when xclip is done. It is kind of a regression, it was introduced apparently in ac14efc I say |
I would really prefer keeping the FPS cap when the window is unfocused (think of the laptops). We should try to find another fix for this, such as running a loop dedicated to the clipboard that's not affected by any FPS limit. |
This section of code gets executed multiple times (around 8) each time a paste is attempted, either via ctrl+v or via middle-click (even autoscrolling middleclick). godot/platform/linuxbsd/display_server_x11.cpp Lines 2858 to 2918 in d3c10e8
|
but yes I think it takes some guru to fix this one |
Godot version:
Godot Engine v3.2..2.beta.custom_build.aa57bb047
aa57bb0
Edit: kind of a regression (see #39422 (comment) ). Introduced in ac14efc.
Or instead of decoupling, make the part that deals with selections and clipboards more efficient somehow? Xlib is not very enjoyable to deal with.
OS/device including version:
Linux
Issue description:
For me, the page in firefox keeps scrolling for around a second before stopping scrolling.
This issue persists until I select some text in firefox. After that, scrolling stops immediately upon release again.
Steps to reproduce:
The reticle lags behind for a second or so, long after the middleclick was released
In order to "fix it", select some text in Firefox. This fixes it until the above steps are repeated again.
The text was updated successfully, but these errors were encountered: