Skip to content

Commit

Permalink
viewer: Fix missing vsync; fixes horrible lag
Browse files Browse the repository at this point in the history
  • Loading branch information
scurest committed Jul 21, 2024
1 parent 075ba9a commit 3c003d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/viewer/main_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ pub fn main_loop(db: Database, conn: Connection) {
height: super::WINDOW_HEIGHT as f64
});
let context_builder = glutin::ContextBuilder::new()
.with_depth_buffer(24);
.with_depth_buffer(24)
.with_vsync(true);
let events_loop = glutin::event_loop::EventLoop::new();
let display = glium::Display::new(window_builder, context_builder, &events_loop)
.expect("failed to get rendering context");
Expand Down

0 comments on commit 3c003d3

Please # to comment.