mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
Default to not animating
This commit is contained in:
parent
b93f129319
commit
5350818e07
1 changed files with 2 additions and 2 deletions
|
@ -307,7 +307,7 @@ fn run_event_loop() {
|
|||
submission_complete_fence,
|
||||
rendering_complete_semaphore,
|
||||
}));
|
||||
let is_animating = true;
|
||||
let is_animating = false;
|
||||
let mut text_state = String::new();
|
||||
let mut keyboard_modifiers = ModifiersState::empty();
|
||||
|
||||
|
@ -315,7 +315,7 @@ fn run_event_loop() {
|
|||
use winit::event::{Event, WindowEvent};
|
||||
use winit::event_loop::ControlFlow;
|
||||
|
||||
// TODO dynamically switch this on/off depending on whether any
|
||||
// TODO dynamically switch is_animating on/off depending on whether any
|
||||
// animations are running. Should conserve CPU usage and battery life!
|
||||
if is_animating {
|
||||
*control_flow = ControlFlow::Poll;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue