diff --git a/assets/pong.gif b/assets/pong.gif index 7d1575c..e35a15b 100644 Binary files a/assets/pong.gif and b/assets/pong.gif differ diff --git a/src/device/device.rs b/src/device/device.rs index 3a853e2..186f256 100644 --- a/src/device/device.rs +++ b/src/device/device.rs @@ -57,7 +57,7 @@ impl Device { // Throttling configuration for cpu const DO_CHIP_CPU_THROTTLING:bool = true; const TARGET_CPU_SPEED_INSTRUCTIONS_PER_SECOND: u64 = 800; - const TARGET_CPU_INSTRUCTION_TIME: Duration = Duration::from_millis(1000/Self::TARGET_CPU_SPEED_INSTRUCTIONS_PER_SECOND); + const TARGET_CPU_INSTRUCTION_TIME: Duration = Duration::from_micros(1_000_000/Self::TARGET_CPU_SPEED_INSTRUCTIONS_PER_SECOND); pub fn cycle(&mut self) -> EmulatorResult<()> { let time_start = std::time::Instant::now();