diff options
author | Ben Bridle <bridle.benjamin@gmail.com> | 2024-08-05 13:42:53 +1200 |
---|---|---|
committer | Ben Bridle <bridle.benjamin@gmail.com> | 2024-08-05 13:42:53 +1200 |
commit | 406b4d3ea56a19c0389b4214a7d8d15bf3028eb8 (patch) | |
tree | e203e6865fe408ba440194f058921fca47caf33e | |
parent | f07c3d277406b4338bbe6a3371d58da0da33905f (diff) | |
download | bedrock-pc-406b4d3ea56a19c0389b4214a7d8d15bf3028eb8.zip |
Increase frame time to 8ms
This is slightly more efficient on the CPU, while not making any
visible difference to the user.
-rw-r--r-- | src/emulator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emulator.rs b/src/emulator.rs index 78abc12..4909a27 100644 --- a/src/emulator.rs +++ b/src/emulator.rs @@ -7,7 +7,7 @@ use std::cmp::{min, max}; use std::time::*; use std::thread::sleep; -const FRAME: Duration = Duration::from_micros(4_000); +const FRAME: Duration = Duration::from_micros(8_000); const RENDER_WAIT: Duration = Duration::from_micros(500_000); const LINE_HEIGHT: f64 = 20.0; |