Skip to content

Commit 10e01a4

Browse files
committed
Fix mlogv32 startup delay
1 parent 08b6f7c commit 10e01a4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/bin/mlogv32.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,9 @@ fn main() -> Result<(), Box<dyn Error>> {
404404

405405
println!("Initializing processors...");
406406

407-
let mut time = Duration::ZERO;
408407
for _ in 0..500 {
409-
vm.do_tick(time);
410-
time += Duration::from_secs_f64(1. / 60.);
408+
// pin time at zero to avoid processors waiting based on invalid @time values
409+
vm.do_tick(Duration::ZERO);
411410
}
412411

413412
// switch to TUI

0 commit comments

Comments
 (0)