PocketMatrix forums

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

Unbelievebly slow performance on Siemens Mobic HPC

Hi all. First of all, thanks for a great API that actually works on HPC. Unfortunately for me, the performance is unbelievebly slow on the Siemens Mobic T8, running WinCE 3.0/HPC on a MIPS CPU (don't ask me how fast it is, cause it's not in any spec. I've found so far.)

I guess one of the reasons for the slow performance is that it's running in 800x600 instead of 320x240 for a normal ppc fullscreen mode. But I'm starting to suspect that this platform really sucks (and it's hpc for starters. Can't find anything good for hpc.)

I've downloaded the PocketFrog and Conans caveman-sprite sample, compiled it and run it. The framerate on the blit and rotate demos are, believe it or not, 3 fps!!!. The Caveman-sprite demo is approx. 1 fps or slower (brrrrr).

Ok. So why am I posting this note? It's becaus I'm a M.Sc. student from sweden who's writing a GUI with 3D visualization of a 2D map (everything is of the same hight = 3m). The GUI is for a mobile recon robot used by the military. So the PDA has to be of industrial strength so it won't break. The Siemens Mobic T8 seems like a good product on the outside (can be dropped from 2m on a concrete floor) but it really sucks on what counts: performance.

I'm thinking of exchanging the Mobic for Advantech's MobiPanel MPC-100 (also has a 800x600 display). I suspect that it runs on PPC architecture (where you can use PocketGL and other graphics tools). And I know it has the StrongArm 206 Mhz CPU (I recon this is supstantially faster than Siemens MIPS processor)

Anyways.. to the punchline:
1. Does anyone know how the MPC-100 performs on graphic tasks?
2. Does anyone know if the MPC-100 is running the HPC or the PPC version of WinCE? (don't get any answers from Advantech)
3. Is there some way I can tweek pocketFrog to be faster on the Mobic? (I suppose not, but hey, got to ask)

Thanks.. sorry for the long note though.
It also has been my experience with the Jornada 720 HPC (640x240) --> The performances were really bad.

I've tried to use a 320x240 window to compare it with my PocketPC, and the performances doubled!

This makes perfect sense... PocketFrog doesn't support page-flipping to being the backbuffer to the display. It has to copy the entire buffer each frame. As resolution goes up, performances drop. DirectDraw does exist for Windows CE 3.0, unfortunately it isn't part of the PocketPC (and Handheld PC) platforms. Because of this, there is no "standard" and "easy" way to provide true page flipping. It might not be even possible do to it on some devices.

In any case, the only solution to this problem is to provide a (list of) dirty rectangle(s) to PocketFrog's Update() method. PocketFrog will then only update the parts of the screen that needs updating. This functionality is not there yet and will be added soon. (Note that the API already allows you to provide an update region).

All this is the main reason I decided to sell my Jornada 720 on E-Bay... I wanted to be able to write games on it (using some scripting language such as "Small C"). But the performances werre so bad that I changed my mind.
Conan · 09 Oct 2002, 21:42 UTC — Sprite demo performance plus J720 etc
Firstly I should point out that the background scrolling stuff in my sprite demo is really inefficient & is only there to support the sprites which in themselves are as fast as PF could make them without dropping classes for inline code. While I have a J710 I have not tried to improve the frame rate on my code however the existing PF demos run quite well though of course slower than PocketPC.

Re: coding on the device I have used PocketC in the past but it's not really a 'C' and recently I've tried various text editors to find a good code editor without success but having access to a new/small/light XP prof laptop makes it silly to try to code on the J710 but I still love the HPC format & won't part with my device.
adde · 10 Oct 2002, 00:03 UTC — Changing Window size helped a bit
Heh, wonder why I didn't try changing windowsize myself when I figured that the resolution had something to do with the poor performance.

Anyways. I've changed the resolution to 320x240 and the perfomance increased, but not enough. 16 fps is still a bit too slow. (although I have to confess it's a bit higher than I hoped for, having only 3 fps in fullscreen). Changing Orientation doesn't do anything.

Also, how do I change the windowsize in an easy way. (for future reference) Now I just changed the sourcecode in game.cpp but I recon there's got to be another way of doing this.

And can you create a whole new window from within a pocketFrog window? Say I have a fullscreen window for the 2D GUI, and then create a new for the 3D.

Maybe there is some sort of manual or documentation somewhere other than browsing through the source code.
You could use the clipper... Simply set the clipping to the desired rectangle and all drawing will be clipped. This works with all rendering primitives.

As I said earlier, it doesn't work yet with the Display::Update() method, but it should be there in the next version.

In the meantime, you can either 1) add the functionality or 2) Use a Blit from the backbuffer to the frontbuffer (assuming the frontbuffer is available).