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

[BUG] Rendering lags badly while resizing Acrylic window #28

Open
dietrich-stein opened this issue Sep 30, 2023 · 1 comment
Open

[BUG] Rendering lags badly while resizing Acrylic window #28

dietrich-stein opened this issue Sep 30, 2023 · 1 comment

Comments

@dietrich-stein
Copy link

Using Windows 10 Home and compiling "electron": "26.2.2" with "mica-electron": "^1.5.1" there is so much lag while resizing an acrylic window that it feels broken.

Rather than trying to make it composite faster, the usual fix is to revert to rectangles while resizing. However, I really like what this person managed to pull off as their solution:

https://github.com/wangwenx190/Win32Acrylic/blob/main/Win32/MainWindow.cpp#L144

In a nutshell, using the main window loop, while resizing we receive WM_ENTERSIZEMOVE and it set the blur parameter to the faster ACCENT_ENABLE_BLURBEHIND. When resizing finishes we receive WM_EXITSIZEMOVE and revert it back to ACCENT_ENABLE_ACRYLICBLURBEHIND.

I didn't see anything in dwmExec.cc to suggest that this might be trivial. But, it would be super nice to have some kind of solution.

@GregVido
Copy link
Owner

Hi, thanks for reporting this bug, I'll take a closer look at it next weekend because I'm very busy at the moment, sorry!

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

2 participants