Home » Developing U++ » U++ Developers corner » Painter future
Re: Painter future [message #20199 is a reply to message #20197] |
Tue, 24 February 2009 16:50   |
 |
mirek
Messages: 14256 Registered: November 2005
|
Ultimate Member |
|
|
Mindtraveller wrote on Tue, 24 February 2009 08:58 |
luzr wrote on Tue, 24 February 2009 15:22 | Personally, I am quite sceptical about GPU acceleration.Mirek
| Could you please explain why?
|
Well, for example imagine the difference between GPU accelerated "true subpixel precision" text rendering.
Each text glyph consists of about 50 line segments (after curve approximations), usually very small.
To rasterizer them in software, I have to do very little CPU steps. Rasterizer only goes through "real" pixels, subpixel precision is "collected" on the way; what I want to say here is that drawing line from [0, 1.23] to [1.21, 2.91] is basically done in 2 steps.
I can rasterize the whole glyph polygon quite quickly this way and then just draw resulting scanlines.
Compare to GPU solution. AFAIK, I would have to tesselate these 50 line segments into ~50 triangles, not an easy task, then push a lot of data through GPU API. I think that CPU would win here.
(And do not let me start to examine how diffucult would be to implement even-odd rule there 
Mirek
[Updated on: Tue, 24 February 2009 16:52] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Tue Apr 29 17:03:53 CEST 2025
Total time taken to generate the page: 0.00351 seconds
|