r0x0r / pywebview

Build GUI for your Python program with JavaScript, HTML, and CSS
https://pywebview.flowrl.com
BSD 3-Clause "New" or "Revised" License
4.64k stars 539 forks source link

All web engines very slow #1444

Closed EmberLightVFX closed 1 week ago

EmberLightVFX commented 1 month ago

Specification

Description

What ever web engine I use it lags a lot when I resize the window. The only engine that wasn't slow was MSHTML but as it's depricated I guess it's no good to use it. For QT I have tried both PySide2 and 6, same result CEF doesn't give any difference than the other ones For edgechromium I have made sure I have the latest WebView2 runtime installed, still slow.

Is this normal and expected? Here is a video on how it looks for me:

https://github.com/user-attachments/assets/0bb936e8-ffb0-42c4-b863-bc46d32a55b5

Practicalities

r0x0r commented 1 month ago

I do not notice any resize lag. EdgeChromium appears maybe a bit slower than MSHTML, but nothing serious on my machine. Tested with Macbook M1 via Paralells / Windows 11.

EmberLightVFX commented 1 month ago

So it doesn't look like it does in my video for you?

EmberLightVFX commented 1 month ago

I tried on my other computer and on it it's super smooth. It's just on my laptop that it's very laggy like in my video. Do you have any suggestions on what I can do to try and see what causes the lag on my laptop? I have tried reinstalling WebView2 and checked pywebview's debugging but can't see any direct difference between my two computers. Both says Using WinForms / Chromium

r0x0r commented 1 month ago

Perhaps GPU acceleration (or lack of) is the reason for lag? There is some information on the web that disabling GPU process can help some ui issues, but apparently there is no way to do it for webview2.

github-actions[bot] commented 1 week ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 week ago

The message to post on the issue when closing it. If none provided, will not comment when closing an issue.