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

Fix Issues : Unexpected Monitor Behavior When Resizing with wgpu on Windows. #5213

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update run.rs
  • Loading branch information
rustbasic authored Oct 3, 2024
commit eb1812a4352945cfbe7983fa2f5843c218fc1de1
2 changes: 1 addition & 1 deletion crates/eframe/src/native/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ impl<T: WinitApp> WinitAppWrapper<T> {
if cfg!(target_os = "windows") {
if let Ok(EventResult::RepaintNow(window_id)) = event_result {
log::info!("RepaintNow of {window_id:?}",);
self.windows_next_repaint_times.insert(window_id, now);

// Fix flickering on Windows, see https://github.com/emilk/egui/pull/2280
event_result = self.winit_app.run_ui_and_paint(event_loop, window_id);

self.windows_next_repaint_times.insert(window_id, now);
now = Instant::now();
}
}
Expand Down
Loading