illixion / vscode-vibrancy-continued

Enable Acrylic/Glass effect for your VS Code.
MIT License
516 stars 27 forks source link

[Bug]: Mouse drag lag. Any other ways to avoid this? #52

Open mkanet opened 1 year ago

mkanet commented 1 year ago

Is there an existing issue for this?

Current Behavior

My apologies. I am aware of the mouse drag lag issue. The old Vibrancy Extension had found a GREAT fix for bug; which I'm currently using. However, after if I upgrade from VSCode 1.56.2 to a newer version, it doesn't work anymore.

Is there any hope for this extension without mouse drag lag? This is the main reason why I stopped using Vibrancy. Hopefully, you can find a new way to do this.

Expected Behavior

No mouse drag lag

Steps To Reproduce

  1. Move VSCode window by dragging it with a mouse cursor.

Environment

- OS:
- VSCode:
- Extension:

Anything else?

No response

illixion commented 1 year ago

I haven’t been able to reproduce this issue on any of my devices, so I’ll need a bit more info to troubleshoot this.

What OS and version are you using? If it’s Windows 10/11, go to Settings → System → About to check.

Additionally, what is your display configuration? I’m curious about the amount of displays and refresh rates specifically.

mkanet commented 1 year ago

@illixion thank you so much for responding so quickly! This issue happens on both of my PC's (all major Windows 10 versions I've tried):

1903 1909 2004 20H2 21H1 22H2

My PC configurations:

PC1: 3 monitors: Monitor1: 2560x1440 @60Hz Monitor2: 1280x720 @60Hz Monitor3: 1280x720 @60Hz

PC2: 2 monitors: Monitor1: 1920x1080 @60Hz Monitor2: 1920x1080 @60Hz

I also made a customized Vibrancy Extension: MKANET Theme V2 which has no weird issues at all.. as long as I use VSCode Verson 1.56.2 or earlier.

Please let me know if there's anything else I can provide.

illegitimate-egg commented 10 months ago

https://github.com/illixion/vscode-vibrancy-continued/assets/63966843/067ecba4-61f2-4c72-99e8-012751f21673

Windows 10 22H2 build 19045.3324 1920x1080 @144Hz

mkanet commented 10 months ago

2023-09-04.20-35-18.mov Windows 10 22H2 build 19045.3324 1920x1080 @144hz

Looks like you're also having the same issue.

illegitimate-egg commented 10 months ago

Yeah

mkanet commented 10 months ago

I'm still using VSCode 1.56.2 with the older version of Vibrancy Extension since that was the last version of VSCode that didn't have any issues at all. It works flawlessly.

mkanet commented 10 months ago

VSCode Version: 1.56.2 Extension: MKANET Theme V2 1920x1080p 60Hz

https://github.com/illixion/vscode-vibrancy-continued/assets/811008/7e9fdb82-2f48-419f-a042-fd98c98d74a9

illixion commented 10 months ago

@illegitimate-egg I feel like I've seen this pattern of window movement before, specifically in cases where my GPU was struggling. Could you please clarify which kind of GPU you're using, and if it's integrated or dedicated?

I've also found this article that seems like it could help, especially since this seems to only occur in certain configurations: https://old.reddit.com/r/Windows11/comments/pj4fi8/fix_for_windows_dragging_lag_applies_to_windows/

There was a "Windows 10 fix" in Vibrancy that was disabled a while ago as it was causing issues with window snapping, I've compiled a VSIX with it restored, so you could try it and let me know if it resolves the issue for you: vscode-vibrancy-continued-1.1.20.vsix.zip

To install, simply go to the Extensions page and under the triple-dot menu, choose "Install from VSIX..." and select the decompressed file.

illegitimate-egg commented 10 months ago

It's a dedicated GeForce GTX 1650, it shouldn't choke over moving a blurring window. After checking for IRQ overlap, the GPU overlaps with the PCIe Controller (which makes sense) and also the Motherboard's audio controller which is disabled, either way, I doubt the audio controller would start firing off IRQ 16 when I move a window.

The VSIX loads and installs, but transparency doesn't actually work (?) which is strange. VSCode looks exactly the same despite the plugin reload I did.

mkanet commented 10 months ago

@illixion OMG Thank you!!! I just tried vscode-vibrancy-continued-1.1.20.vsix.zip. It actually works without any weird issues! I can confirm it works correctly with VSCode 1.81.1 (user setup). This is the first time I've seen the blur transparency effect on VSCode Versions: >1.56.2 without any weird issues. I have had this issue since the original Vibrancy extension. You finally fixed it! Please update the official extension with this specific version of the extension. It works very well from what I've tested so far.

There is no mouse lag or instability when dragging, moving, resizing!

I can close this issue once we've confirmed this also works for other people.

@illegitimate-egg can you please try completely disabling your current VSCode extention that you have installed. Then completely uninstall VSCode and install it again. Then install the extension: vscode-vibrancy-continued-1.1.20.vsix.zip via the VSCode Extensions page and under the triple-dot menu, choose "Install from VSIX..." and select the file and tell it to install the extension and restart when instructed.

CryptokidFH commented 4 months ago

I am also still experiencing this issue with my own setup: Monitor 1: 144hz Monitor 2: 60hz GTX 1080Ti VSCode: 1.85.2 Windows 10; Version 22H2; Build 19045.4046

I tried installing the vsix package of vibrancy above, but after reloading the extension and enabling the acrylic again, I still experience the issue with window movement lag. I'm not sure if its of any note, but I don't have any lag when resizing, only when moving the window around.