From e2e3b28de8a59057b0bf7b13dbb0e16418a9583e Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Fri, 28 Aug 2020 15:48:01 +0300 Subject: [PATCH] Set cache mode to "all" for both QMovie objects to preserve the client's sanity by not horribly lagging them with zoom speedlines and other continuously animated elements. --- src/aomovie.cpp | 1 + src/aoscene.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/aomovie.cpp b/src/aomovie.cpp index ac94921..196c1d3 100644 --- a/src/aomovie.cpp +++ b/src/aomovie.cpp @@ -9,6 +9,7 @@ AOMovie::AOMovie(QWidget *p_parent, AOApplication *p_ao_app) : QLabel(p_parent) ao_app = p_ao_app; m_movie = new QMovie(); + m_movie->setCacheMode(QMovie::CacheAll); this->setMovie(m_movie); diff --git a/src/aoscene.cpp b/src/aoscene.cpp index 594013a..78d69ac 100644 --- a/src/aoscene.cpp +++ b/src/aoscene.cpp @@ -7,6 +7,7 @@ AOScene::AOScene(QWidget *parent, AOApplication *p_ao_app) : QLabel(parent) m_parent = parent; ao_app = p_ao_app; m_movie = new QMovie(this); + m_movie->setCacheMode(QMovie::CacheAll); last_image = ""; }