[krita/kazakov/cs-registry-rewrite] libs/image: Disable tile data pool

Dmitry Kazakov null at kde.org
Thu May 11 12:20:18 UTC 2017


Git commit 48e1c0cffc04aae86338b68a6ae32b92db458758 by Dmitry Kazakov.
Committed on 11/05/2017 at 11:38.
Pushed by dkazakov into branch 'kazakov/cs-registry-rewrite'.

Disable tile data pool

It looks like at least in some circumstances it can make rendering of
the image 5-30% slower. I will disable it by default until further
details are investigated.

If you modified your performance settings, this auto-disabling will
not work. You should disable it manually by setting its size to 0%
in Preferences->Performace tab.

The testing, where the slowdown was registered, was done on 4k
image using KisProjectionBenchmark.

CC:kimageshop at kde.org

M  +1    -1    libs/image/kis_image_config.cpp

https://commits.kde.org/krita/48e1c0cffc04aae86338b68a6ae32b92db458758

diff --git a/libs/image/kis_image_config.cpp b/libs/image/kis_image_config.cpp
index 0258ccc41a7..3910efc653e 100644
--- a/libs/image/kis_image_config.cpp
+++ b/libs/image/kis_image_config.cpp
@@ -211,7 +211,7 @@ void KisImageConfig::setMemorySoftLimitPercent(qreal value)
 qreal KisImageConfig::memoryPoolLimitPercent(bool requestDefault) const
 {
     return !requestDefault ?
-        m_config.readEntry("memoryPoolLimitPercent", 2.) : 2.;
+        m_config.readEntry("memoryPoolLimitPercent", 0.0) : 0.0;
 }
 
 void KisImageConfig::setMemoryPoolLimitPercent(qreal value)


More information about the kimageshop mailing list