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
|
2024-03-15 23:32:20 +00:00
|
|
|
index f2cb424ec..e68e01de0 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
|
2024-03-15 23:32:20 +00:00
|
|
|
@@ -31,14 +31,7 @@ impl WinitSettings {
|
|
|
|
///
|
|
|
|
/// Use the [`EventLoopProxy`](crate::EventLoopProxy) to request a redraw from outside bevy.
|
2023-10-13 19:19:17 +00:00
|
|
|
pub fn desktop_app() -> Self {
|
|
|
|
- WinitSettings {
|
|
|
|
- focused_mode: UpdateMode::Reactive {
|
|
|
|
- wait: Duration::from_secs(5),
|
|
|
|
- },
|
|
|
|
- unfocused_mode: UpdateMode::ReactiveLowPower {
|
|
|
|
- wait: Duration::from_secs(60),
|
|
|
|
- },
|
|
|
|
- }
|
2024-01-08 20:52:43 +00:00
|
|
|
+ Self::default()
|
2023-10-13 19:19:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/// Returns the current [`UpdateMode`].
|