Rectangles are another key part of our test suite.
We draw a total of 200,000 rectangles of random size, color, and position in this test. Line and fill colors are always the same. As in other tests, the random seed is constant so that all test runs should produce the same content. And again, all rectangles appear within the display area to make clipping unnecessary.
GDI Functions Called
Rectangles rendered directly:
Rectangles rendered from the DIB buffer:
Drawing rectangles using GDI isn’t exactly fast. Nearly all graphics cards run noticeably faster in this test when Aero is turned off, much to our amazement. It’s also noteworthy that all of our graphics cards, regardless of vendor, slow down drastically in buffered mode.
- Introduction: Why GDI Output For 2D Graphics Remains Relevant
- The 2D GDI For Windows XP Through Windows 7, In Detail
- 2D Graphics Output Using GDI: Direct Or Buffered?
- The Radeon HD 5000's Symptoms And Their Relevance To Windows 7
- Tom2D: Our Simple 2D GDI Benchmark
- Tom2D: Text Output
- Tom2D: Line Output
- Tom2D Splines/Bézier Curves
- Tom2D: Polygons
- Tom2D: Rectangles
- Tom2D: Ellipses
- Tom2D: Blitting
- Tom2D: Stretching
- UPDATE: ATI Steps Up With A Hotfixed Driver