winit
winit copied to clipboard
Intense `WM_PAINT` msg in `thread_event_target_callback`
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?