Exemplo n.º 1
0
int KisImageConfig::poolLimit() const
{
    qreal hp = qreal(memoryHardLimitPercent()) / 100.0;
    qreal pp = qreal(memoryPoolLimitPercent()) / 100.0;

    return totalRAM() * hp * pp;
}
Exemplo n.º 2
0
int KisImageConfig::memorySoftLimit() const
{
    return totalRAM() * memorySoftLimitPercent() / 100;
}