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

Problem drag, move window by Title Bar #5

Open
racoonx2p opened this issue Jul 19, 2019 · 20 comments
Open

Problem drag, move window by Title Bar #5

racoonx2p opened this issue Jul 19, 2019 · 20 comments

Comments

@racoonx2p
Copy link

@racoonx2p racoonx2p commented Jul 19, 2019

Hello,

There seems to be a bug with moving window in Windows 10. After disabling vibrancy and restart VSC moving window works as expected.

b5IPZOAbeZ

Btw. Thank you very much for this plugin. I really appreciate it.

@EYHN

This comment has been minimized.

Copy link
Owner

@EYHN EYHN commented Jul 20, 2019

Thanks for feedback and very sorry. I don't know how to fix this. I think this is a bug in windows.

@TTTPOB

This comment has been minimized.

Copy link

@TTTPOB TTTPOB commented Jul 23, 2019

I have run into this problem too

@syfxlin

This comment has been minimized.

Copy link

@syfxlin syfxlin commented Aug 2, 2019

The acrylic effect will have a drag delay on the Electron window. If you use blur behind or transparent gradient, it will not appear.

@EYHN

This comment has been minimized.

Copy link
Owner

@EYHN EYHN commented Aug 2, 2019

In fact, I have never seen such problem in windows 10 1809.

@syfxlin

This comment has been minimized.

Copy link

@syfxlin syfxlin commented Aug 2, 2019

This problem occurs in Windows 1903 and I don't know if it only appears in this version. (In fact, some interface errors have appeared in Windows 1903.)

@mkanet

This comment has been minimized.

Copy link

@mkanet mkanet commented Aug 3, 2019

I've only tried this on Windows 1903. Has anyone tried this extension on newer Insider versions of Windows? Interestingly, this issue doesn't seem to affect GPU or CPU usage.

@Himself65

This comment has been minimized.

Copy link

@Himself65 Himself65 commented Aug 3, 2019

I'm 1903 too and face this problem

@huyinjie

This comment has been minimized.

Copy link

@huyinjie huyinjie commented Aug 3, 2019

Same problem on 1903

@copperion

This comment has been minimized.

Copy link

@copperion copperion commented Aug 3, 2019

Same problem

@CircuitLord

This comment has been minimized.

Copy link

@CircuitLord CircuitLord commented Aug 3, 2019

+1

@gamesgao

This comment has been minimized.

Copy link

@gamesgao gamesgao commented Aug 5, 2019

Same problem on 1903

@AmrBinBashir

This comment has been minimized.

Copy link

@AmrBinBashir AmrBinBashir commented Aug 8, 2019

Appears to be 1903 issue as I have no problem on 1809

@Sominemo

This comment has been minimized.

Copy link

@Sominemo Sominemo commented Aug 13, 2019

+1

@EYHN

This comment has been minimized.

Copy link
Owner

@EYHN EYHN commented Aug 14, 2019

In #14 v1.0.6. The mouse lag still exists, I have tried many methods, and I can't solve the problem in 1903.

The problem is not in electron, and there is currently no perfect way to open the acrylic effect without UWP in 1903.

The mouse lag still exists in the latest Windows 10 insider preview.

@mkanet

This comment has been minimized.

Copy link

@mkanet mkanet commented Aug 14, 2019

Thanks for taking the time to look into this @EYHN. I wonder if there's a way to fool Windows into thinking VSCode/Electron is a UWP app.

@I0F

This comment has been minimized.

Copy link

@I0F I0F commented Aug 16, 2019

I just came here to report this problem. Somewhat glad I'm not the only one having it.

On my pc at work, somewhat decent specs, Windows 1809 - moves with no lag whatsoever.
On my home pc, much better specs, Windows 1903, laggy as hell.

@EYHN

This comment has been minimized.

Copy link
Owner

@EYHN EYHN commented Sep 7, 2019

Many days have passed and this problem still there.
I have push the native code for windows at https://github.com/EYHN/vscode-vibrancy/tree/master/src/blur-cli .
Maybe you can help me if you know very well about windows

@EYHN

This comment has been minimized.

Copy link
Owner

@EYHN EYHN commented Oct 18, 2019

news: In window 10 1903, I found that reducing the "mouse rate" below the frame rate can effectively solve this problem.

@EYHN

This comment has been minimized.

Copy link
Owner

@EYHN EYHN commented Oct 26, 2019

I spent a few days researching this problem, and now I give up. It seems to be a problem inside DWM, the mouse polling rate is higher than the screen rate, causing the rendering request to block in the queue, and it looks like a mouse delay.

Don't worry, the same problem also appears in the Microsoft Office, thousands of Windows users are troubled by it, the following are some discussion:

https://answers.microsoft.com/en-us/msoffice/forum/all/why-does-my-excel-window-lag-so-much-when-moved/04b1fb97-b9da-481e-b37a-63257460c5b7

https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/windows-10-mouse-lag-sluggish-window-dragging-in/12ab88a5-9e13-4d37-8f2d-106d56fcd775

There are now some methods:

  • Use Windows 10 1809 and wait for Microsoft to fix the problem
  • Close 'Show window contents while dragging'
    In the search box on the taskbar, type 'performance', then select 'Adjust the appearance and performance of Windows' in the list of results. On the 'Visual Effects' tab, Un-selecting 'Show window contents while dragging'.
  • Reduce mouse polling rate
    In many gaming mouse driver panels can adjust the mouse polling rate.

  I will also provide a transparent only version, removing blur and compatibility with all operating systems and environments.


我花了好几天研究这个问题,现在我放弃了。看来是DWM内部的问题,鼠标回报率高于屏幕刷新率导致渲染请求阻塞在队列里,看起来就像鼠标延迟一样。

不要担心,同样的问题还出现在Office软件中,上千Windows用户受到其困扰,以下是一些讨论:

https://answers.microsoft.com/en-us/msoffice/forum/all/why-does-my-excel-window-lag-so-much-when-moved/04b1fb97-b9da-481e-b37a-63257460c5b7

https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/windows-10-mouse-lag-sluggish-window-dragging-in/12ab88a5-9e13-4d37-8f2d-106d56fcd775

现在有几种备用方法:

  • 使用 Windows 10 1809,然后等待微软修复问题
  • 关闭 “拖动时显示窗口内容”
    在任务栏搜索性能,选择 “调整 Windows 外观和性能”, 在 “视觉效果” 选项卡关闭 “拖动时显示窗口内容”
  • 降低鼠标回报率
    一般游戏鼠标驱动面板都可以调整鼠标回报率

之后我还会提供一个仅透明版本,去掉模糊效果并兼容所有操作系统和桌面环境。

@quank123wip

This comment has been minimized.

Copy link

@quank123wip quank123wip commented Feb 18, 2020

@EYHN I think I found a solution.
In another electron app Terminus, they provide a setting "background type", and two type "Blur" and "Fluent", it calls a function this.electron.ipcRenderer.send('window-set-vibrancy', enable, type), and I found that "Fluent" works lag but "Blur" works well. I don't know how this.electron.ipcRenderer.send('window-set-vibrancy', enable, type) works, but I think this is a solution before MS fix it in DWM.

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

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.