use background thread to pull frames

This commit is contained in:
jazzfool 2024-10-01 14:44:22 +10:00
parent 4ab464c7d5
commit be2b7d9257
2 changed files with 50 additions and 33 deletions

View file

@ -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);