Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Painter
Re: Painter [message #19804 is a reply to message #19803] |
Thu, 22 January 2009 15:40 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
Tom1 wrote on Thu, 22 January 2009 08:34 |
Now I would like to know the road-map of the Painter development. (Maybe I have missed it somewhere else in the forum??)
|
Not really, I have to admit that I sort of got interested first and captured later doing this. But it was really missing for a long time.
Quote: |
Is this new interface something that will be introduced for hardware based rendering too (entirely or partly) or is this only for the software based Painter?
|
It is meant to be solely sw based, at least for now.
Quote: |
I did some quick benchmarking of the Painter versus Draw and found that the cost of using the Painter instead of Draw is about 10x..20x slowdown for rendering strokes. The fills are not that slow, but they still do not match the speed of Draw. I may well be dead wrong, but I guess the main reason for the huge slowdown is the anti-aliasing.
|
IMO, the main difference is the way how strokes are drawn. GDI simply draws lines, at least as long as line width is 1 - and in that case, it is often HW accelerated.
Painter first converts strokes to polygons and then draws them.
In future, we might consider optimizing this and draw strokes directly in important special cases.
BTW, you might also try to benchmark different line widths...
Quote: |
Is there a way to disable anti-aliasing to speed up the rendering at the cost of quality? (I wish there was. Actually, I wish it could be turned on and off on-the-fly.)
|
Yes, there is "NoAA" attribute. But do not expect huge performance gains, it was rather added for printing where antialiasing does not look well.
Mirek
|
|
|
|
|
Painter
By: mirek on Wed, 14 January 2009 13:52
|
|
|
Re: Painter
|
|
|
Re: Painter
By: mirek on Thu, 15 January 2009 01:52
|
|
|
Re: Painter
By: zsolt on Thu, 15 January 2009 19:34
|
|
|
Re: Painter
By: mirek on Thu, 15 January 2009 23:57
|
|
|
Re: Painter
By: chickenk on Fri, 16 January 2009 14:21
|
|
|
Re: Painter
By: mirek on Fri, 16 January 2009 17:34
|
|
|
Re: Painter
By: chickenk on Fri, 16 January 2009 17:49
|
|
|
Re: Painter
By: Tom1 on Thu, 22 January 2009 14:34
|
|
|
Re: Painter
By: mirek on Thu, 22 January 2009 15:40
|
|
|
Re: Painter
By: tojocky on Thu, 05 February 2009 14:14
|
|
|
Re: Painter
By: mirek on Sat, 07 February 2009 11:43
|
|
|
Re: Painter
By: koldo on Fri, 06 February 2009 23:40
|
|
|
Re: Painter
By: mirek on Sat, 07 February 2009 11:47
|
Goto Forum:
Current Time: Thu Apr 25 12:27:35 CEST 2024
Total time taken to generate the page: 0.02782 seconds
|