Skip to content

Commit

Permalink
update SurfaceConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
s5suzuki committed Jan 3, 2025
1 parent fc9711c commit 29df2bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions simulator/src/renderer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ impl Renderer {
width,
height,
present_mode: if state.vsync {
wgpu::PresentMode::Fifo
wgpu::PresentMode::AutoVsync
} else {
wgpu::PresentMode::Immediate
wgpu::PresentMode::AutoNoVsync
},
desired_maximum_frame_latency: 2,
desired_maximum_frame_latency: 0,
alpha_mode: swapchain_capabilities.alpha_modes[0],
view_formats: vec![wgpu::TextureFormat::Bgra8UnormSrgb],
};
Expand Down

0 comments on commit 29df2bc

Please sign in to comment.