frame time
This commit is contained in:
parent
72eef116c9
commit
26a31b41b9
1 changed files with 3 additions and 0 deletions
|
@ -1236,6 +1236,8 @@ impl<'a> WindowContext<'a> {
|
||||||
|
|
||||||
/// Draw pixels to the display for this window based on the contents of its scene.
|
/// Draw pixels to the display for this window based on the contents of its scene.
|
||||||
pub(crate) fn draw(&mut self) -> Scene {
|
pub(crate) fn draw(&mut self) -> Scene {
|
||||||
|
let t0 = std::time::Instant::now();
|
||||||
|
|
||||||
let window_was_focused = self
|
let window_was_focused = self
|
||||||
.window
|
.window
|
||||||
.focus
|
.focus
|
||||||
|
@ -1326,6 +1328,7 @@ impl<'a> WindowContext<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
self.window.dirty = false;
|
self.window.dirty = false;
|
||||||
|
eprintln!("frame: {:?}", t0.elapsed());
|
||||||
|
|
||||||
scene
|
scene
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue