Permalink
Browse files

Set the "fake" dt to 100ms

That's what we're using on the JS side for now. This fixes the
animations.
  • Loading branch information...
tomassedovic committed Dec 20, 2017
1 parent 12225b3 commit 13a8851341b023e96e384e1264a494ce6c5454b4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main.rs
@@ -385,7 +385,7 @@ pub fn update(state_ptr: *mut State) {
let mut state: Box<State> = unsafe { Box::from_raw(state_ptr) };


let dt = std::time::Duration::new(1, 0);
let dt = std::time::Duration::from_millis(100);
let display_size = point::Point::new(0, 0);
let fps = 60;
let keys: Vec<keys::Key> = vec![];

0 comments on commit 13a8851

Please sign in to comment.