PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

GapiDraw MFC benchmark

I am wondering what kind of frame rates ( or rather sprite counts) people are getting on different PDAs when running GapiDraw MFC benchmark.
On my devices I got (default orientation):

Ipaq 3835 - 160 sprites at 30 fps
Toshiba e335 - 50 sprites running at 27 fps. Most likely would be even lower if not for the fact that MFC is hardcoded to display minimum of 50 sprites.

PS.
Precompiled ARM excutable for this benchmark can be found at GapiDraw201\samples\MFC\ppc\ARMRel .
Dell Axim 400mhz
averages around 60 sprites

There is some modified code knocking around by Walter Rawdanik that pushes the count up to 80ish on my axim. It uses simple arrays rather than CLists for the spite data and has some ARM optimized blitting routines. Can't remember the link though.


Rob
iPAQ h5450 (XScale 400MHz)
67-69 sprites at 30 FPS

Lol. This is the slowest I bet. :) My ipaq really is darn slow.
On my iPaq 3850 I also get between 155-170 sprites.

If you rotate the display on the iPaq you will get better scores since the screen internal format is landscape (i believe it's the reason).

I get 270 sprites when I rotate the display either 90 degrees clockwise or counter clockwise.

I'd be curious to know the scores of the slower devices in landscape mode.

--Eric
Efortier:
Well, I was trying to get an idea how wide is the performance gap between various PPC devices out there... and, to tell you the truth, it is shocking to see difference of 200-300% ( even more so considering that hardware-wise these are supposed to be comparable devices )
efortier wrote:
I'd be curious to know the scored of the slower devices in landscape mode.
--Eric


My Axim drop to around 50 sprites per frame in landscape.
Jornada 568:

160 sprites in portrait
180 sprites in landscape
iPAQ 3635: 165 sprites portrait, 297 sprites landscape

Casio E125 (MIPS): 85 sprites portrait, 72 sprites landscape

I think I'll hang on to my iPAQ ;)
Yeah, my older ipaq which is the 3760 shoots at around 160 sprites (portrait) and 285 sprites (landscape) at 28 FPS.

The older models sure have a large difference with the XScale ones in terms of performance.
The reason performance differs between landscape / portrait mode is that the sprite bitmap is 32 pixels wide (16 bytes). Reading from it in a mode compatible with the display alignment will cache two pixel rows simultaneously with one read.
I think one reason the Axim/Xscale is so much slower is that it appears to take a lot of cpu to transfer the back buffer across to the MediaQ LCD controller.
blackrob: Yes, that's the primary reason. I have contact with MediaQ and am waiting for information and an SDK to improve performance on these devices.
iPAQ 3950: 100 sprites portrait, 250 sprites landscape

landscape is 2.5 the speed of portrait... very funny :?!
gersen: That's basically due to the way the sprite bitmap is stored. When row2 [x=0, y=1] == row1[x=0, y=0] + 16 bytes, the cache will store two rows of sprite information with one memory read. If I had used a 64x64 pixel sprite the performance in landscape and portrait mode would be identical on all devices.

The reason the performance difference is less on the 548 is that it has a smaller read cache that the ARM CPU.
sbl, I know It's not your fault, on my graph lib that are less optimized than yours I get lower score so... you have made a very good work on GD but the ppc are the games developer's nightmare :)
warmi · 30 May 2003, 17:12 UTC — mediaq
SBL:
I looked briefly over mediaq docs for their MQ-1100/32 chip and appears that there is no API exposed to user land appa - everything is handled on a driver level in GDI.
In fact I read somewhere that they advise developers to use GDI ( it does speed up GDI based graphic code quite a bit .)
Of course, as far as I am concerned GDI is just too damn limiting ...

Another option for speeding up GApiDraw on a devices like Toshiba is to introduce concept of update rectangle for a flip() call ( thats where slowdown is most noticeable.)
It won't do much good for games that refresh entire screen ( scrolling etc) but it might help a lot for games that rely on dirty rect handling.
On the other hand, considering that PXA250 is practically dead and all new devices use/will use PXA255, perhaps it is not worth the trouble.
gersen wrote:but the ppc are the games developer's nightmare :)

The PC arena is a nightmare. The PPC devices are a joy compared to it.

--Eric
blackrob · 30 May 2003, 21:10 UTC — mediaq
warmi wrote:
SBL:
I looked briefly over mediaq docs for their MQ-1100/32 chip and appears that there is no API exposed to user land appa - everything is handled on a driver level in GDI.


it certainly is possible to access and program the mediaq chip. do a google for red mercury mediaq
On Palm OS perhaps...
Anyway, I never said it wasn't possible - I just wasn't able to find any sort of reference related to programming this chip from the application level.
warmi wrote:
On Palm OS perhaps...
Anyway, I never said it wasn't possible - I just wasn't able to find any sort of reference related to programming this chip from the application level.


Well it's not exposed through any API :) You have to get down and dirty with your memory mapping. The MediaQ controller registers and video buffer are mapped to a specific address range which are possible to access using plenty of VirtualAlloc etc.

It is a nightmare though. The mediaq doc is as dry as toast and mediaq themselves never respond to requests for information.

Rob