Skip to content
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

Mouse pointers moves jumpy when hovered over skiko window #558

Closed
SergeevPavel opened this issue Jul 22, 2022 · 5 comments
Closed

Mouse pointers moves jumpy when hovered over skiko window #558

SergeevPavel opened this issue Jul 22, 2022 · 5 comments

Comments

@SergeevPavel
Copy link
Collaborator

SergeevPavel commented Jul 22, 2022

Reproducible on: Fleet and JetBrains Toolbox 1.25.12569
Platform: Windows 11
Display refresh rate: 120Hz
Not reproducible on: IntelliJ IDEA Ultimate

So it looks like a problem with Skiko or maybe JBR17
But I have no idea how some user space code can affect os mouse pointer

jumpy_mouse.mp4
@igordmn
Copy link
Collaborator

igordmn commented Jul 25, 2022

You mean laggy? :)

The issue is probably related to G-Sync. I don't know many details, but as far as I remember, it happens, if the user forcefully enables GSync in desktop mode in display settings (but I am not sure).

We tried to fix this issue, but unsuccessfully so far. It is a bug/feature of NVIDIA drivers. Even Microsoft Terminal had this issue (or still has). We found a very hacky way to fix that - show 1px Swing Component above SkiaLayer. It seems when we use OpenGL (and Swing uses it if I am not mistaken), the screen switches to the continuous mode, not adaptive. But we haven't merged it, because we hadn't found a way to make the pixel transparent :D.

@igordmn
Copy link
Collaborator

igordmn commented Jul 25, 2022

The issue in Compose

@roschlau
Copy link

@igordmn I'm seeing this problem in Fleet and Toolbox even when G-SYNC is only enabled for full screen mode:
image
I have to disable G-SYNC completely to get rid of the stutter/lagging.

@SergeevPavel
Copy link
Collaborator Author

Same bug in Libre Office https://bugs.documentfoundation.org/show_bug.cgi?id=134631

@okushnikov
Copy link

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants