use background thread to pull frames
This commit is contained in:
parent
4ab464c7d5
commit
be2b7d9257
2 changed files with 50 additions and 33 deletions
|
@ -143,7 +143,6 @@ where
|
|||
_viewport: &iced::Rectangle,
|
||||
) {
|
||||
let inner = self.video.0.borrow_mut();
|
||||
let _ = inner.read_frame();
|
||||
|
||||
// bounds based on `Image::draw`
|
||||
let image_size = iced::Size::new(inner.width as f32, inner.height as f32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue