tauri-apps / window-vibrancy

Make your windows vibrant.
Apache License 2.0
579 stars 31 forks source link

Windows Acrylic effect lag #47

Open mxcop opened 2 years ago

mxcop commented 2 years ago

I've experienced on both windows 11 and 10 that the acrylic effect causes the window to lag while moving and or resizing. This seems to be an issue that exists not only for Tauri.

I've done a little research into this, and it seems Electron had the same issue. And they managed to solve it by reducing the polling rate to the refresh rate of the monitor.

(Here is a link to the issue where this was discussed) Electron Acrylic Window (Issue 6)

I'm not sure how to apply this fix to a Tauri app, Nevertheless I thought I'd share this possible solution in case someone else does know. 😄

deminearchiver commented 10 months ago

I haven't noticed any lag on my machine. The acrylic effects runs at monitor's refresh rate just fine.

amrbashir commented 10 months ago

The effect should be working fine on Windows 11, it only affects Windows 10 iirc

arialpew commented 1 month ago

Maybe I'm missing something, but I can't get this to work in Tauri v2 with window_control on existing Tauri project.