Enable vsync and MSAAx4 on Magpie windows
This commit is contained in:
parent
4a78743c40
commit
e0ec4190fc
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue