mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Fix egui-wgpu performance regression (#3580)
Introduced in the recent multi-viewports work, we accidentally recreated the wgpu surfaces every frame. This is now fixed. I found this while improving the profiling of `eframe`
This commit is contained in:
@@ -52,9 +52,9 @@ impl EguiGlow {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn on_event(&mut self, event: &winit::event::WindowEvent<'_>) -> EventResponse {
|
||||
pub fn on_window_event(&mut self, event: &winit::event::WindowEvent<'_>) -> EventResponse {
|
||||
self.egui_winit
|
||||
.on_event(&self.egui_ctx, event, ViewportId::ROOT)
|
||||
.on_window_event(&self.egui_ctx, event, ViewportId::ROOT)
|
||||
}
|
||||
|
||||
/// Call [`Self::paint`] later to paint.
|
||||
|
||||
Reference in New Issue
Block a user