ARGH!!!!(Edit:ARGH in a non-threatening way) Get the Floatin
lets show some respect and gratitude.
Yes, I'm sorry. But... But...
At least it might have gotten Dan E. to start thinkin'. That was (is) the point, anyways. I love Dan. I just want to know how far he is, or if he abandoned the project.
Alright. I don't care that Dan is busy. I want him to get it finished. I want a playable PocketQuake. (Notice the word "pocket"? That means no more comments from people who think they are cool and mention that you can play Quake from the PC.) I want to show it off to people. It is hardly worth showing anyone this slideshow. Either that, or I want a new 400 MHz Pocket PC.
I overclocked my crap-I/O-Pee-a to 168 Mhz. It still sucks. I don't like iPAQs because I am going to wait for a faster model.
Please, Dan? Please? (shut up, Moose)
Simmer down. Did you know that the source code is available? And doing floating point to fixed point math really isn't all that complicated (Dan has explained it in several threads), it just takes a LONG time. It's basically just doing a few calculations and a LOT of typing, reading, guessing, screwing up, and starting all over again. So, if you are willing to give up about 36,000 hours of your life to coding it (if you'll be doing it by yourself), you might be able to have it done possible by the time the 400Mhz Casios come out (next June).

I know you don't wanna hear this, but I spoke to a guy from a GBADev forum the other day who did a port of Quake to some obscure ARM home computer (archimedes, I believe). ANYway, he first simply compiled the source code after adding display management stuff for the particular platform, wich was a piece of cake, then he replaced 'float' by 'FLOAT', and all operations by macro's (a * a became FLOATMUL(a,b)), while initially using floats in the FLOAT macro's. Once he did that for the entire Quake source (this is a monumental task), he replaced the FLOAT macro code by 64bit fixed point code (equally slow, but closer to the final goal). Finally, he replaced the 64bit C fixed point stuff by StrongARM asm. Once he completed that, he scored 20fps on the first room of Quake. This was on a 206Mhz StrongARM processor.
So I asked him, can I have that source code?
Oh yeah, I forgot: The answer was no.
wouldn't he legally have to realese it. unless he did it for himself and didn't make it available to other people
Well in fact he did want to give me the code, but he lost it. But that wouldn't have sounded as funny in the second post.

Jacco. I did that with PQ as a first attempt at optimizing it. I globally replaced all floating point with my own type, including the operators. I was going to use fixed point before I realized that a static nn.nn 32 bit fixed point was not nearly enough to handle the range and precision Quake needs. Those changes may be a bit mangled in some places, because I abandoned them early on in the project. All that is really needed then is the 64 bit code to handle the operations.
Dan East
So you basically have a version of PocketQuake that uses only your own version of float?
BTW, I was thinking about making a class 'FLOAT', and use operator overloading to get PQ to work with it almost without modifications. However, I suppose I can't just mix classes and operator overloading with pure C, am I right? I really suck at C++, you see.

Right, to my knowledge you can't just overload operators in C. However, being that the floating point is handled by emulation, I assume that there is a library that is linked to that contains the floating point software code. One could hack that library to replace the existing floating point math with their own code.
Early in the PQ project, after version 0.02 I think, I attempted a global replacement of all floating point math. I created duplicate vars / structs with FPM appended to the name. If you look through the PQ source, you will find thousands of such vars. They will all resolve down to fixedpoint_t in place of float. Check out the FixedPointMath.h header, which contains all the prototypes and macros I used in replacing the operators. I replaced the actual operators with macros, most of which resolve to functions.
So, for example, Quake's original dot product macro was:
[fixed]#define DotProduct(x,y) (x[0]*y[0]+x[1]*y[1]+x[2]*y[2])[/fixed]
My converted version (as found in mathlib.h) is:
[fixed]#define DotProductFPM(x,y) FPM_ADD3(FPM_MUL(x[0],y[0]),FPM_MUL(x[1],y[1]),FPM_MUL(x[2],y[2]))[/fixed]
I spent a very, very long time doing such conversions back in February. I converted everything, but there may of course be errors due to the tremendous volume involved. After the conversion it quickly became apparent that no single fixed point precision could meet the range requirement of every float in Quake, so I began smaller, localized conversions using varied fixed point precision depending on the needed range / precision, and the operators involved (just like you did with the optimizations you performed).
Dan East
Also, the idea has been kicked around of converting the Quake source to C++, which would then allow replacement of the float type by a class. In that case operator overloading would be possible. Digby has achieved some degree of success creating a fixed point C++ Class which dynamically adjusts precision as needed. While the improvement is not the 10x or so increase realized with hand-coded fixed point replacements, it at least is twice as fast.
Dan East
Dan,
I've just recieved an eMail:
From: John Romero
To: Björn Eike Schwarz
Subject: Re: PocketQuake
Yeah, I tried that stuff -- very impressive on the platform. (...)
- John
>Hello John,
>have you had the time to try PocketQuake yet? >
>(...)
>Ciao,
>Eike
Isnt that great? Isnt it?

And the reason you did not release this improvement would be because ... ?
Because what I was trying to do was not possible. Jacco is talking about using what amounts to 64 bit fixed point, which may end up faster than the existing floating point emulation (most certainly, if well written). I've only heard Digby speak of his Fixed point Class. I've never had any direct contact with that project.
Dan East
Thanks. I was just getting nervous that Dan had forgotten about Quake. Too bad the MIPS compiler doesn't support using the full 64 bits of the MIPS processor used in Casio's Pocket PC.
That wouldn't matter, anyway, since I WILL be buying a StrongARM-compatible processor in 6 months. So, might as well use StrongARM asm...
When I said "I" ("..will be buying a Str..."), I was sort of speaking of most hardcore Pocket PC users who don't already have an iPAQ or @migo.
I don't want to sound any more selfish... You guys already think I am mean... (No, I'm not fishing for a compliment. I just can't think of anything meaningful to type.)
Hell, people, what's wrong with you?!?
Give me a f ucking comment on my f ucking post that included the f ucking email! Hell, do it! NOW!!!!!!!!!!!!!!!!!!
I DONT WANT ANYTHING BUT A "Great, Shape! You're our god" or "May I call you 'Master'?"!!!
wow thats cool. except no-one gives a shit coz you arent dan east, bitch! muhahahahaha
Hrmm.. just cause you know John Romero :-/
Shape, would you like a spoon, so you can eat my ass?
Moose, stealing things from other people's signatures is dumb
And its not Would you like...its How about I give you a spoon so you can eat my ass.