[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    [krita/eliakincosta/T5885-kritas-scripting-showcase] libs/image: Disable tile data pool
From:       Eliakin Costa <null () kde ! org>
Date:       2017-05-25 1:04:47
Message-ID: E1dDhCp-00057S-P3 () code ! kde ! org
[Download RAW message or body]

Git commit 33504b90a50103f82476c2bf9dbe65cecc8e0d29 by Eliakin Costa, on be=
half of Dmitry Kazakov.
Committed on 25/05/2017 at 01:03.
Pushed by eliakinalmeida into branch 'eliakincosta/T5885-kritas-scripting-s=
howcase'.

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@kde.org

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

https://commits.kde.org/krita/33504b90a50103f82476c2bf9dbe65cecc8e0d29

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 va=
lue)
 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)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic