I've written a game using both clanlib and directx. The PC is a celeron 1.8ghz
with Nvidia 7300LE Graphics card and 256mb ram, supporting OpenGL 2.0.
I've deliberately chosen a celeron to get a good comparison in speed
between clanlib v directx.
I will say now, all my drawing is 2D only. No 3d at all.
The game is a fruit machine simulation. So, it's nothing overly complex.
The directx version of the game absolutely flies. Speed is perfect. The Clanlib version of the same game is so slow rendering it virtually useless.
I have loaded all my graphics into memory as CL_Surface's ( in all about
100 different graphics). These graphics occupy around 12meg of ram in total.
I load them in like so:
start_button = load_image_from_file( "graphics/start_button.png" );
hold_button = load_image_from_file( "graphics/hold_button.png" );
hold_button1 = load_image_from_file( "graphics/hold1.png" );
In clanlib i then render these, and Flip them as such::
0, // red component
0, // green component
0)); // blue component
// Draw all my graphics as surfaces. here...
Sounds simple enough, so why so Slow!!!!!!
That's all Im doing, so if any one can help me get the best out of Clanlib
then please tell me, otherwise Its back to directx!