KisPainter::paintPolygon used in paintops

LukasT.dev@gmail.com lukast.dev at gmail.com
Fri Apr 10 00:32:13 CEST 2009


I still want to speed up the paintPolygon...

On Friday 13 March 2009 14:44:04 Cyrille Berger wrote:
> On Friday 13 March 2009, LukasT.dev at gmail.com wrote:
> > What would be the solution for paintops?
> > Made own class for paintPolygon? Or optimalize paintPolygon somehow in
> > KisPainter (I don't have idea how to cache created objects in KisPainter
> > :( )?
>
> Optimize paintPolygon.
>
> I don't share your analysis of the problem :/ In the callgrind you give,
> the creation of selection and objects isn't visible at all. The main cost I
> see is the computation of exactBounds (and worse here, we pay it twice).
> One might note, that those exactBounds aren't needed in this case, since we
> allready know the extent of the function.

Which function? Can you describe it more? I would implement it, but I don't 
see what you see..You are standing on the shoulders of giants? 
Can you take me there? :)

>
> An other area of improvement could be to not use the QPainter, and to
> directly fill the mask, there is most likely going to be a huge speed up as
> well, since QPainter::fillRect is to general for our purpose.

How would you fill it then? Using what class?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kimageshop/attachments/20090410/3f4ff54b/attachment.htm 


More information about the kimageshop mailing list