Skip to content

Commit

Permalink
Remove unnecessary redraw request
Browse files Browse the repository at this point in the history
This was particularly visible on Redox where there is no vsync, but also 
causes unnecessary redraws on Linux
  • Loading branch information
jackpot51 committed Feb 9, 2024
1 parent 484ac7b commit 8b7b0bf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions winit/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,6 @@ async fn run_instance<A, E, C>(
mouse_interaction = new_mouse_interaction;
}

window.request_redraw();

redraw_pending = false;

let physical_size = state.physical_size();
Expand Down

0 comments on commit 8b7b0bf

Please sign in to comment.