Skip to content

Commit 3294619

Browse files
committed
Skia/WGPU: Enable vsync by default
Apply commit ae204bd also to the wgpu surface of the skia renderer. cc #8693
1 parent c5ff907 commit 3294619

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/renderers/skia/wgpu_26_surface.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ impl super::Surface for WGPUSurface {
100100

101101
let mut surface_config = self.surface_config.borrow_mut();
102102

103+
// Prefer FIFO modes over possible Mailbox setting for frame pacing and better energy efficiency.
104+
surface_config.present_mode = wgpu::PresentMode::AutoVsync;
103105
surface_config.width = size.width;
104106
surface_config.height = size.height;
105107

0 commit comments

Comments
 (0)