mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
## Related * https://github.com/emilk/egui/issues/8043 * Introduced in #8103 ## What I noticed resizing the native winit window was really choppy and bad on macOS, and this was the readon
This commit is contained in:
@@ -86,10 +86,14 @@ impl SurfaceConfig {
|
||||
/// Good default for GUIs with very little (or no) extra GPU work.
|
||||
pub const LOW_LATENCY: Self = Self {
|
||||
present_mode: wgpu::PresentMode::AutoVsync,
|
||||
|
||||
#[expect(clippy::branches_sharing_code)]
|
||||
desired_maximum_frame_latency: if cfg!(target_os = "ios") {
|
||||
None // The default is good on iOS, while `Some(1)` cuts FPS in half
|
||||
} else {
|
||||
Some(1) // Low-latency by default.
|
||||
// TODO(emilk): We would like yo use `Some(1)` here, but
|
||||
// that causes bugs when resizing the window on macOS.
|
||||
None
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user