diff --git a/.gitignore b/.gitignore
index 53eaa21..cce2d15 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/target
**/*.rs.bk
+*.log
diff --git a/src/main.rs b/src/main.rs
index 13a9528..c6eef01 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -35,6 +35,9 @@ fn main() {
} else if arg == "--noIdle" {
SETTINGS.no_idle.store(true, Ordering::Relaxed);
false
+ } else if arg == "--extraBufferFrames" {
+ SETTINGS.buffer_frames.store(60, Ordering::Relaxed);
+ false
} else {
true
}
diff --git a/src/redraw_scheduler.rs b/src/redraw_scheduler.rs
index 70d1d0c..8ca30e7 100644
--- a/src/redraw_scheduler.rs
+++ b/src/redraw_scheduler.rs
@@ -4,12 +4,12 @@ use std::time::Instant;
use log::trace;
+use crate::settings::SETTINGS;
+
lazy_static! {
pub static ref REDRAW_SCHEDULER: RedrawScheduler = RedrawScheduler::new();
}
-const BUFFER_FRAMES: u16 = 60;
-
pub struct RedrawScheduler {
frames_queued: AtomicU16,
scheduled_frame: Mutex