Skip to content

Commit

Permalink
Turn off VSync
Browse files Browse the repository at this point in the history
For a simple app like this with no complex 3D rendering, VSync is not required.
See also emilk/egui#1358
  • Loading branch information
Talon1024 committed May 9, 2022
1 parent 280f7b3 commit 2cf608b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ struct AddonSpecification {
type AddonMap = HashMap<String, AddonSpecification>;

fn main() -> Result<(), Box<dyn Error>> {
let options = {
let mut options = eframe::NativeOptions::default();
options.initial_window_size = Some(Vec2 {x: 550., y: 300.});
options
let options = eframe::NativeOptions {
initial_window_size: Some(Vec2 {x: 550., y: 300.}),
vsync: false,
..Default::default()
};
let quit_on_launch = env::args().any(|arg| arg.to_lowercase() == "--quit-on-launch");
let addons = get_addons(None);
Expand Down

0 comments on commit 2cf608b

Please sign in to comment.