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

Intense WM_PAINT msg in thread_event_target_callback #2367

Open
wusyong opened this issue Jul 7, 2022 · 0 comments · May be fixed by #2371
Open

Intense WM_PAINT msg in thread_event_target_callback #2367

wusyong opened this issue Jul 7, 2022 · 0 comments · May be fixed by #2371
Labels
B - bug Dang, that shouldn't have happened DS - windows

Comments

@wusyong
Copy link
Contributor

wusyong commented Jul 7, 2022

I encounter a delayed mouse interaction when using webview2 with winit.
Here's the branch to reproduce: https://github.com/tauri-apps/wry/tree/winit-reproduce
Run cargo r --example hello_world and press any tab or list constantly will find it gets a few seconds delay.

I found if we reduce RedrawWindow calls in thread_event_target_callback, it can resolve this issue.
Could we just call RedrawWindow only when thread_event_target_callback need to handle the message instead of calling RedrawWindow no matter what?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B - bug Dang, that shouldn't have happened DS - windows
Development

Successfully merging a pull request may close this issue.

2 participants