Enable vsync and MSAAx4 on Magpie windows

This commit is contained in:
mars 2022-11-20 12:16:55 -07:00
parent 4a78743c40
commit e0ec4190fc
1 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,9 @@ impl Window {
let wb = glutin::window::WindowBuilder::new()
.with_transparent(true)
.with_decorations(false);
let cb = glutin::ContextBuilder::new();
let cb = glutin::ContextBuilder::new()
.with_vsync(true)
.with_multisampling(4);
let display = glium::Display::new(wb, cb, &event_loop)?;
let graphics = Graphics::new(display);
let last_update = Instant::now();