slower FPS counter, debug presentation
parent
90d308143e
commit
b6071b0a51
|
@ -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)),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue