Home » U++ Library support » U++ Core » Color and RGBA
Re: Color and RGBA [message #35511 is a reply to message #35506] |
Fri, 24 February 2012 13:32 |
Tom1
Messages: 1216 Registered: March 2007
|
Senior Contributor |
|
|
Still off-topic:
I don't know enough about CtrlPaint internals to comment on that one.
--
It seems, I have given you wrong/misleading information on the GDI performance. Sorry. Here is some more appropriate data on some raw rendering tests I did on Windows 7 x64. The results are in ms:
thin 1px line 3px line simple polygons
Draw(GDI) 0.892 10.563 7.02
Painter 36.75 41.200 27.405
GLCtrl 1.722 2.153 9.845
Direct2DAA 87.615 8.667 12.588
Direct2DNOAA 1.649 1.638 9.400
SimpleDraw 2.144 n/a n/a
I'm quite a bit surprised myself since the difference was not this big in my application. This is probably because the application computes quite a bit when resolving the coordinates for viewing.
Anyway, the results are still in favor of GDI.
SimpleDraw is a simple aliased renderer I made that draws only narrow lines to ImageBuffer. (My application draws a lot of 1px narrow lines, so my point of view is clearly biased here.)
GLCtrl on my platform also draws aliased objects even if smoothing is enabled. Do not know why.
Painter does not improve much if it is turned into NOAA mode.
In my opinion these results do not justify switching away from Draw and GDI, but having SetSurface available and well optimized on any platform is important.
Best regards,
Tom
|
|
|
|
|
Color and RGBA
By: unodgs on Wed, 22 February 2012 12:24
|
|
|
Re: Color and RGBA
By: mirek on Thu, 23 February 2012 20:52
|
|
|
Re: Color and RGBA
By: unodgs on Thu, 23 February 2012 22:40
|
|
|
Re: Color and RGBA
By: Tom1 on Thu, 23 February 2012 22:49
|
|
|
Re: Color and RGBA
By: unodgs on Fri, 24 February 2012 08:06
|
|
|
Re: Color and RGBA
By: Tom1 on Fri, 24 February 2012 13:32
|
|
|
Re: Color and RGBA
By: mirek on Fri, 24 February 2012 14:03
|
|
|
Re: Color and RGBA
By: mirek on Fri, 24 February 2012 14:05
|
|
|
Re: Color and RGBA
By: Tom1 on Fri, 24 February 2012 14:57
|
|
|
Re: Color and RGBA
By: mirek on Fri, 24 February 2012 15:40
|
|
|
Re: Color and RGBA
By: mirek on Sun, 04 March 2012 00:29
|
Goto Forum:
Current Time: Tue May 14 01:30:43 CEST 2024
Total time taken to generate the page: 0.02940 seconds
|