Desktop: Switch to immediate frame present mode on Mac (#3495)

* mac immediate render mode

* fix key modifier flags on mac
This commit is contained in:
Timon
2025-12-21 20:14:47 -08:00
committed by GitHub
parent 123108c813
commit f705d0080d
2 changed files with 35 additions and 2 deletions
+4 -1
View File
@@ -37,10 +37,13 @@ impl RenderState {
format: surface_format,
width: size.width,
height: size.height,
#[cfg(not(target_os = "macos"))]
present_mode: surface_caps.present_modes[0],
#[cfg(target_os = "macos")]
present_mode: wgpu::PresentMode::Immediate,
alpha_mode: surface_caps.alpha_modes[0],
view_formats: vec![],
desired_maximum_frame_latency: 2,
desired_maximum_frame_latency: 1,
};
surface.configure(&context.device, &config);