aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAstatin <[email protected]>2024-12-12 15:49:45 +0900
committerAstatin <[email protected]>2024-12-12 15:49:45 +0900
commit29aabccf0a0e2ad109a02ae0ba789956eaa29edb (patch)
treea84be8046131aca4be8e47619b3ca0cbb439f1a7
parent6344325860587c6a0586322cbc7ecb9cc9697a95 (diff)
Workaround to increase FPS to 60 (for some reason setting it to 60 in consts is actually setting it to 30)
-rw-r--r--src/consts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/consts.rs b/src/consts.rs
index dd06796..2b93133 100644
--- a/src/consts.rs
+++ b/src/consts.rs
@@ -3,7 +3,7 @@ pub const STACK_START_ADDRESS: u16 = 0x0;
pub const SPEEDUP_FACTOR: f64 = 1.0;
-pub const DISPLAY_UPDATE_RATE: u64 = 60; // Hertz
+pub const DISPLAY_UPDATE_RATE: u64 = 120; // Hertz
pub const DISPLAY_UPDATE_SLEEP_TIME_MICROS: u64 =
((1000000 / DISPLAY_UPDATE_RATE) as f64 / SPEEDUP_FACTOR) as u64;