Skip to content

Commit

Permalink
Disable VSync, it slows things down
Browse files Browse the repository at this point in the history
  • Loading branch information
twvd committed Nov 5, 2023
1 parent 6408913 commit 70196e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/sdl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl Renderer for SDLRenderer {
.position_centered()
.build()?;

let canvas = window.into_canvas().accelerated().present_vsync().build()?;
let canvas = window.into_canvas().accelerated().build()?;
let texture_creator = canvas.texture_creator();
let texture = texture_creator.create_texture_streaming(
PixelFormatEnum::RGB888,
Expand Down

0 comments on commit 70196e2

Please sign in to comment.