Rectangles are also part of our test. Similar to the polygons, some probands didn’t cover themselves with glory and especially the buffered mode should draw our attention.
Contents of the test
A total of 200,000 rectangles of random size and color are rendered at a random position. Outline color and fill color are the same. The initial value for the random generator is always identical, so that all test runs always display the same content. All objects are inside the drawing area, so no clipping is needed.
Used GDI functions
for the pure curve benchmark:
- CreatePen
- CreateSolidBrush
- Rectangle
- SelectObject
- DeleteObject
additionally for DIB buffer (test with buffering):
- CreateCompatibleDC
- CreateDIBSection
- BitBlt
Direct drawing without buffer
Drawing with buffer
Conclusion
Drawing rectangles via the GDI could be faster. Almost all maps are surprisingly snappier without Aero. Remarkably, all maps, regardless of manufacturer, fail grandiosely with buffered drawing.
- 1 - Einführung: Die Relevanz der 2D-Grafikausgabe über das GDI
- 2 - Das 2D-GDI und dessen Grafikausgabe von XP bis Windows 7 im Detail
- 3 - 2D-Grafikausgabe über das GDI: direkt oder gepuffert?
- 4 - Die Symptome der HD 5xxx-Serie und deren Relevanz unter Windows 7
- 5 - Tom2D: Unser einfacher 2D-GDI-Benchmark
- 6 - Tom2D: Textausgabe
- 7 - Tom2D: Linien
- 8 - Tom2D: Kurven
- 9 - Tom2D: Polygone
- 10 - Tom2D: Rechtecke
- 11 - Tom2D: Ellipsen
- 12 - Tom2D: Blitting
- 13 - Tom2D: Stretching
- 14 - Fazit
16 Antworten
Kommentar
Lade neue Kommentare
Mitglied
Veteran
Urgestein
1
Urgestein
1
Urgestein
Urgestein
Urgestein
Urgestein
Mitglied
Urgestein
1
Urgestein
Mitglied
1
Alle Kommentare lesen unter igor´sLAB Community →