mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-11 08:08:00 -06:00
chore: remove unused tick timing
This commit is contained in:
13
src/main.rs
13
src/main.rs
@@ -75,17 +75,8 @@ pub fn main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let tick_time = {
|
game.tick();
|
||||||
let start = Instant::now();
|
game.draw();
|
||||||
game.tick();
|
|
||||||
start.elapsed()
|
|
||||||
};
|
|
||||||
|
|
||||||
let draw_time = {
|
|
||||||
let start = Instant::now();
|
|
||||||
game.draw();
|
|
||||||
start.elapsed()
|
|
||||||
};
|
|
||||||
|
|
||||||
if start.elapsed() < loop_time {
|
if start.elapsed() < loop_time {
|
||||||
::std::thread::sleep(loop_time - start.elapsed());
|
::std::thread::sleep(loop_time - start.elapsed());
|
||||||
|
|||||||
Reference in New Issue
Block a user