source: tests/blit/blit.cpp@ 932

Last change on this file since 932 was 812, checked in by Dmitry A. Kuminov, 15 years ago

tests/blit: Added transparent fillRect.

File size: 3.2 KB
Line 
1#include <QDebug>
2
3#include <QtGui>
4
5/*
6 * This test calculates the roundtrip speed of copy offscreen buffer to window
7 * operations. Besides the time necessary for copying pixels, this also includes
8 * the time necessary to fill 2D rectangles in the offscreen buffer, deliver
9 * paint and timer messages and so on.
10 *
11 * To also get the speed of only the copy operatoins themselves, add
12 *
13 * #define QT_LOG_BLITSPEED
14 *
15 * to the beginning of qapplication_pm.cpp and qwindowsurface_raster.cpp.
16 *
17 * Hint: in order to get the most realistic numbers, let the test run until the
18 * average speed printed in the window title stabilizes (i.e. stops to grow).