mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-11 06:08:02 -06:00
chore: remove unused tick timing
This commit is contained in:
@@ -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()
|
||||
};
|
||||
|
||||
if start.elapsed() < loop_time {
|
||||
::std::thread::sleep(loop_time - start.elapsed());
|
||||
|
||||
Reference in New Issue
Block a user