Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Don't priority-recalculate frames when they are already cached
Dmitry Kazakov447f962df334
diff --git a/libs/ui/kis_animation_cache_populator.cpp b/libs/ui/kis_animation_cache_populator.cppindex e842028732..99bac2b9c0 100644--- a/libs/ui/kis_animation_cache_populator.cpp+++ b/libs/ui/kis_animation_cache_populator.cpp@@ -158,6 +158,13 @@ struct KisAnimationCachePopulator::Privatecontinue;}+ /**+ * The frame got cached in the meantime, so skip its recalculation+ */+ if (cache->frameStatus(priorityFrame) == KisAnimationFrameCache::Cached) {+ continue;+ }+RegenerationRequestResult result =tryRequestGeneration(cache, KisTimeSpan(), priorityFrame);if (result == RequestSuccessful) return result;