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

Webview2 runtime performance issues #275

Closed
lucasfernog opened this issue May 18, 2021 · 6 comments
Closed

Webview2 runtime performance issues #275

lucasfernog opened this issue May 18, 2021 · 6 comments
Labels
platform: Windows status: waiting Waiting for a response or another PR type: bug

Comments

@lucasfernog
Copy link
Member

Describe the bug
The WRY implementation has a few issues regarding the webview2 runtime usage (Windows):

  • There's no way to know if an async code finished running, so it uses a hack code that delays app initialization a couple seconds:
    // Wait until webview is actually created
  • We've seen some performance issues on the latest webview2 runtime (version 90.0.818.62). A basic tauri application needed 5~ seconds to load a page, and reloads are also affected.

Steps To Reproduce
Clone the WRY or Tauri repo, and run one of the examples.

Expected behavior
The app loads as fast as possible. The loading is excellent on Linux/macOS.

Videos

Videos from @tensor-programming

webview.mp4
lag.mp4
@tensor-programming
Copy link
Member

It seems that Microsoft is aware of the speed deficiency with the current evergreen runtime. As far as the other issue is concerned, its a matter of figuring out a method to deal with the async calls and not block the main thread.

@Boscop
Copy link

Boscop commented May 18, 2021

The initial load time is very annoying during development when the backend is restarted often (e.g. with cargo-watch).
I opened an upsteam issue here: MicrosoftEdge/WebView2Feedback#1298

@Beanow
Copy link
Member

Beanow commented May 18, 2021

The multiwindow example is most pronounced here. Comparing vs linux on today's dev branch.

Screencast.2021-05-18.23.36.12.mp4
Screencast.2021-05-18.23.42.06.mp4

@tensor-programming
Copy link
Member

lag.mp4

Heres an example of the multiwindow from my side.

@nothingismagick
Copy link
Member

@wusyong
Copy link
Member

wusyong commented Jun 29, 2021

I just realized #315 actually fixed this issue. Lucas also confirmed that.
If it holds the same after patch version, I think we can close this issue.

@wusyong wusyong closed this as completed Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Windows status: waiting Waiting for a response or another PR type: bug
Projects
None yet
Development

No branches or pull requests

6 participants