2023-10-13 19:19:17 +00:00
|
|
|
diff --git a/crates/bevy_winit/src/winit_config.rs b/crates/bevy_winit/src/winit_config.rs
|
2023-12-22 06:08:43 +00:00
|
|
|
index b91e25d34..48f19b708 100644
|
2023-10-13 19:19:17 +00:00
|
|
|
--- a/crates/bevy_winit/src/winit_config.rs
|
|
|
|
+++ b/crates/bevy_winit/src/winit_config.rs
|
2023-12-22 06:08:43 +00:00
|
|
|
@@ -29,14 +29,7 @@ impl WinitSettings {
|
2023-10-13 19:19:17 +00:00
|
|
|
/// [`Reactive`](UpdateMode::Reactive) if windows have focus,
|
|
|
|
/// [`ReactiveLowPower`](UpdateMode::ReactiveLowPower) otherwise.
|
|
|
|
pub fn desktop_app() -> Self {
|
|
|
|
- WinitSettings {
|
|
|
|
- focused_mode: UpdateMode::Reactive {
|
|
|
|
- wait: Duration::from_secs(5),
|
|
|
|
- },
|
|
|
|
- unfocused_mode: UpdateMode::ReactiveLowPower {
|
|
|
|
- wait: Duration::from_secs(60),
|
|
|
|
- },
|
|
|
|
- }
|
|
|
|
+ Self::game()
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Returns the current [`UpdateMode`].
|