diff --git a/src/redraw_scheduler.rs b/src/redraw_scheduler.rs index 57f13e7..5665398 100644 --- a/src/redraw_scheduler.rs +++ b/src/redraw_scheduler.rs @@ -20,7 +20,7 @@ fn parse_changed_setting(name: &str, value: Option) -> Value { "extra_buffer_frames" => { let mut settings = SETTINGS.get::(); if let Some(value) = value { - settings.extra_buffer_frames= value.as_u64().unwrap(); // TODO -- handle wrong data type + settings.extra_buffer_frames = value.as_u64().unwrap(); // TODO -- handle wrong data type SETTINGS.set(&settings); } Value::from(settings.extra_buffer_frames) @@ -32,13 +32,13 @@ fn parse_changed_setting(name: &str, value: Option) -> Value { } pub fn initialize_settings() { - SETTINGS.set(&RedrawSettings { extra_buffer_frames: 60 }); + SETTINGS.set(&RedrawSettings { + extra_buffer_frames: 60, + }); SETTINGS.add_listener("extra_buffer_frames", parse_changed_setting); } - - pub struct RedrawScheduler { frames_queued: AtomicU16, scheduled_frame: Mutex>