chore: remove unused tick timing

This commit is contained in:
2023-09-09 02:41:25 -05:00
parent c90f221c73
commit de29dc6711

View File

@@ -75,17 +75,8 @@ pub fn main() {
}
}
let tick_time = {
let start = Instant::now();
game.tick();
start.elapsed()
};
let draw_time = {
let start = Instant::now();
game.draw();
start.elapsed()
};
game.tick();
game.draw();
if start.elapsed() < loop_time {
::std::thread::sleep(loop_time - start.elapsed());