From 8293328d66a27245e1c90e19b1fbc004ee8ef033 Mon Sep 17 00:00:00 2001 From: tassaron Date: Mon, 2 May 2022 19:55:29 -0400 Subject: Don't render checkerboard during preview It was nice for consistency with the editing preview, but this slows down the main thread if we're doing the preview synchronously. And it's not really inaccurate to the final product, as far as I know. --- src/video_thread.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/video_thread.py b/src/video_thread.py index 0a95201..0895547 100644 --- a/src/video_thread.py +++ b/src/video_thread.py @@ -120,11 +120,9 @@ class Worker(QtCore.QObject): adds it to the checkerboard and emits a final QImage to the MainWindow for the live preview ''' - background = Checkerboard(self.width, self.height) - image = Image.alpha_composite(background.copy(), frame) # We must store a reference to this QImage # or else Qt will garbage-collect it on the C++ side - self.latestPreview = ImageQt(image) + self.latestPreview = ImageQt(frame) self.imageCreated.emit(QtGui.QImage(self.latestPreview)) self.lastPreview = time.time() -- cgit v1.2.3