PocketMatrix forums

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

Speed Survey

hi,

after i recognized that the iPAQ 5450 has very slow GAPI video memory access i want to do a survey so see how other devices perform on that.

to test the speed on your device download the small fillrate tester from http://www.ims.tuwien.ac.at/~daniel/pocketpc/filltest/FillTest.exe.

the fillrate tester tries 5 different video access methods. don't be impatient if the screen stays black in the beginning. at first 2 GDI tests are done which could be quite slow on some devices...

the 5 tests are:


    *) GDI Comp: GDI BitBlt a bitmap created with CreateCompatibleBitmap()
    *) DIB DIB: GDI BitBlt a bitmap created with CreateDIBSection()
    *) GAPI 16-bit: fill gapi memory using 16-bit writes
    *) GAPI 32-bit: fill gapi memory using 32-bit writes
    *) GAPI memset: fill gapi memory using memset()


i have the following results to share:

on the iPAQ 5450:

    GDI Comp: 49.6 fps
    GDI DIB: 12.4 fps
    GAPI 16-bit: 47.8 fps
    GAPI 32-bit: 55.5 fps
    GAPI memset(): 55.4 fps


on the iPAQ 3970:

    GDI Comp: 20.3 fps
    GDI DIB: 11.7 fps
    GAPI 16-bit: 122 fps
    GAPI 32-bit: 240 fps
    GAPI memset(): 224 fps


these tests show the absolut maximum (and vevry theoretical) framerate a game or graphic application could achieve.

thanks,
DANIEL
Ipaq 3850:

GDI comp: 80.6fps
GDI DIB: 18.3 fps
GDI 16-bit: 39 fps
GDI 32-bit:45.09 fps
gapi memset(): 45.1 fps
Axim 300MHz, no overclocking:

At 300MHz:
GDI Comp: 42.9 fps
GDI DIB: 13.2 fps
GAPI 16-bit: 43.7 fps
GAPI 32-bit: 47.92 fps
GAPI memset(): 48.1 fps

At 200MHz:
GDI Comp: 42.8 fps
GDI DIB: 13.2 fps
GAPI 16-bit: 41.5 fps
GAPI 32-bit: 50.89 fps
GAPI memset(): 45.1 fps

At Automatic Speed:
GDI Comp: 42.4 fps
GDI DIB: 13.2 fps
GAPI 16-bit: 41.6 fps
GAPI 32-bit: 48.26 fps
GAPI memset(): 51.3 fps

I re-ran the test a bunch of times. The 200MHz setting is always faster for GAPI 32-bit. Note that with the switcher bar running, everything's about 2+ fps slower.
drgoldie: You've removed the extra startup program, right?
i did remove this dk app, the bio stuff and some other app, but it did not make a big difference. i read posts from people stating that removing those achieved huge speedups on their devices but i do not see that on my iPAQ (it seems somehow it was almost at maximum speed before).

i find it very interesting to see the big differences on the different platforms.
up until now i thought that the 240fps i get on my 3970 were standard, but these replies show me that the 3970 is obviously a real gapi pusher.

on the other side i have seen people claiming that they get far higher rates using PocketGL than i do.

what i really do not understand is why HP chose this strange mediaq chip. i know that it can do GDI lot faster that the 3970 did, but seeing the result of the 3850 shows me that HP seems to mess around with the graphics which each new series.

mediaq told me to use bitblt instead of gapi, but obviously the chip is not fast doing this either...

DANIEL
HP Jornada 568 (206 MHz StrongARM):

GDI Comp: 180.8 fps
GDI DIB: 19.0 fps
GAPI 16-bit: 146.4 fps
GAPI 32-bit: 294.99 fps
GAPI memset(): 290.7 fps
A classic iPAQ 3660 (StrongARM 206MHz)

GDI Comp: 30.9fps
GDI DIB: 13.4fps
GAPI 16-bit: 145.3 fps
GAPI 32-bit: 293.26 fps
GAPI memset(): 293.3 fps

It would be interesting to add one more test which is to perform the last three tests to "normal memory" that has been marked as uncachable. Use VirtualAlloc to map some memory this way. This could provide some hints to what's really going on, i.e. if there is something special with the video memory or if writing memory is just slow in general.

The last three tests are also measuring the quality of the compiler and the memset function itself. If you've built the app with the evc3 compilers it will be optimized for the StrongARM. If I remember correctly the StrongARM and XScale differ quite a bit when it comes to how you want to organize your writes to get fast code. This was used as an explanation for why the 400MHz XScale devices were not much faster than the StrongARM ones (The OS is optimized for StrongARM).

You could try to build it with the compiler for Windows CE.NET 4.x, there's an option in it to optimize for XScale.
I thought the Jornada 568 would score high. I've had mine since August and it is the fastest ARM PPC out there. I'm going to test it overclocked to 236MHz in a while, because It really goes then. Using PocketSnes Bleeding Edge, with sound turned on, I can get about 70% of fullspeed with Zelda, which is pretty playable.
Orpe wrote:
It would be interesting to add one more test which is to perform the last three tests to "normal memory" that has been marked as uncachable. Use VirtualAlloc to map some memory this way. This could provide some hints to what's really going on, i.e. if there is something special with the video memory or if writing memory is just slow in general.


i'll do so on monday when i'm back at the office...
we have very high demands in fast devices here. so if somebody has good suggestions for further speed tests to be added please tell me.

Orpe wrote:
The last three tests are also measuring the quality of the compiler and the memset function itself. If you've built the app with the evc3 compilers it will be optimized for the StrongARM. If I remember correctly the StrongARM and XScale differ quite a bit when it comes to how you want to organize your writes to get fast code. This was used as an explanation for why the 400MHz XScale devices were not much faster than the StrongARM ones (The OS is optimized for StrongARM).


well, if you have a look at the 3970 results you'll see that it is very fast in gapi access although it is a xscale device.

i did a 16x loop unrolling. so there should not be much room left for compiler optimizations...

see for example the 32-bit write code:

Code:

register a = PixelColI;
for(num=num/32-1,i=0; i<num; i++)
{
bufferI[0] = a;
bufferI[1] = a;
bufferI[2] = a;
bufferI[3] = a;
bufferI[4] = a;
bufferI[5] = a;
bufferI[6] = a;
bufferI[7] = a;
bufferI[8] = a;
bufferI[9] = a;
bufferI[10] = a;
bufferI[11] = a;
bufferI[12] = a;
bufferI[13] = a;
bufferI[14] = a;
bufferI[15] = a;
bufferI+=16;
}



Orpe wrote:
You could try to build it with the compiler for Windows CE.NET 4.x, there's an option in it to optimize for XScale.


that sounds very interesting. i didn't know that the ce.net tools could be used to develop for the ce 3.0 devices. please tell me where to find more about this.

btw: intel says that there will be an xscale optimizing compiler by them comming out in april for ce 3.0 and .net.

DANIEL
drgoldie wrote:
i did a 16x loop unrolling. so there should not be much room left for compiler optimizations...


Yes, but the compiler also performs instruction selection and scheduling. The ideal way of doing that is very processor specific, even to the point that the best code for StrongARM and XScale can differ quite a bit.

drgoldie wrote:
that sounds very interesting. i didn't know that the ce.net tools could be used to develop for the ce 3.0 devices. please tell me where to find more about this.


Well, you cannot use the ce.net tools as such but you can steal the compiler and some other tools and fool evc3 into using them. There are a few ways of doing this but I usually just rename the "C:\Program Files\Microsoft eMbedded Tools\EVC\WCE300"
directoy to WCE300.old or something and take the corresponding WCE4xx directory from evc4 and rename it to WCE300. Works perfectly.

However because evc3 performs some kind of validation on the switches you specify for the compiler it can be hard to actually send some switches to the compiler that are not understood by evc3.
I did similar memory bandwidth benchmarks for a number of devices last July. I wrote code to do reads, writes, read-modify-writes to/from cached/uncached system memory and video (GAPI) memory. I also used GDI to do BitBlt to/from DIBs and compatible bitmaps. I threw in a FillRect GDI test to compare it against memset. Send me a message if you want to compare notes.

The primary reason that OEMs put video chips in their devices isn't for increased performance - it's to save battery power. The ATI and MediaQ chips can draw/update the screen using far less power than it would take the CPU to spin through a loop reading/writing memory.
Daniel: See if you can get any scores of the Zayo, it's outpreformed any other device in DivX (not counting the e740, which is aided) and in Quake so far.
ROFL, I just tried an old palm m100 (my sister's) on there using a similar program, and got a total comp of 1.6 framerate, and overclocked, i got a max of an 8.4 framerate. The program wasn't as good, though.
(TSC)Bender · 16 Mar 2003, 02:36 UTC
OMG, got nearly the same scores three times in a row. Heres the lowest of the three:

Razor Zayo:

GDI Comp: 94.2 fps
GDI DIB: 28.9 fps
GAPI 16-bit: 1123.6 fps
GAPI 32-bit: 1176.47 fps
GAPI memset(): 1190.5 fps

Every one is at least double of every score posted :lol:
Just ran the speed test on a new Axim:

GDI Comp: 43.6
GDI DIB: 20.3
GAPI 16-bit: 43.9
GAPI 32-bit: 51.2
GAPI memset(): 48.0

Major improvement in GDI DIB.

-John
Hey, hook us up with a MIPS build! Just for the f**k of it.
SmarterThanSam · 10 Apr 2003, 02:12 UTC
Presto wrote:
Just ran the speed test on a new Axim:

GDI Comp: 43.6
GDI DIB: 20.3
GAPI 16-bit: 43.9
GAPI 32-bit: 51.2
GAPI memset(): 48.0

Major improvement in GDI DIB.

-John


300 or 400 mhz?
That was the 300MHz.
My Viewsonic V35:

GDI Comp: 86.0
GDI DIB: 19.9
GAPI 16-bit: 104.6
GAPI 32-bit: 210.08
GAPI memset():204.9
WOW I just did it 3 times on my HP IPAQ 1910 at 200mhz here is the lowest:

GDI Comp: 155.8 fps
GDI DIB: 16.5 fps
GAPI 16-bit: 724.6 fps
GAPI 32-bit: 709.22 fps
GAPI memset(): 709.2 fps
Sorry about the double post-
Here is the lowest I got at 300mhz out of 3 times:

GDI Comp: 172.9 fps
GDI DIB: 21.8 fps
GAPI 16-bit: 734.6 fps
GAPI 32-bit: 719.42 fps
GAPI memset(): 714.3 fps
I dont dare do it at 333mhz 150bus lol
Fight wrote:
Sorry about the double post-
Here is the lowest I got at 300mhz out of 3 times:

GDI Comp: 172.9 fps
GDI DIB: 21.8 fps
GAPI 16-bit: 734.6 fps
GAPI 32-bit: 719.42 fps
GAPI memset(): 714.3 fps
I dont dare do it at 333mhz 150bus lol

Well After talking debaiting with my self for the last few mins I benchmarked 333mhz 150bus... The marks I got show that the h1910 is even more powerfull then the razor at 333mhz 150mhz.

GDI Comp: 256.4fps
GDI DIB: 28.1 fps
GAPI 16-bit: 1149.4 fps
GAPI 32-bit: 1136.36 fps
GAPI memset(): 1136.4 fps

edit/ and to make sure this was right i re did it and I get even higher results-
GDI Comp: 255.8 fps
GDI DIB: 28.4 fps
GAPI 16-bit: 1250.0 fps
GAPI 32-BIT: 1204.82 fps
GAPI memset(): 1250.0 fps
Zayo PXA250 ROM date 2002/10/24 version 1.20.27.4 ger

GDI Comp: 186,2 fps
GDI DIB: 32,7 fps
GAPI 16-bit: 1176,5 fps
GAPI 32-bit: 1162,79 fps
GAPI memset(): 1176,5 fps
Ok, is it just me that is suspecting the frame rate calculation this program is performing is flawed? Over 1,000 FPS on ANY device?? You'd be hard-pressed to get those kinds of results on a top-of-the-line PC running at 640x480.

I don't know, those numbers just sound a bit suspect to me...
Yeah, there's something amiss with those results.

You can get ~1000fps when using memset to fill a screen sized system memory buffer, but not uncached display memory. That takes roughly 3 to 4 times longer (250..300fps), unless you're going across a 16-bit bus (as with e740) and then it takes about 12x longer.
Hey its what I got. Any one who has a h1910 or razor should post there resluts.
We're not doubting what you got, we're merely doubting what the results really mean. Look at how the e740 preforms in benchmarks - very well.
Gotcha, still shows the h1910's got some spunk.
Yeah, it's not a question of whether the numbers posted are actually what the program is saying, I have no doubt they are accurate in that regard. I was just saying that the numbers themselves don't seem to be valid.

Just some very quick and dirty math, 240*320=76800, that's the number of pixels plotted per frame obviously. Now multiply that by a nice round 1000 FPS and you get 76,800,000 pixels per second plotted. Let's for the sake of argument say we're talking about single bytes here. I'm of course not taking a great many things into consideration, but does anyone believe any PocketPC is pushing around 76MB of data per second internally? Let's not even bother to question where it's moving to and from and what caching is involved and all the other factors that would come into play, does anyone think 76MB of data is getting moved ANYWHERE internally?

I'm open to the possibility that there's something I'm missing, but it just seems absurd to think those frame rates are realistic given my admittedly rough calculations.
Well, these PPCs do have a 100MHz 32-bit bus

Besides, the memory bandwidth of normal PCs is in the thousands, so that's no small difference compared to 76mb.