예제 #1
0
int KisImageConfig::poolLimit() const
{
    qreal hp = qreal(memoryHardLimitPercent()) / 100.0;
    qreal pp = qreal(memoryPoolLimitPercent()) / 100.0;

    return totalRAM() * hp * pp;
}
예제 #2
0
int KisImageConfig::memoryHardLimit() const
{
    return totalRAM() * memoryHardLimitPercent() / 100;
}