PocketMatrix forums

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

Bought a new iPAQ 2210

Pejo Software - Per · 09 Aug 2003, 19:28 UTC
Tested my game Beshaped running GapiDraw with a new iPAQ 2210 running Pocket PC 2003 and graphics runs smoother on my old iPAQ 3600. On the 2210 sometimes the motion seems a little jerky. This was not what I had expected! Perhaps it is only noticable with my trained eye but irritating nevertheless. I recompiled the game with EVC 4 and the Pocket PC 2003 SDK but that did not help. I also experimented with some different thread priorities but no luck there eighter! I have not yet done any more detailed investigations (framrate etc).
Anyone that can explain this?
Have you made sure to use the GapiDraw DLL specific for PocketPC 2003?

You are the first person I know of who purchased a PPC with 2003 installed on it, and when I last read a review of the 2210 (or 2215, it's the same device sold through a different channel) it was supposed to be faster than anything else, and I quote the reviewer:

"it can easily be summed up by saying it's overall better than any other Pocket PC on the market" ... So I guess "overall" is relative, but the numbers were there to prove it was fast.

Anyone can shed some light on this?

--Eric
Just a thought, did you use the 2003 gx.dll ? Or you installed the old gx.dll? Try the game using 2003 gx.dll and let us know.
My 2210 cannot get above 50 fps. I compiled a test app that does nothing but exit when you tap the screen, and it never got above 50 fps, though the target framerate was 100. I have also tried every ARM version of the gd dll that I could, and the difference is almost non-existant.

This apparently also happens with the high end WM2003 iPaq (5455?).
Pejo Software - Per · 10 Aug 2003, 09:16 UTC
Interesting.
To confirm this I did the following tests:

MFC sample
2210: ~240 sprites.
3600: ~160 sprites.

TileDemo sample (target framerate set to 100)
2210: framerate ~= 41 fps
3600: framerate ~= 62 fps

P.S. Yes I am using the correct dlls.
The parallax scroller that I'm toying with maxes out at 43fps on the iPAQ5550; my 568 gives nearly double that. The 2210 that I had (R.I.P) gave the same performance as its bigger brother. This is using a PPC2000 build and the non WM2003 GD204.
With an ARMV4 build and the WM2003 GD204 dll the difference is about 1 fps.
Pejo Software - Per · 10 Aug 2003, 10:52 UTC
I measured some times with my game Beshaped on my 2 devices Here is what I got:

iPAQ 3600
Average time drawing to the back buffer = 3 ms.
Average time flipping the back buffer = 4 ms.

iPAQ 2210
Average time drawing to the back buffer = 2 ms.
Average time flipping the back buffer = 19 ms!

One could argue that a framerate of ~50 FPS should be enough and that you won't notice any difference with higher framerate, But I did!

It would be interesting to know why flipping takes so much more time on the 2210.
I'm going to pull a Bill Gates here:

"40 FPS should be enough for anyone!"

Seriously though, I know this isn't the answer everyone wants, but it does tend to work... If you design your games to run at an artificially low frame rate, but still a frame rate that is sufficient, 40FPS being my choice generally, these problems don't arise.

I write all my code to target that frame rate. I then do all my testing on a now antiquated 150MHz MIPS-based Casio E-125. As long as the frame rate is steady on it, I figure I have no worries on any "modern" device. I could wind up being wrong, maybe some odd device has a specific problem, but that's what it will then be, a device-specific problem.

Again, I know this isn't an answer everyone can live with in every case, and it's certainly not a revolutionary idea by any stretch, but if you can follow this rule, I think your lives will be easier.

(sorry, doesn't address the specific issue of this thread, but I just had to open my mouth :) )
I tried unhooking the game speed from the framerate, but it got even slower, no matter what delay I put on the the timer for the game loop.
PejoSoftware wrote:iPAQ 3600
Average time drawing to the back buffer = 3 ms.
Average time flipping the back buffer = 4 ms.

iPAQ 2210
Average time drawing to the back buffer = 2 ms.
Average time flipping the back buffer = 19 ms!

Well I think these numbers, if correct, speak for themselves. The time to either flip the backbuffer, or copy it to the display is higher than on other devices.

One might suspect slow memory, slow video memory or a slow video subsystem. These numbers are not pretty, but they are interesting.

Anyone knows what video chip the 2210 use and it it is indeed the culprit in this case?

--Eric
Yes, the iPAQ 2210 uses the MediaQ 1178 chip. The video memory returned by GAPI is on the MediaQ chip and accessing it is much slower then DRAM. This is what is happening.
From what I have read about this chip back in june, it was supposed to be the cure to all ills with it's great speed and its 64 bit 2D engine.

I guess that was more advertising mumbo-jumbo.

--Eric
efortier wrote:
From what I have read about this chip back in june, it was supposed to be the cure to all ills with it's great speed and its 64 bit 2D engine.

I guess that was more advertising mumbo-jumbo.

--Eric


Well it ain't faster with GAPI (and indirectly GapiDraw), but stay tuned for PocketHAL coming soon.
Thierry wrote:Well it ain't faster with GAPI (and indirectly GapiDraw), but stay tuned for PocketHAL coming soon.

Without prying too much into the PocketHAL project, does this mean there is a software way around the problem?

And can PocketHAL and GapiDraw coexist? (even if I don't really know what PocketHAL is ;) )

Thanks!

--Eric
BurningSheep · 14 Aug 2003, 10:32 UTC
Sure they can coexist, they are 2 different things really. PocketHAL is low-level (like the name says, a hardware abstraction layer), GapiDraw is much higher level providing the user with functions to enable us to build games quickly (like PocketFrog). It would even be possible for Johan to build GapiDraw on top of PocketHAL, if he would like to shift his focus more on the high-level functionality of GD.
Just to let you know.. I also bought a 2210 and will investigate the use of video surfaces on this device. While memory->video memory transfers still will be slow, using hardware blits and fills will improve things significantly... GapiDraw already supports video surfaces using its built-in HAL, so it will not result in any SDK changes...
By the way.. The 2210 is (except for the video bus) one seriously cool device... :D
Pejo Software - Per · 15 Aug 2003, 18:38 UTC
Johan great news! I thought that you wouldn't support the MediaQ chip.
I guess now that you own such a cool device (I agree with you there) you must optimize for it :wink: .
Can you give us a time table on this work.

Does anyone have any numbers on the MediaQ chip: video memory size, performance etc?
PeJo: If you find any documents related to programming the MediaQ please let me know.. I downloaded most of the documents from mediaq.com - apparantly one of these contains programming tips, I just can't seem to find it.
Pejo Software - Per · 18 Aug 2003, 13:32 UTC
Well.. I did not manage to find any documents that directly explains the programming of the chip. I guess The WinCE device driver package would be a good thing to have.
I would reccomend contacting MediaQ and/or HP and ask for assistance. I think that that should be in their interest too.
There also seem to be others here on Pocket Matrix that are working with the MediaQ chip (Thierry, rcp). Why not trying to get some info out of them.