Skip to content

Commit

Permalink
Set the "fake" dt to 100ms
Browse files Browse the repository at this point in the history
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 13a8851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Expand Up @@ -385,7 +385,7 @@ pub fn update(state_ptr: *mut State) {
let mut state: Box<State> = unsafe { Box::from_raw(state_ptr) }; 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 display_size = point::Point::new(0, 0);
let fps = 60; let fps = 60;
let keys: Vec<keys::Key> = vec![]; let keys: Vec<keys::Key> = vec![];
Expand Down

0 comments on commit 13a8851

Please sign in to comment.