Stretching is the resizing copying of bitmap contents into other bitmaps. Thus, device-dependent image sections are transferred and changed in their size in the output area.
Content of the test
A total of 10,000 image sections of random size between 1×1 and 500×500 pixels are copied and inserted (stretched) at a random position between 1×1 and 500×500 pixels. We alternate the copy style(copy, invert, paint). The initial value for the random generator is always identical, so that all test runs always show the same content. All objects are inside the drawing area, so no clipping is needed.
GDI functions used
for the pure stretching benchmark:
- StretchBlt (copy, invert, paint)
additionally for DIB buffer (test with buffering):
- CreateCompatibleDC
- CreateDIBSection
- SelectObject
-
DeleteObject
Direct drawing without buffer
Drawing with buffer
Conclusion
The performance of the old Voodoo4 4500 is remarkable here, easily outshining all cards. Direct drawing also causes bigger drops in the old acquaintances, so that the overall picture is consolidated. The HD 5870 under the GTX285, on the other hand, are an outright disappointment under XP when blitting.
- 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 →