slower FPS counter, debug presentation

ecs
q3k 2020-01-20 21:29:28 +01:00 committed by Sergiusz Bazanski
parent 90d308143e
commit b6071b0a51
2 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,7 @@ impl<WT: 'static + Send + Sync> Instance<WT> {
previous_frame_end: None,
armed: false,
fps_counter: crate::util::counter::Counter::new(time::Duration::from_millis(100)),
fps_counter: crate::util::counter::Counter::new(time::Duration::from_millis(1000)),
}
}

View File

@ -65,6 +65,8 @@ impl<WT: 'static + Send + Sync> SwapchainBinding<WT> {
prev.as_ref(),
).expect("could not create swap chain");
log::info!("Swap chain: present mode {:?}, {} images", present_mode, images.len());
let render_pass = Self::create_render_pass(surface_binding, chain.format());
let framebuffers = Self::create_framebuffers(render_pass.clone(), images.clone());