🚧 wip
parent
d6297dcbd3
commit
f02c8b8449
|
@ -44,7 +44,7 @@ pub struct Driver
|
|||
ctl: Controller,
|
||||
}
|
||||
|
||||
fn sleep_ms (ms: u64)
|
||||
pub fn sleep_ms (ms: u64)
|
||||
{
|
||||
std::thread::sleep (std::time::Duration::from_millis (ms));
|
||||
}
|
||||
|
|
|
@ -135,6 +135,7 @@ impl eframe::App for App {
|
|||
texture.set (egui::ColorImage::from_rgba_premultiplied([1280,720], &frame.data), Default::default ());
|
||||
self.latency = Instant::now () - frame.capture_time;
|
||||
self.camera_frames += 1;
|
||||
println! (" Camera");
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -168,8 +169,11 @@ impl eframe::App for App {
|
|||
ui.image (texture, size);
|
||||
|
||||
self.gui_frames += 1;
|
||||
println! ("GUI");
|
||||
|
||||
ui.checkbox(&mut self.requesting_frames, "Run");
|
||||
|
||||
// driver::sleep_ms (500);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue