PocketMatrix forums

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

Could someone please test this...

I just got done porting this from GDI to GapiDraw, and I need someone, preferably with 1st gen ARM, MIPS and SH3 devices, to test it. It is a Jezzball clone, for those who remeber the entertainment packs from the days of Win 3.1. It still has a few game logic bugs, which are all minute, and the interface still needs a little work ( read: options ). I mainly need it tested for speed. It runs at a reasonable speed on my iPaq 2200, but it won't run as fast as I'd like it to, so I can't really implement speed options. This makes me wonder if it is too slow on older devices.

I would greatly appreciate any testing anyone could do, and welcome any comments and suggestions that you may have.

The zip file ( picture is link ) includes all three PPC processor versions and the desktop version. I didn't include the appropriate gd204 dlls in the zip because I thought everyone here should have them, but if you need them, I would be glad to add them in.

<a href="http://evs.dellama.com/file/BounceAlpha6.zip"><img border=0 src="http://evs.dellama.com/file/software_bounce.png"></a>
Played smooth and steady on my jornada 568.

If you update the .exe to display the frame rate figure/render time then I will let you know what I am achieving.
Thanks. I didn't realize it was that easy to add in a framerate counter. Anyways, I have posted the updated zip.

I get a fairly steady 40 fps even up to very high levels.

CHEAT: tap the very lower right-hand corner of the screen to move on to the next level. It will even bring you back to life in the next level if you have died.
12.15 ms
70 fps
If I select the up/down line and tap the right hand bottom corner at where the figures for "T:" are then the line starts drawing and eventually bombs out my PDA. You may have to tap in that area a few times to get it to happen.

Exception: 0xc0000005
Address: 0001406c

The sideways draw just draws a line across the blue box but does not cause an exception.

How are you picking up the start position for the line to be drawn? AFAIK the resolution for the stylus is not the same as the screen, so when you get the co-ordinates for where the stylus is it may be a couple of pixels out. There are people better qualified then me to talk about this and I am sure that there is a thread somewhere near the top of this forum talking about stylus input and velocities.
Thanks, I was using the wrong variable to make sure the tap was on the playing area. I fixed the issue and posted the new zip.

Do you have any idea why it runs fullspeed ( 70 fps ) on your older machine, and only 40 on my supposedly top-notch brand new machine? My only guess is that the game loop is fairly memory intensive. Could that be it?
What variant of the 204 GD dll are you using on your 2200?

I will try to test it on my 2210 when I finish work to see what figures I get and to see if it makes a difference whether it is the PPC2000 or PPC2003 version.

Have you installed the gx.dll locally? The 2200 should already have it in the windows directory. I have heard of some games running slow if you install the older gx.dll - http://www.pocketmatrix.com/forums/viewtopic.php?t=12153
I have the factory gx.dll, and I have tried both the 2000 and 2003 gd204 dlls. This is strange, though, I was using a buffer in my game loop and returning that buffer to the frame processor. When I cut out that intermediate buffer, my fps jumped by three. There is a lot of blitting done on every fram that is processed, but that can't really be helped. I will have to play around with it some more and see if I can't get it any faster on my device.

I have also cut the target framerate back to 60. That is about the right playing speed for this game, but I haven't posted the new version, as I am also working on the last two or three known bugs.
Okay, I'll just test the current version on my 22** when I get home and confirm the figures for you.
Just out of interest you say that there is a lot of blitting in every frame, is the line that is drawn just a lot of surfaces stacked?
There is a background surface that is the size of the playing area that gets blitted every frame. That one holds the filled in area and the background, which will be in the next build. Then, if there is a red or blue line, it is blitted as a rectangle from it's start to end. Then, each ball is blitted ( now with alpha blending, so you don't see the white corners... maybe a better blended graphic later ). Finally, the panel is blitted if something on it has changed. That involves a rectangle, some bitmaps, and a few drawtexts.

I guess it isn't really THAT much, but there are also a few other blits, a horizontal line at a time, in the fillin algorithm to the background surface. That is what puzzles me. There isn't really that much going on, but it is still comparatively slow on the 2200.

I did some testing on the game loop without the drawing, and it takes ~5 ms per frame ( 53xx ms to run the loop 1000 times ) to run the loop. It is strange, but I am getting better performance from the GDI version than the GapiDraw version on my 2200, but the GDI version doesn't look as good, and my timer wasn't very reliable.
Is your 2200 series running Pocket PC 2002 or Windows Mobile 2003? If its running the latter OS, be sure you're not referencing the wrong gx.dll (ie a local version rather than the version supplied with the device) as that may cause a slowdown.
Just tested it on my 2210. Crikey, thats one hell of a difference.

24.7 ms
40.32 fps

30 fps drop 8O

So is the line that is drawn a "blit" or a FillRect?
StarFury: The lines are all FillRects. The only actual blits I use are BltFast on the background, the buttons, and the balls.

ppcStudios: it runs WM2003. I haven't replaced my gx.dll on the device, so I know it is fine there. Does GD statically link gx.lib? It shouldn't make any difference should it?

I did some more testing, and running absolutely nothing in the frame processor, I top out at ~48 fps.

I also tried to unhook the game movement from the framerate with a timer, but that just made the game movement even slower.
gx.dll is dynamically linked - remember the OS will look in the local directory first for required dll's before looking in the system paths. So, if you have gx.dll in your application directory, it will snag that one first.

The 2200 series may just be another in the long list of slow ppc devices. You might want to run the GapiDraw mfc sample and see how many sprites your device can manage at 30fps. The old iPAQ 3635 posted considerably better performance numbers than most of the newer devices (there's an old thread on this forum posting the numbers).
If you are using gd2.04 in your game, make sure that you are using the PocketPC2003-ARM dll version that was included in the package. This one is optimized for devices running Windows Mobile 2003 OS. The PocketPC2000-ARM version is the one for older ARM and XScale devices.

Hope this helps,

Erick :)
I have tried them both, and the difference is only ~1 fps in the favor of the WM2003 dll. Does anyone else have an XScale device that performs this poorly in comparison?

EDIT: I ran the MFC sample, and it tops out at 230 sprites in portrait and 180 in landscape.
I updated the zip with the latest changes, which include the background, a preliminary options screen with a few options, and a more appropriate desktop version.

I would greatly appreciate any input on the slightly more cramped interface and the new options screen, as well as any other comments anyone may have. I would also greatly appreciate some speed feedback from someone with a MIPS and/or SH3 device, though I am guessing that MIPS will be about as fast as my 2200 and SH3 will be nearly unplayable.
Speed was fine on my 150MHz MIPS-based Casio E-125.
My Hp5550 gives the same result as the 2210. This is your previous version mind.