disabled sleep. smaller box size
This commit is contained in:
@@ -89,7 +89,7 @@ fn main() {
|
||||
let mut canvas = window.into_canvas().build().unwrap();
|
||||
|
||||
|
||||
let boxsize:i32=15;
|
||||
let boxsize:i32=8;
|
||||
let cols:i32=width as i32/boxsize;
|
||||
let rows:i32=height as i32/boxsize;
|
||||
|
||||
@@ -123,6 +123,6 @@ fn main() {
|
||||
}
|
||||
// The rest of the game loop goes here...
|
||||
|
||||
::std::thread::sleep(Duration::new(0, 1_000_000_000u32 / 60));
|
||||
//::std::thread::sleep(Duration::new(0, 1_000_000_000u32 / 60));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user