int KisImageConfig::poolLimit() const { qreal hp = qreal(memoryHardLimitPercent()) / 100.0; qreal pp = qreal(memoryPoolLimitPercent()) / 100.0; return totalRAM() * hp * pp; }
int KisImageConfig::memoryHardLimit() const { return totalRAM() * memoryHardLimitPercent() / 100; }