aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorin1tiate <radwoodward@vikings.grayson.edu>2021-08-11 09:20:00 -0500
committerin1tiate <radwoodward@vikings.grayson.edu>2021-08-11 09:20:00 -0500
commitce94cd2d1e75738b53f7ab990a49e75a01b80394 (patch)
tree4fa85c1703b6658f8d501d0dfade40ca53112a35 /include
parent579456fbd766b64f4ba11b9ff83ece3dad9d6553 (diff)
preload next frame before ticking over
Diffstat (limited to 'include')
-rw-r--r--include/aolayer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/aolayer.h b/include/aolayer.h
index 7a8e2fd9..4b95ddbd 100644
--- a/include/aolayer.h
+++ b/include/aolayer.h
@@ -7,6 +7,7 @@
#include <QLabel>
#include <QTimer>
#include <QBitmap>
+#include <QtConcurrent/QtConcurrentRun>
class AOApplication;
class VPath;
@@ -139,6 +140,9 @@ protected:
// Center the QLabel in the viewport based on the dimensions of f_pixmap
void center_pixmap(QPixmap f_pixmap);
+ // Populate the frame and delay vectors. Done asynchronously.
+ void load_next_frame();
+
signals:
void done();