From 5e09a190d48a28055bc7a0989940b43bb10d295d Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 15 Nov 2017 12:09:52 -0500 Subject: remove trait object for PPU memory --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 9220694..57af3e4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -89,6 +89,7 @@ impl SDLWindow { } } + #[inline(always)] fn poll(&self) -> bool { for event in self.events.borrow_mut().poll_iter() { match event { @@ -239,9 +240,9 @@ fn main() { if duration_per_frame > e { let diff = duration_per_frame - e; sleep(diff); - println!("{} faster", diff.subsec_nanos() as f64 / 1e6); + //println!("{} faster", diff.subsec_nanos() as f64 / 1e6); } else { - println!("{} slower", (e - duration_per_frame).subsec_nanos() as f64 / 1e6); + //println!("{} slower", (e - duration_per_frame).subsec_nanos() as f64 / 1e6); } timer = Instant::now(); cnt -= CYC_PER_FRAME; -- cgit v1.2.3-70-g09d2