I created a small program to test how well the DirectDraw components perform. However, it became a test case for gtk2. The gtk2-version of the test case is over 10 times slower, than qt. That's a lot.
The test creates a lot of TButtons and TEdits and moves them around with a timer. After every move, the time is written to the form caption. Here are the results on my laptop:
qt: About 0.5 seconds
gtk2:
About 7 seconds! win32 binary with wine: About 1 second.
qt with DirectDraw components: About 1.1 seconds
gtk2 with DirectDraw components: A bit under 7 seconds.
win32 binary with wine: About 1 second.
http://www.starsoft.fi/jarto/DirectDrawTest.zip contains source code and compiled binaries for gtk2 and qt.
Usage:
- Start the program
- Toggle Tools/Use DirectDraw components to switch between native controls and DirectDraw.
- Select Tools/Start
I'd be interested to know if other people have similar performance problems with gtk2.