Re: Скорость: GDI vs GDI+
От: Amn  
Дата: 04.01.02 08:24
Оценка:
Hei dudes.. Sorry, i can type in Russian but having trouble with keystrokes :)
The keyboard is layed out in Norwegian...

Anyway, yes, i tested the GDI+ thingie, it is awfully slow. And, Retalik, you state that we should note that GDI+ does AA, and text quality drawing — well, i disabled the "FUNKY" effects, and the speed gain is about 15% :(

PIII 600Mhz, AGP Matrox G450

GDI speed:

~420000 Lines/sec (MoveTo(0, 0); LineTo(170, 100);)
~700000 Filled rectangles/sec (FillSolidRect(0, 0, 170, 100, RGB(255, 0, 0));)

GDI+ (disbled antialiasing (SetSmoothingMode(SmoothingModeDefault);)

~3000 Lines / sec (DrawLine(&Pen(Color(255, 0, 0), 1), 0, 0, 100, 170);)
~3000 (!) Empty rectangles / sec (DrawRectangle(&Pen(Color(255, 0, 0), 1), 0, 0, 100, 170);)

GDI+ (enabled antialiasing (SetSmoothingMode(SmoothingModeHighQuality);)

~1600 Lines / sec (DrawLine(&Pen(Color(255, 0, 0), 1), 0, 0, 100, 170);)
~1600 (!) Empty rectangles / sec (DrawRectangle(&Pen(Color(255, 0, 0), 1), 0, 0, 100, 170);)

Anyone, perhaps this is a "reference" driver for GDI+ that will be replaced soon ???

Bezt wishez, Amn.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.