Likely performance bug in bitBlt

Roger Larsson roger.larsson at norran.net
Fri Feb 20 02:16:23 CET 2004


In KisPainter::bitBlt (core/kis_painter.cc) we have this code
for the case when we have not given size.

        if (sw == -1)
                sw = dsttm -> width();

        if (sh == -1)
                sh = dsttm -> height();

But the destination image is usually huge...
This would be better since the source buffer is
more likely to match the sizes!

        if (sw == -1)
                sw = srctm -> width();

        if (sh == -1)
                sh = srctm -> height();

But best is probably to use the size parameters.

(My mail list subscription might have failed... I will see if I get this.)

/RogerL

-- 
Roger Larsson
Skellefteå
Sweden


More information about the kimageshop mailing list