1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Revert #8103: low-latency by default (#8167)

## 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:
Emil Ernerfeldt
2026-05-18 14:06:28 +02:00
committed by GitHub
parent e204717b1d
commit 66d9702c28

View File

@@ -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
},
};