Skip to content

Commit

Permalink
Update examples/window/low_power.rs
Browse files Browse the repository at this point in the history
fixed out-of-date comment on unfocused_mode behaviour for Game mode
  • Loading branch information
awwsmm committed Mar 12, 2024
1 parent 6e69f9b commit 4f463c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/window/low_power.rs
Expand Up @@ -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 => {
Expand Down

0 comments on commit 4f463c1

Please sign in to comment.