This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Speed reduction when migrate from gapidraw 1.04 -> 2.04


Speed reduction when migrate from gapidraw 1.04 -> 2.04

Postby redbug » Dec 1, 2003 @ 10:29am

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 ?
redbug
 


Postby Johan » Dec 1, 2003 @ 11:00am

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
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Guest » Dec 1, 2003 @ 11:22am

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 ?
Guest
 


Postby Johan » Dec 1, 2003 @ 11:30am

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.
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby RedBug » Dec 1, 2003 @ 11:36am

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
RedBug
 


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron