PocketMatrix forums

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

GapiDraw for Sharp Zaurus (Qtopia) or PalmOS?

Anony Mouse · 19 Feb 2003, 09:31 UTC
I think GapiDraw is a very good game toolkit for Pocket PCs. But it can even be better, if more
platforms are supported. I, especially, would like a version for the Sharp Zaurus. I think a port to the Sharp Zaurus would be possible, because this device
have similar hardware to modern PocketPCs. You can find more developer informations about it at:

http://www.zaurus.com/dev/

Btw. A port to the new Palm device with ARM CPU would also be nice.
warmi · 25 Feb 2003, 18:33 UTC — ZSurface
Check this out.
Very similar to GapiDraw , it even uses the same format for fonts.

http://killefiz.de/zaurus/showdetail.php?app=914
Anony Mouse · 26 Feb 2003, 09:30 UTC
O.K. ZSurface seems to be nice, I will have a closer look at it. At the moment I use the SDL library on the Sharp Zaurus but the Zaurus version of this library is not really finished and stable.

But, I think, a standard game API for the Zaurus would be a good thing. At best it should be included in the standard Zaurus ROM. Maybe a completed SDL can be this API. But GapiDraw also would be nice, because porting of some games from the PocketPC platform to the Zaurus would be easier. Maybe one cross platform Game API for PocketPC, PalmOS 5 and Qtopia (Zaurus) would be interessting for a lot of developers because with this, writing games for this three platforms would be a lot easier.
warmi · 26 Feb 2003, 17:08 UTC — Zaurus
I have tried SDL but it is quite slow ( much slower than GapiDraw not to mention ZSurface.)

It wouldn't be hard to write a little wrapper on top of GapiDraw and ZSurface , in fact this was my goal when I started working on ZSurface.

I don't know anything about Palm though ..
Anony Mouse · 28 Feb 2003, 10:36 UTC
The spped of the SDL is, at the moment, not the problem for me, but it is to unstable on the Zaurus. Also the Zaurus version misses some of the SDL functions at the moment. If I have some time, maybe, I try by myself to make the SDL better.


It wouldn't be hard to write a little wrapper on top of GapiDraw and ZSurface , in fact this was my goal when I started working on ZSurface.


Sorry, but I don't understand, because english is not my native language. What was your goal when you started ZSurface? Do you mean a GapiDraw API, or a subset of it, for the Zaurus which is implemented via ZSurface (GapiDraw functions wrapped to ZSurface functions)? If this is your goal, maybe I would help, if you want help. Unfortunaly I have not to much time, but maybe a little help is better than no help.
warmi / anony mouse:

I am currently preparing a scientific paper discussing the performance of different graphics platforms for handheld computers.

Would any of you have the time to port a simple performance demo to the zaurus using SDL? I was thinking of around 100 color keyed sprites and simply measuring the time in ms to draw them all.. I will have the GapiDraw demo done by Tuesday and will post it to this forum then. It shouldn't take many minutes to port it to SDL...
Anony Mouse:

What I meant was a class that sits on top of ZSurface/CGapiSurface.
I actually already have a code like that.
In fact for my game Anigma ( which is a PPC port of Zaurus game Puzz-le) I wrote entire framework built on top of CGapiDraw ( WR_Application,WR_Windows, WR_Painter, etc )
I am in process of creating version of that framework that runs on top of ZSurface/QPEpplication
- this is as a part of my new game which I write for both Zaurus/PocketPC.

SBL:

When I wrote ZSurface, I created a demo very similar to GapiDraw MFC demo using the same set of rotating sprites with a scrolling background etc - I ported that demo to use SDL and Zaurus equivalent of Windows GDI to see how it compares to my ZSurface class ( asm code.)

But anyway, yeah, I can quickly create SDL version of your upcoming demo and time it for you on my Zaurus.
One thing to be aware of:
We are talking here about C code and I have noticed that gcc crosscompiler for ARM cpu generates inferior code that Microsoft Embedded VC++.
So what you might end up doing is measuring quality of the compilers instead of measuring actual speed of hardware.
Will see what we get from SDL demo but I can tell you right away that my asm code ( which obviously doesn't suffer from any compiler differences problems) runs at around 450-500 sprites at 30 fps on my Zaurus as opposed of 290 sprites on my ipaq 3835.
Both are powered by 206 ARM CPU with the same screen resolution/depth etc ...
Anony Mouse · 04 Mar 2003, 12:55 UTC
warmi wrote:
What I meant was a class that sits on top of ZSurface/CGapiSurface.
I actually already have a code like that.
In fact for my game Anigma ( which is a PPC port of Zaurus game Puzz-le) I wrote entire framework built on top of CGapiDraw ( WR_Application,WR_Windows, WR_Painter, etc )
I am in process of creating version of that framework that runs on top of ZSurface/QPEpplication
- this is as a part of my new game which I write for both Zaurus/PocketPC.


Why have you decided to write a layer on top off ZSurface/GapiDraw and not to write a GapiDraw compatible layer (maybe only a subset) for the Zaurus? If you do this, the WR_... layer between your games and ZSurface/GapiDraw would be unnecessary and you can write your games direct with the GapiDraw functions.
warmi · 04 Mar 2003, 18:29 UTC — ZSurface
Well, the simple reason is that I have no control over GapiDraw and GapiDraw API and having that thin layer on top of it allows me to substitute another API or do pretty much whatever I want...
Anony Mouse · 05 Mar 2003, 12:35 UTC
Hmm. Yes, from your point of view, this is a simple and good reason. But a GapiDraw compatible API on the Zaurus would be nevertheless nice.