From 4f463c15d4c6c70ad230d54dbb6ced0a51500ffd Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 12 Mar 2024 17:48:14 -0400 Subject: [PATCH] Update examples/window/low_power.rs fixed out-of-date comment on unfocused_mode behaviour for Game mode --- examples/window/low_power.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/window/low_power.rs b/examples/window/low_power.rs index b0a0436946fa4..3782d50171c0d 100644 --- a/examples/window/low_power.rs +++ b/examples/window/low_power.rs @@ -63,7 +63,10 @@ fn update_winit( Game => { // In the default `WinitSettings::game()` mode: // * When focused: the event loop runs as fast as possible - // * When not focused: the event loop runs as fast as possible + // * When not focused: the app will update when the window is directly interacted with + // (e.g. the mouse hovers over a visible part of the out of focus window), a + // [`RequestRedraw`] event is received, or one sixtieth of a second has passed + // without the app updating (60 Hz refresh rate max). WinitSettings::game() } Application => {