by StephC » Feb 4, 2004 @ 12:40pm
Okay, it works now with the last dll...
I don't understand why the OS do not report that something is missing...
I've performed a small part of the bench so far, here are the first results I get :
GD (best results with 90 degrees counter clockwise rotation) :
BltFastColorkey 32x32, 320, ms
BltFastColorkey 32x32 with 50% opacity, 484, ms
BltFastColorkey 32x32 with 10% opacity, 915, ms
FillRect 32x32, 269, ms
FillRect 32x32 with 50% opacity, 350, ms
FillRect 32x32 with 10% opacity, 1006, ms
FillRect 128x128, 3786, ms
FillRect 128x128 with 50% opacity, 3437, ms
FillRect 128x128 with 10% opacity, 13564, ms
uEngine (int13) (rotation does not affect performances) :
BltFastColorkey 32x32, 87, ms
BltFastColorkey 32x32 with 50% opacity, 398, ms
BltFastColorkey 32x32 with 10% opacity, 395, ms
FillRect 32x32, 438, ms
FillRect 32x32 with 50% opacity, 498, ms
FillRect 32x32 with 10% opacity, 498, ms
FillRect 128x128, 7146, ms
FillRect 128x128 with 50% opacity, 7768, ms
FillRect 128x128 with 10% opacity, 7788, ms
So, I'll rework my fillrect without opacity, it was a very naive implementation (a simple loop), I never used this function in a game.
I'll also add a special 50% opacity optimisation (could be much faster), but I don't think it will be useful for the game performances.
As soon as the bench is complete I'll post the exe (and the source code) here, so we will be able to compare performances on each devices.
Stephane Cocquereaumont / Game Developer at <a href=http://int13.net>int13 production</a> (code monkey)