Skip to content

Commit

Permalink
Add a render thread
Browse files Browse the repository at this point in the history
The default event loop on winit, at least on Windows is too slow. See
rust-windowing/winit#2782
  • Loading branch information
fredizzimo authored and crupest committed Nov 4, 2023
1 parent 66c5edb commit 2a3b6b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/window/window_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ impl WinitWindowWrapper {
Event::WindowEvent {
event: WindowEvent::ScaleFactorChanged { scale_factor, .. },
..
} => {
}
| Event::UserEvent(UserEvent::ScaleFactorChanged(scale_factor)) => {
self.handle_scale_factor_update(scale_factor);
}
Event::WindowEvent {
Expand Down

0 comments on commit 2a3b6b0

Please sign in to comment.