mirror of
https://github.com/bevyengine/bevy
synced 2025-01-03 08:48:57 +00:00
22 lines
810 B
Diff
22 lines
810 B
Diff
|
diff --git a/crates/bevy_winit/src/winit_config.rs b/crates/bevy_winit/src/winit_config.rs
|
||
|
index c71a92814..b138d07a0 100644
|
||
|
--- a/crates/bevy_winit/src/winit_config.rs
|
||
|
+++ b/crates/bevy_winit/src/winit_config.rs
|
||
|
@@ -47,15 +47,7 @@ impl WinitSettings {
|
||
|
/// [`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),
|
||
|
- },
|
||
|
- ..Default::default()
|
||
|
- }
|
||
|
+ Self::game()
|
||
|
}
|
||
|
|
||
|
/// Returns the current [`UpdateMode`].
|