PocketMatrix forums

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

Regarding PQ for non-iPaq Devices

I've received several emails lately, in addition to the posts on this forum, regarding the creation of Pocket Quake versions for many other types of Windows CE / Pocket PC devices. First off, let me say that this is an open source project, and that there are others currently working on producing builds of Pocket Quake for other Pocket PC devices. We'll just have to wait to see when and if any results are seen. :)
Now, it is my opinion, based on my experience with the project coupled with the results of various benchmarks, that the only Pocket PC's powerful enough to run Quake in a playable fashion are the iPaq and @migo. In addition to those two devices, there are HPC Pros that have StrongARM processors that could conceivably run PQ. The problem here is that the Game API is not available for those devices (the direct screen access is absolutely required to bypass the perfomance penalties imposed by using Windows CE to do the display drawing). I do feel that it would be possible for a playable version of PQ to be created for some of the more powerful HPC Pro devices, assuming that some form of direct screen access can be achieved through 3rd party libraries. However, that is exactly the type of contribution I would expect to be accomplished by other Windows CE programmers with experience in that particular area. A further potential problem with HPC devices is the screen size. Quake is playable on the ipaq at a 240x180 resolution. Because Quake is a 3D rendering engine, any increase in output resolution results directly in a large amount of additional processing to render those additional pixels. For some reason I doubt it would be acceptable for the typical HPC owner to play Quake at a miniscule 240x180, when their screen is 640x240. It would of course be possible to stretch the image to fit better, but the result would be blocky (and still result in additional overheard / reduction in fps).

So, to sum it all up, the source code to Pocket Quake is available, and a relatively small amount of work would be required to modify it to build for any Windows CE device (any device meeting the RAM / Storage requirements could run PQ). However, unless the device is based on the 206 mhz StrongARM processor, I do not think the result would be playable. It is barely playable on the iPaq, whose StrongARM processor far outperforms the SH3 and MIPS processors in the critical area of floating point operations.

Dan East
Moose or Chuck · 20 Feb 2001, 11:21 UTC
Well that's a very dismal, negative post.
DSA is possible on the hpc pro, on my jornada 820.  I dont know how, but jimmy and another guy did it for Iron Rain.  Does this mean i can have quake on my hpcpro?
rob
Let me add that if a fixed point conversion of the floating point routines is successful (even if only a partial conversion of key areas is done), then this will 1) speed up the StrongARM version, and 2) possibly escalate a MIPS / SH3 version to the current performance level of the StrongARM version. While the iPaq is a whopping 12 times faster at floating point operations than the Casio E-125, it is only 1.35 times faster at integer operations. So a fixed-point conversion will result in a massive performance increase for MIPS devices. While I'm comparing devices, the iPaq is also a few times faster at memory access than both MIPS and SH3 devices. The iPaq has extremely fast memory access, even when compared to desktop machines. Quake is of course a memory-intensive app, and nothing can be done to work around this disparity between the devices. I don't know how much this would hurt performance on MIPS / SH3 devices, but it would have to result in further observable performance degradation for MIPS / SH3.

Now, the iPaq and @migo are faster devices than the rest of the Pocket PCs. If we were talking about PCs here, and someone said they wanted to run Quake on an old 486 with no floating point coprocessor, then there wouldn't be an issue. Their hardware is not up to the task. Period. They are too far behind in the technology-development curve. In the world of Windows CE, because we are talking about devices based on entirely different processors, we sometimes end up trying to compare apples and oranges. However, at the heart of this, it is no different than the 486 analogy I used above. Quake barely runs on the fastest Pocket PC's made. It should be very obvious that this does not bode well for the other devices. I am certainly not trying to be negative here. I am simply trying to present logical, hopefully accurate statements regarding the differences between various Pocket PC devices and how that would impact Quake's performance.

Again, if a fixed point conversion succeeds it should allow for a playable version of PQ at least on MIPS devices. I feel that is the only way Quake will be playable on the current production MIPS devices.

The performance statistics I keep referring to can be found at:
http://www.dalecoffing.com/General/VOBenchmark/VOBenchmark.htm
Note that while the Casio excels in some graphical areas, they represent calls to Windows graphical routines. Serious games would not be using Windows' drawing primitives, so those areas in which the E-115 excels are moot in this case.

Dan East
Last modification: Dan East - 02/20/01 at 12:42:13
so are we looking at port to my 190mhz, 32 mb jornada 820?  it would be sweet.
rob
you tell those non-ipaqer's Dan!
How about the new 500 mhz MIPS coming out?

It will be playable on them, right?
No offense, but speed is relative and code is key. If a Quake port can run on an iPaq, it can run on the Casio (bear in mind so many are overclocked to 180 or 200MHz these days). There's no really significant hardware differences between the ARM and MIPS devices that specifically allows Quake that the other doesn't. What is really comes down to is optimization, optimization, optimization. 3D graphics on a non-3D hardware-equipped device comes down to how well the code is written as well as system resource familiarity on the part of the engineer. It may be much more difficult to get Quake to be playable on a MIPS device, but it's not all just floating point.

DOOM is not as 3D intensive as Quake, but it still uses a fairly elaborate 3D environment. It doesn't run slow on a MIPS device at all - - in fact, it's faster than most PC's could run it in its day. Strange from a device that's supposedly so slow that it can't even hope to run Quake. The ARM doesn't so far outperform the MIPS that it negates any possibility of a playable Quake. If nobody tries, how will anyone know? Benchmark apps don't tell the whole story... It has more to do with what you can do with the whole device than the numbers game between the two CPU's.

I'm sure that, eventually, someone will take a crack at Quake... And come up with something that, while perhaps not as smooth as our DOOM ports, will be at least somewhat functional. But it will take someone willing to TRY, and possibly work very hard at it.

Anyone?

b
Bill S:

DOOM isn't real 3D, big difference. ;)

sponge · 20 Feb 2001, 19:41 UTC — (OT) Regarding PQ for non-iPaq Devices
Regarding Doom, I'm not sure if I ever heard a good explanation for this, but why isn't Doom a true 3D game? I think it had to do with raycasting, but I could just be pulling random terms out of my head.
Where do I begin. :) Bill, you feel there is no significant difference between the hardware of an iPaq and Casio device that would give one advantages over the other? Besides running the same OS, and the fact that electricity courses throughout their circuits, there is absolutely no similarity between the devices. The MIPS devices perform terribly when it comes to floating point emulation. This is most likely because the MIPS processor lacks particular instructions that are useful for floating point emulation, or because of poor compiler (or floating point emulation library) design. Either way, the iPaq's hardware has very obvious advantages over MIPS devices in certain areas.
If optimization was the primary solution to increasing the performance of the hardware, then companies like Intel would not waste millions of dollars designing new technologies. Us programmers could simply keep optimizing our code whenever we feel like speeding up our computer. Quake is an extremely well written piece of software, and any optimizations would result in token improvement in performance (I don't consider switching to fixed point an optimization - it is simply an attempt at working around a hardware deficit).
Doom is totally dissimilar to Quake. Doom achieves a pseudo-3D affect by bitmap manipulation. Flat bitmaps are simply stretched and transformed 2D so they are no longer rectangular. The resultant panels are spliced together to create what looks like a 3D environment. Even the characters are simply pre-drawn bitmap animations scaled based on the distance from the player. This can all be done with integer math.
Quake on the other hand is pure 3D, consisting of 3D models which are transformed, scaled and rotated based on the user's POV. This all done with floating point math. In fact, Quake was one of the very first games that required a floating point processor. Floating point math is absolutely the underlying issue with MIPS devices.
Benchmarks certainly do not tell the whole tale. However they provide a far more accurate projection than anecdotal comparison using entirely different, dissimilar applications.

Again, I am not saying that Quake could never be playable on MIPS devices (anyone that knows anything about me knows that I am the last person to say "can't" ). I am saying that fixed point conversions will be necessary for playable Quake on MIPS and possibly SH3 devices.

Dan East
Last modification: Dan East - 02/20/01 at 21:39:52
Hey Dan, are you positive about what you are saying?, I mean, 12 times faster is a little too much i think, So i have to disagree with you there.
I have developed a pretty reliable Benchmarking tool called Gapi Benchmark which is now up to version 2.0
With it i prove that the 12x floating point Mith, is just that, a Mith and not a fact. The Ipaq outperforms Casios, but they are just about 30%-40% faster in floating point emulation. And Ipaqs are also more than 50% slower when casting.

Why don't you make your own test and see what happens?, don't trust Mine or VO's word about the floating point issue and see for yourself.
Moose or Chuck · 21 Feb 2001, 15:17 UTC
I hate being the person that just HAS to point out grammar or spelling mistakes but...
Its spelled myth, not mith.
I know, I'm annoying.
Last modification: Moose Master - 02/21/01 at 13:17:30
I'd like to see how well you speak spanish moose.

D*mb as*
Come on children, lets be nice. This isnt brighthand:D
Doom is in fact a 3D game. The characters are bitmapped onto flat polys, but the environment is true 3D. I don't know what you guys think it is when you run down a corridor, look through a window or go up and down stairs that are texture mapped objects, but it's all 3D. Construction of Doom levels involves manipulation of basic 3D objects - not stretched 2D bitmaps. "Pseudo 3D" is where you have a very basic 3D environment (like a flat plane) with 2D characters (often pre-rendered to look 3D) laid on top of it. The only thing pseudo-3D about DOOM are its characters and the objects and enemies you find, like health kits, barrels, creatures, etc. But make no mistake, DOOM is a 3D game. Quake is a more complicated version of the same concept - it has 3D characters and more elaborate environmental geometry. That's it.

As for the iPAQ being so different from the Casio, I disagree. The CPU is different and I'm sure the way it handles code is different, but the systems access RAM in a basically similar way, have the same hardware configuration (color LCD, CF, RAM type, IR, audio, button function and controls, etc.). They cannot be so different and yet be so similar in what they do and how they do it. I think 12 times is an exaggeration for floating point functions. Besides, without trying, how do you know it won't work?

I've been developing video games for 12 years. I'm not a programmer, but I've been doing it long enough to know that if you can get something to run at all on the first pass, you can likely get it to run faster if you work at it a while. This has been true of every single 3D oriented engine I've ever worked with. If there were NO floating point emu support on the MIPS I'd have to agree - the outlook would be grim. But there is, and I doubt it's so vastly inferior as to negate trying. Sometimes, working around a deficit is part of the job... And since you're not really getting paid, I can understand why you wouldn't want to bother with it yourself. Please don't mistake my comments for lack of appreciation for the work you've done thus far. I just am a bit tired of the iHype and wish people would support the platform most people still use (MIPS). I just bought an EM-500 (upgraded from an E-100 and traded in on E-125). I didn't get this to have someone tell me it was so inferior that porting Quake was not even worth the effort.

Your Microsoft analogy is pretty weak. Microsoft updates their products because they make more money with costly updates and upgrades than improving the existing code.

Quake may be a well written program, but you're talking about an adaptation. We're not talking about optimizing it on a Pentium III 500, we're talking about optimizing it on a pocket PC. I'm sure there's a way if someone just takes a good crack at it.

b

Bill S:

If you're not a programmer, aren't you just going on assumption? 8)

Sorry, I just got lost in that rant there.

Sorry for my last comment, yesterday wasn't my best day.

I Believe Casio users will experience a 3-4 fps slowdown. But we'll just have to see about that.
Okay, I really can't waste further time going on with this discussion. You're saying that the iPaq and Casio are basically the same because they both have processors, and memory, and displays, and buttons and stuff. We're discussing this at an entirely different level, so continuing will accomplish nothing. All along I have said that optimization is possible, and IMO is required for a playable Quake on any devices less powerful than the iPaq / @migo in the critical areas (floating point math, memory access), which at this time is all other Pocket PC devices. Further, I have said from the start that someone is working on a MIPS version, if only to pacify those that won't believe experienced programmers very familiar with the project. So I don't know exactly who it is you are trying to talk into producing a game for you to play.

I never made a Microsoft analogy.

Dan East
you sould just recompile it for mips with no optomizations and show the whineie casio ppl that it run at .02 FPS. that way they will have their beloved quake on mips which is what they want! Who cares if its slow, it will appease them for now!
if you have tried quake on ARM then you would know how slow it and if it was any slower it would be unbrearable. just wait for the integer conversion people!

Okay, I really can't waste further time going on with this discussion. You're saying that the iPaq and Casio are basically the same because they both have processors, and memory, and displays, and buttons and stuff.


No, I am saying they are NOT totally different devices (which is what YOU said). And they have similarities that are undeniable, in the same way that an AMD PC is similar to an Intel-based PC clone. If you disagree, you're perfectly entitled to your opinion, but they're too similar in form, function and internal layout to say the only thing they have in common is that they are handheld computing devices.


We're discussing this at an entirely different level, so continuing will accomplish nothing. All along I have said that optimization is possible, and IMO is required for a playable Quake on any devices less powerful than the iPaq / @migo in the critical areas (floating point math, memory access)


The iPaq is faster. That's it. It doesn't do anything in particular that the MIPS cannot do. The Cassiopeias benchmark in some graphics tests faster than an iPaq, so there's pros and cons to both (not necessarily relevant to Quake, of course).


which at this time is all other Pocket PC devices. Further, I have said from the start that someone is working on a MIPS version, if only to pacify those that won't believe experienced programmers very familiar with the project.


Believe what? That it's not possible to make a playable Quake on MIPS? That it is not worth it to try? Thanks to Carpediem, I'm playing it right now at an average of about 5fps on the first pass. It's almost playable and the sound is great... And my EM-500 isn't even overclocked all the way to 200MHz (yet).


So I don't know exactly who it is you are trying to talk into producing a game for you to play.


I was hoping someone would take up the slack. Someone did, it works, that's it - I'm happy. :)


I never made a Microsoft analogy.


You're quite right. My mistake - it was an Intel analogy.

b

LOL... I'm playing a very rough, very early version on my EM-500 right now at about 4-6fps. Would you like salt on that crow?

Or would you rather continue to call us "whiners" just because we want Quake for our PPC? :p

b

you sould just recompile it for mips with no optomizations and show the whineie casio ppl that it run at .02 FPS. that way they will have their beloved quake on mips which is what they want! Who cares if its slow, it will appease them for now!
Uh, if you look at the threads on this board you'll find that I solved the major problems required for a MIPS build.

Dan East
Dan

What are doing up at 1AM?

PocketQuake is a unbelievable accomplishment - I read most of these post - everybody remember Dan only has a IPAQ!  He has given help to everybody who's ask - the MIPS people I know will agree that Dan has push the Gaming envelope on the PocketPC.

They SH3/4 people be patient - we need a programmer that is interest on SH3 to do the changes for the HP-680/690 Jornada HP-720 ARM should be closer - who has a HP-720 & the  programming knowledge?

I am trying to get Gamespy to notice PocketQuake & develop a Gamespy for the PocketPC.

DAN's THE MAN!!

J.B. you too! thank for take some of your leisure time speeding up Pocketquake
Doing a Jornada 720 port is not as easy as it sounds. For a start micro$oft hasnt released the final sdk for the hpc2000 and as of now it is still in beta, and has been for months now.

Also this device currently doesnt support GAPI even though it runs CE 3.0 and would make a conversion more difficult. It would require someone to find out how to write direct to the screen buffer, otherwise performance would be terrible. If all this is achieved, the 720 version would undoubtebly be the fastest version, but until we can convince jacco or dan etc.......

So Jacco (or dan), any chance of looking into this? Its worth a try I suppose :)

John.
Bill S

I played Carpediem's first release on my E125 and compared to the iPAQ version it was quite unplayable unless you like that slideshow stuff.  The load time was longer than what it took on the iPAQ and the framerate was terrible.  It made the iPAQ look like a screamer by comparison.  My Casio is not overclocked and the build did not include the optimizations Dan and Carpediem were talking about.  So I would have to say Dan was right.  I don't think Dan included any optimizations or overclocking which Carpediem's Casio is set to (180 mhz I think) in his analysis at the beginning of this thread.

Before I sign off this wasn't meant to be a knock on Carpediem's efforts.  Congrats on getting this build compiled successfully for the MIPS.  I'm sure you have a made a lot of people happy.  I'm just happy that whatever changes makes the MIPS version faster means an ever faster iPAQ version.  According to Bill they are pretty much the same machines.  : )