Slow flood fill with QPainter canvas

Boudewijn Rempt boud at valdyas.org
Fri Mar 5 20:29:09 CET 2010


On Fri, 5 Mar 2010, Dmitry Kazakov wrote:

> > the flood fill is still slow even we optimzed the filling algorithm.
> > Here is callgrind log of running krita with QPainter canvas
> > http://valdyas.org/~lukast/projection-floodfill.tar.gz<http://valdyas.org/%7Elukast/projection-floodfill.tar.gz>
> >
> > It seems like projection or pyramids are slow or something. The flood fill
> > is
> > also slow for OpenGL canvas. I will do the valgrinding.
> >
> > Dmitry, can you check it out?
> >
> 
> I looked at it briefly. It seems like a plenty of time is spent to
> KisPainter::bitBlt. New data manager api should fix this. But as for the
> KisImagePyramid, i think it should be disabled for the release, as without
> threading it is not much efficient.

Isn't there still the memory issue? Allocating a whole QImage is much
worse than allocating smaller images.

Boudewijn



More information about the kimageshop mailing list