Page 1 of 1

Speed reduction when migrate from gapidraw 1.04 -> 2.04

PostPosted: Dec 1, 2003 @ 10:29am
by redbug
I migrate my soft from gapidraw 1.04 to gapidraw 2.04 and I see a big speed reduction.
I do 25 fps with gd1.04 and only 8 fps with gd2.04.
Why ?
Do I have to look for something special when I migrate ?

PostPosted: Dec 1, 2003 @ 11:00am
by Johan
I am guessing that your game runs full screen on a stationary PC. Set the flag GDSURFACE_SYSTEMMEMORY in all CreateSurface() calls and you will be set. You might also want to set the display flag GDDISPLAY_BACKBUFFERSYSMEM in the GDAPPCONFIG (if you are using CGapiApplication).

The reason for the speed difference is that GapiDraw by defaults tries to create all surfaces in video memory, and that some of the operations you use are not HW accelerated (like alpha blends / opacity).

Check this document for more details:
http://www.gapidraw.com/doc/205/doc-videohw.htm

PostPosted: Dec 1, 2003 @ 11:22am
by Guest
No, I'm running it on pocket pc directly :(
After a few test, it appears that it's the fault of the drawtext function (that is slower in gd204 than in gd104)
Once again... is it possible ?

PostPosted: Dec 1, 2003 @ 11:30am
by Johan
No, it should actually run much faster on GapiDraw 2.0 since it is now using 32-bit reads and writes.

Check your parameters - the function call has changed in 2.0 and you might be passing some flags in by mistake.

PostPosted: Dec 1, 2003 @ 11:36am
by RedBug
Yes, in deed :)
I add 0,NULL in place of &pwidth :)
I'm on ppc2002... I'll try with a ppc2003 device to see if I have the same problem