Skip to content

Commit ad6daeb

Browse files
committed
make it 60Hz
1 parent 691e41a commit ad6daeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_winit/src/winit_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl WinitSettings {
4545
WinitSettings {
4646
focused_mode: UpdateMode::Continuous,
4747
unfocused_mode: UpdateMode::ReactiveLowPower {
48-
wait: Duration::from_millis(50), // 20Hz
48+
wait: Duration::from_secs_f64(1.0 / 60.0), // 60Hz
4949
},
5050
..Default::default()
5151
}

0 commit comments

Comments
 (0)