Use log crate instead of dbg!
This commit is contained in:
parent
c9510db551
commit
c9da3a10d9
3 changed files with 3 additions and 4 deletions
|
|
@ -40,7 +40,6 @@ pub trait UserInterface {
|
|||
|
||||
let mut cache = Some(iced_winit::Cache::default());
|
||||
let mut events = Vec::new();
|
||||
let mut redraws = 0;
|
||||
let mut primitive = Primitive::None;
|
||||
|
||||
window.request_redraw();
|
||||
|
|
@ -90,11 +89,8 @@ pub trait UserInterface {
|
|||
event: WindowEvent::RedrawRequested,
|
||||
..
|
||||
} => {
|
||||
println!("Redrawing {}", redraws);
|
||||
renderer.draw(&mut target, &primitive);
|
||||
|
||||
redraws += 1;
|
||||
|
||||
// TODO: Handle animations!
|
||||
// Maybe we can use `ControlFlow::WaitUntil` for this.
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,3 +15,4 @@ iced_native = { version = "0.1.0-alpha", path = "../native" }
|
|||
wgpu = "0.3"
|
||||
wgpu_glyph = "0.4"
|
||||
raw-window-handle = "0.1"
|
||||
log = "0.4"
|
||||
|
|
|
|||
|
|
@ -96,6 +96,8 @@ impl Renderer {
|
|||
}
|
||||
|
||||
pub fn draw(&mut self, target: &mut Target, primitive: &Primitive) {
|
||||
log::debug!("Drawing");
|
||||
|
||||
let frame = target.swap_chain.get_next_texture();
|
||||
|
||||
let mut encoder = self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue