diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2021-08-12 21:37:52 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-12 21:37:52 -0500 |
| commit | 1bf12a919c89919f958354582721dd68b2af1070 (patch) | |
| tree | a4ae3a0aa2c64c49427ebe5f4ba685ec24bd6ab6 /include | |
| parent | 579456fbd766b64f4ba11b9ff83ece3dad9d6553 (diff) | |
| parent | 2a18c1cdec54a324c6ba9834d6e6b05cc46f2535 (diff) | |
Merge pull request #581 from AttorneyOnline/aolayer-preload
Massively improve AOLayer performance by preloading next frame from disk before the current frame is done ticking
Diffstat (limited to 'include')
| -rw-r--r-- | include/aolayer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/aolayer.h b/include/aolayer.h index 7a8e2fd9..ffbd6dac 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,12 @@ protected: // Center the QLabel in the viewport based on the dimensions of f_pixmap void center_pixmap(QPixmap f_pixmap); + // Populates the frame and delay vectors with the next frame's data. + void load_next_frame(); + + // used in load_next_frame + QFuture<void> future; + signals: void done(); |
