I Have succeded in porting PocketQuake to CASIOS
Yo people!
Im looking at the very first Quake version running on a Mips processor right this instant.
Im looking at the demo and it's pretty amazing, it has flawless sound too!.
The screen is a little displaced because i didn't bother correcting it yet, perhaps i'll fix it in a couple of days.
i haven't played it yet, but you know us programmers, we like to program, not play.
Anyway As my Benchmarking tool (
www.rojakpot.com/benchmark) Predicted, that myth of Ipaqs being 12 faster than casios is just that. The Fact is that Ipaqs have less than a 40% advantage in floating point operations.
So im looking at PocketQuake for Casio, playing at framerates between 4-9 fps. using a VERY unoptimized code (i did a very nasty thing in order to see the frames without having to actually know what the drawing routines do.)
So... if anyone is interested i'll post a link pretty soon.
Carpediem, I tried emailing to
carpediem@velocom.com but it bounced. Chris Edwards has the new source with Jacco's 3D optimization and my new display code supporting left or right landscape. This should build for MIPS or any other Pocket PC version without any modifications at all, as long as they are have 8 bpp or more colors. If he doesn't have it up at sourceforge yet, maybe he can email it to you if you provide the correct address. I have to hit the sack. Good job on producing a MIPS build!
Also, generate an fps using the TIMEREFRESH as I instructed in the other thread so we can get a better speed comparison.
Dan East
Yes, i imagined that since i've been waiting for it to start coding tonight and i didn't get it
please send it to
carpediem@velocom.com.ardon't forget the .ar, i live in argentina

)
Congrats Carpediem!
Last modification: 999 - 02/22/01 at 21:08:10
Hey that's not fair!!
I don't know what TIMEREFRESH does but it sure doesn't give an accurate result.
I assure that i have about 4-8 fps on the initial level, but when i run timerefresh it get's pretty slow and i get a cracking sound when it's facing the big open area.
Sound is flawless by the way and i have an E-125 @ 180
So... i guess i'll just have to say that timerefresh says that i run PocketQuake at 1.9 fps
:o(
Not true.
here's the link by the way.
http://www.rojakpot.com/Files/Misc/mipsquake.zip
(Admin Edit)
There is a mirror available at
http://www.pocketmatrix.com/pocketquake/download.htmlLast modification: Chris Edwards - 02/22/01 at 22:01:15
Carpediem:
A Timerefresh is about as accurate a number as you can get for FPS comparisons. This is all assuming you are doing the Timerefresh in the same area which Dan has performed his. Judging from your Numbers, I'm assuming you are.
An FYI, the Game is much slower when you are Playing it, as opposed to watching the Demo. The Demo runs nearly 2x faster, this could be the culprit for any FPS confusion. Perhaps your Timerefresh numbers will reflect something a little more favorable once you've applied Jacco's source tweaks which have already led to a 24% increase in PQ's overall speed

Carpe you rule ... you all do i am so happy i can't even see straight!!!! woohoo rejoice!
Doing a TIMERERESH at the opening level represents an average FPS, including the areas which Quake requires that most processing; looking across a large open area. Of course higher FPS is obtained in other more confined areas, or when you can only see a short distance. At this point you're getting less than half the fps of the original iPaq version, which I personally would have trouble considering playable.
Dan East
Yes,
CARPEDIEM you must run the Benchmark at the 'Entrance Level' where you first spawn. don't move forward, just do TIMEREFRESH in the console and let the cycle complete.
This is the only way to get a good standard framerate as you can really push the engine with all the polygons. The original iPAQ release got 4.1-4.9FPS (Not Clocked/Over Clocked) depending on apps, sound and yadda yadda.
I'm trying your Casio ver now and it gets under half the iPAQ, so please be more intelligent with your words in the future:
"I don't know what TIMEREFRESH does but it sure doesn't give an accurate result."
DOh... DOOOOH =)
Also remember that like you, my Casio is clocked to 180Mhz and so the standard 150Mhz is likely to be more like the 1.2FPS everybody originally predicted.
Can't wait to see what the new code changes do to quake.
Ok, i'll take your word for it, but if you runned TIMEREFRESH on a casio you'd know what im talking about.
For starters when timerefresh is executed, the screen starts to rotate slooowwwly and when it does facing the large area the sound gets corrupted, and i figure that's because the CPU can't handle it anymore. But when you fool around the level manually it is faster and there's no sound corruption.
But who cares, im starting work on the new source right now.
How can I overclock my E-125... Safely?
Yeah, that's the same basic thing with the iPaq. Sound doesn't mess up, but it appears to be much slower, especially when looking out across the whole room. The reason TIMEREFRESH seems so slow is that it takes 128 steps to rotate around, which of course is far more exact movement than when mlooking around. Either way it still takes the same amount of time to render the frames, based on the direction you're looking and the surroundings. Using TIMEREFRESH like this provides a good standard for comparing versions / devices, but does not indicate the actual average FPS you get while playing.
Dan East
Ok, im looking at a 19% faster PocketQuake for mips with Phantom's Optimizations. Hey, this is a lot of progress for such a short amount of time!
Anyways Dan, Jacco sent me the updated files and i updated the mips version, i didn't touch your version. Should i compile with your changes?, what do you think?
Now i get 2.26 fps on the timerefresh test and i think it's very playable on closed areas.
Hey Dan, im looking at d_scan.c and i see a lot of castings, from ints to floats, from floats to ints etc etc.
The ipaq is A LOT slower in casting than other devices. Perhaps we can work a little there too to increase performance.
The original improvement he sent me increased the fps by 24%. The mods he sent me last night actually resulted in a slower fps than the first improvement (down .47 fps, or a 12% net improvement). We're discussing it now. I don't know what improvements he sent you, but try using only the new d_scan.c, and use all the other original code and see what improvement you get (or use the source package I sent you).
Dan East
Are you running the Casio update on your PocketPC it aparently contains quite a few fixes to the display driver
The casio update doesn't actually increase the physical speed, it does smooth some scrolling though and fix a few bugs. You'd really need to update the ROM files to improve things like that, or the hardware =).
One advantage to the slow Casio port is you get to see Quake on a crystal clear display, instead of the iPAQ's annoying 'scan line' style 16Bit output.
Dan, when will we see a release of the optimised iPAQ code?
YESS.... has anyone tested this on a E-115 yet.
Just wondering how much slower it would be compared to an e-125. But all in all Great job.
Doh, I meant to say 12Bit.
Well done Carpediem! It plays reasonably well on my EM-500 / 168. Not completely unplayable as I thought it will be. I played through a good third of level one befoe duying (and I was never good in Quake anyway).
I keep gz file on MMC card and the initial loading time is terrible

I'll try to unpack it as suggested in readme file.
Congrats to you and Dan for this incredible achievement.
Perfect. The MIPS version came out the day that I got my NEW 1GB Microdrive!!!
Marconelly,
I suggest that you install the casio update v1.1
I seem to remeber reading something about it fixing the slow mmc card reading.
I can't believe I was actually PLAYING quake on my Casio 125. It was even playable enough that I completed level one without dying- and my Casio isn't overclocked.
Although the framerate is low, 0.1a is a much better build than I had anticipated. Expecting a slideshow, I entered the game and ended up whoopin' ass on some grunts. Seeing those gibs on my Pocket PC nearly made me crap.
I like the mlook touchpad, mostly because I am used to playing FPSs on a laptop.
Sorry this reply isn't technical, with hints on how to increase the engines speed. I just wanted to say that this alpha build is much better than 99% of the FINISHED pocket pc games that are out on the market.
I greatly dislike the touch pad mlook feature. If anything, the touch mlook thing should be OVER the actually play field, and if you double tapped it would shoot, or something like that. Then have a keyboard at the bottom of the screen just like Doom4CE. The keyboard display gives it a more authentic feel.
I have an E125 with the new Casio update and about 20mb ram for running programs and Quake works pretty good, (Running from my storage card
It's a little slow but it is playable...
Great job...
I can't wait for the next release
Nice job on the Casio build. I'll psot my Timerefresh results at the first intro scene for you guys. I have a Casio E-125, not overclocked, with an IBM 1GB Storage card holding the .PAK file. I have about 14 MB free program memory and 8 free storage memory. I get presicely 1.525087 FPS on the Timerefresh, but can walk around the normal plethora of corridors at an obvious 4 FPS. I hope this helps you guys judge things. Just thought I post.
[edit] oh ya, I forgot to tell you that the PAK file is NOT GZipped on my storage card. That lowers load times, but has no impact on FPS (I would think).
Last modification: Moose Master - 02/23/01 at 14:25:12
Well that's slow moose, on my E-125 @ 180 i get 2.3 fps. Do you have the latest version?, number 0.04?
I doubt it. Is it mirrored on PocketMatrix?
[edit]
alright, I found it and it's downloaded.
Hey, the timerefresh seems slower, but the demo was slightly faster. But anyway, here's the new timerefresh rate: 1.838482
I don't think that the bubbling effect is worth .3 FPS, not to me.
Hey CARPEDIUM. I'm thinking of overclocking my Casio. Is it worth it, is it easy? Any trouble? Did you use the pencil method? What kind of pencil did you use if so?
Last modification: Moose Master - 02/23/01 at 15:53:20
Well it is worth it if you wanna play PocketQuake, some Emulator or watch Movies. You'll get a big performance boost if you do.
I think PocketQuake is more than playable on a E-125 @ 200 but i haven't tried it yet. On mine i have lots of fun playing it and you get used to the small framerates.
I overclocked it using the pencil method, it was very easy. I learned how to overclock it on brighthand.
Anyway, there's a new version of pocketquake for mips, it's labeled the same as the old one but it has keys configured and THAT is what makes it playable, playing without having to use the pen is awesome.
Well, CARPEDIEM, I've overclocked my computer and have no fear of messing around inside it, even when it's on. I know all about releasing static charge and don't think I'd have any problems.
I want to know if I'd have any REAL chance of messing up my pocket pc.
And what specific kind of pencil did you use? I want to make sure it works out just as good.Last modification: Moose Master - 02/23/01 at 17:44:49
Well i used a drawing pencil (the one with the thick lead), i think it's an HB or B
Well i've just overclocked mi E-125 to 200 and these is the number i get when running TIMEREFRESH
2.5 fps
big difference compared to a not overclocked E-125
How do you guys get the keyboard to stay up? my E-125 crashed at like 4 PM when Dan asked me to test 0.04 in landscape. when i hit consol, it works fine, but the keyboard flickers out! how do you get the TIMEREFRESH thing to work w/o a usable keyboard. (i also have to try it all with only one hand. my cast is due off in 3.5 weeks, just after i turn 15!)
Well if the Casio's can do 2-3FPS (overclocked) timefresh at the start of the level, then I can't want to see what 6-7FPS (or more) looks like on the iPAQ. That's what I predicted fixed-point math would improve it by around the time that method was first suggested.
I reckon 8-9FPS Timerefresh would make quake just about perfect for the rest of the game itself. Good to see this figure is now close at hand, although I still don't reckon you'll ever made that golden 20-30FPS on an iPAQ - good if you can get it, but it'll take more than fixed point math.
Am I the only one for whom this doesnt work?
I get an error that says
W_LoadWadFile: couldn't load gfx.wad
any ideas?
ARGH!!! READ THE FREAKIN FAQ!!! There's always some LAME newbie that has to ask that, I'm getting sick of it.
Someone... please think about the keyboard... I depend on the kindness of others at this point.
wow! fantastic.. a quake.. erm.. i'm getting 2.49fps on timerefresh with the screensize down a few notches... is there a way to turn off sound on the console to improve performance or is there simply no benefit of that? muting or turning the volume all the way down doesn't seem to do anything to performance.
mikegreene,
I couldn't figure out either.. but the keyboard is actually there just that you don't see it, mlook bitmap is being refreshed over it or something.. but if you know exaxtly where the keys are, you can still hit them..
anyhow, to get timerefresh to work.. change to Character Recognizer.. start quake...go to a new game and don't move. Them hit the CONSOLE button.. and write it! TIMEREFRESH and hit enter
When I added sound support to the iPaq version (version 0.03) it made absolutely no difference in performance, as was expected. The 3D rendering is responsible for such a huge portion of the processing time that these other areas are essentially insignificant to FPS.
Dan East
thanks cookie
I've had trouble with the virtual keyboard myself, there's no way to see it. so writting timerefresh took me a loooong time.
But now i know the exact locations for the characters i need so i write it pretty fast.
The SIP shows perfectly on the iPaq, so I'm not exactly sure why it doesn't behave properly on the Casio devices. So it's there (with the console), you just can't see it?
Dan East
Dan, that is correct. You can see the keyboard flash on the screen, but it is quickly covered over by the skin for quake.
LOL, WOW. I Overclocked my Casio (put screws in to tightly btw, stylus no longer fits. I'll fix it in a sec) and now I get on my Timerefresh:
2.239173 FPS
It's amazing. It's only at 180MHz to my knowledge. Is that right Carpediem? Or did I not erase the A1 mark completely and got 200 instead?
It goes up to 15 easily when I'm against a wall.. but I don't know, I have no reference on a PPC screen.Last modification: Moose Master - 02/24/01 at 12:08:35
Yep Moose, you are at 180, and it looks even better @ 200, i was @ 180 up until yesterday.
Now if i remove the sky i get 2.6 fps
My goal is 3fps, then im a happy man

)
Btw Dan, ¿do you know where i can remove the fire form torches and stuff?
How would you do that... Remove the sky
BTW, is it necessary to have that anti-static stuff when overclocking? I wanna look into it.
Remove the sky, or just make it uni-layered. I never look at the sky anyway. Or better yet, add a console command. That's easy enough.
Here's my new timerefresh rate after I reached 200MHz:
2.431824 FPS
And the sound doesn't stutter as much when it's looking towards the portals.
Seems like every 10MHz adds .1 FPS. Too bad I can't go above 200MHz. But now I've got a smooth SNES Emulator

Argh, it's not that the screw is to tight. There's a cord in the way. Now I have to go back into the thing AGAIN. If you OC your Casio, watch for cords getting into the way. It's a nuisance.
Last modification: Moose Master - 02/24/01 at 12:45:02
No, it's not NECESSARY. But I do advise you to get some kind of anti-static method. What I did was opened my computer case until I could get a good fingure hold on a piece of the metal case. Then, every minute or so, I would touch it. I also put the RAM chip ontop of the metal case so that it would be constantly destaticisified (err. you know what I mean). I had no problems, except that cord getting in the way of my stylus holder.
Ahh junk. It froze. Oh well, maybe I'll bump it back down to 180 and use it for a few days to burn it in.Last modification: Moose Master - 02/24/01 at 12:56:59
that' one of those unforseen problems;) Ha!
Lol i removed all monsters and stuff and i get now 3.1 fps!
if we can get it up to 3 it's gonna be very very playable.
Wow, it's good to know that a measily 3 is playable

. Boy, Doom is REALLY fast on a 200MHz Casio
Moose, try landscape, its crashed me three times! Maybe your overclocked one will do better.
I had to do a hard reset! Those suck. Howvever, I crashed my PalmIII sll the time when I would play the action games for it. Those were CRAP compared to Doom and Quake!
What landscape mode are you guys talking about?
Did you compile for mips the latest source of dan or what?
Will do. I brought mine back to 180 MHz because it was stalling at 200. I'll bring it back up in a few days though, after it gets used to the speed.
Landscrape (ya) mode freezes on me too.
Argh. Not only that, but I think it caused a problem with my RAM, when I press reset it told me that inside a fullscreen warning message. Good thing I just made a backup for my speed tests. Or maybe it was because I OC it. Whatever the reason, oh well.
Ok, how can I add command line params to the PocketQuake shortcut? It doesn't like working for me.Last modification: Moose Master - 02/24/01 at 13:52:07
Uhm.. I went into the video options menu, pressed right, then action. I guess it's not implemented yet =)
Wow im running at 2.81 now at no apreciable graphics quality decrease!!!!
How far can we get??
carpe, 2.81?? did you make a new build? how'd you get that high?
Here Dan, see if you like it, it's an optimization "A la argentina"
void D_PolysetCalcGradients (int skinwidth)
{
int xstepdenominv, ystepdenominv;
int p01_minus_p21, p11_minus_p21, p00_minus_p20, p10_minus_p20, t0, t1;;
p00_minus_p20 = (r_p0[0] - r_p2[0]);
p01_minus_p21 = (r_p0[1] - r_p2[1]);
p10_minus_p20 = (r_p1[0] - r_p2[0]);
p11_minus_p21 = (r_p1[1] - r_p2[1]);
xstepdenominv = (1000 / d_xdenom);
ystepdenominv = -xstepdenominv;
t0 = (r_p0[4] - r_p2[4]);
t1 = (r_p1[4] - r_p2[4]);
r_lstepx = ((t1 * p01_minus_p21 - t0 * p11_minus_p21) * xstepdenominv) / 1000;
r_lstepy = ((t1 * p00_minus_p20 - t0 * p10_minus_p20) * ystepdenominv) / 1000;
t0 = (r_p0[2] - r_p2[2]);
t1 = (r_p1[2] - r_p2[2]);
r_sstepx = ((t1 * p01_minus_p21 - t0 * p11_minus_p21) * xstepdenominv) / 1000;
r_sstepy = ((t1 * p00_minus_p20 - t0* p10_minus_p20) * ystepdenominv) / 1000;
t0 = (r_p0[3] - r_p2[3]);
t1 = (r_p1[3] - r_p2[3]);
r_tstepx = ((t1 * p01_minus_p21 - t0 * p11_minus_p21) * xstepdenominv) / 1000;
r_tstepy = ((t1 * p00_minus_p20 - t0 * p10_minus_p20) * ystepdenominv) / 1000;
t0 = (r_p0[5] - r_p2[5]);
t1 = (r_p1[5] - r_p2[5]);
r_zistepx = ((t1 * p01_minus_p21 - t0 * p11_minus_p21) * xstepdenominv) / 1000;
r_zistepy = ((t1 * p00_minus_p20 - t0 * p10_minus_p20) * ystepdenominv) / 1000;
a_sstepxfrac = r_sstepx & 0xFFFF;
a_tstepxfrac = r_tstepx & 0xFFFF;
a_ststepxwhole = skinwidth * (r_tstepx >> 16) + (r_sstepx >> 16);
}
that funcion is found in d_polyse.c Try it and you'll notice a neat increase in performance.
about 0.13 fps faster on the timerefresh test and the graphics glitches are not very big, the gun isn't as good as it should when you are shooting but hey. 0.13 is 0.13 right?
Wow, I just got my E-125 yesterday, and the first thing I did was get PocketQuake on my machine. It's unbelievable! Anyways, I work for PC Gamer, the magazine, and I'm in the process of trying to get PocketQuake up as a news story, as a follow up to a previous column about pocket gaming. If I could get in touch with the person in charge (I'm assuming Dan East), we'll try to get something set up. Great work!
ACK! And I wanted to have the first story on 3DGameGear.com. I better get crackin' on it right away to beat PCG's.
BTW, Nice to meet you Norman. PCG is a great magazine.
I have it up to 2.86 now
We are getting pretty pretty close to the goal, 3 fps.
My goal is 10FPS... that is, as soon as I get some programming skills.
Well guys, i think i'll call it a day for today, im exhausted, i've been going trough code all day so im gonna go watch a movie or something.
Anyway, today's work was worth it check this comparison between released versions:
First release: nothing to compare to.
Second release(Jacco's Optimizations): 22% faster
Third release(My optimizations): 42% faster
My goal is to reach 50% performance increase and i think i'll achieve that pretty soon.
I would post the new version but im lazy, im gonna take off now, C ya guys.
Amen to that Carpe, Amen to that!
Just so you guys know. I get around 2.1 on a Casio E-125 @ 180 MHz when the display is full screen, without the Health and Armor bar above the skin. It's more fun and just as playable. Compared to the norm of 2.2 with my device
Oh, Carpediem, remember that 2.86 is no your 200MHz Casio, so you're probably up to 2.5 or 2.45 with a normal Casio.Last modification: Moose Master - 02/25/01 at 06:07:24
Hey CARPEDIEM. Could you send me your source? I would like to see the source already ported to MIPS to compare, since I know nothing and must learn. CARPEDIEM, how did ou learn to program for PPCs?
Moose you won't be able to tell the difference between the sourcecodes since my changes are gapi related. Besides i wouldn't recommend you try to start learning with pockequake!!, When i first started dreaming about making it work on the mips processor i almost gave up like a thousand times. good luck Dan was there to support me.
Anyway, i've found the most processor intensive function, i removed it and now i get 30 fps on the Timerefresh test. (remember the max score i got was 2.86). So i'll start trying to optimize this code and see what happens. Stick around, exiting news may arise today.Last modification: CARPEDIEM - 02/25/01 at 07:46:21
I get 1.74 fps on a E-115!
cool.....
CARPEDIEM, you mean 3.0 FPS, not 30 FPS... right? My heart lept when I read that ;D
[EDIT]
NM, I ICQed you. It is indeed 30 FPS, NOT 3.0 FPS.Last modification: Moose Master - 02/25/01 at 12:03:59
Ok, the newest version is about to be posted on pocketmatrix.com/pocketquake
it's version 0.041 and it's 44% faster than the initial release.
hmm.. still not up yet.. I can't wait...
Carpe- in normal play, timerefresh is giving me well over 5 FPS! I am not overclocked. BTW- Moose, how do you get that stuff off of the screen?
I want to compare the timerefresh of different clock speeds. Those with a 133, 150, 168 and 180 mhz casio's.. can you help me out?
please do the timerefresh at the introduction level where you spawn when you start a new game. Don't move.
v0.041 has been posted
Download it Here.
Alot of visual anomalies. It is however a little more playable. Whether all that clipping and missing sky is worth it... I don't know. I'm keeping both the 4 and 4.1 ...
2.83 timerefresh @200
Burp
sorry.. didn't mean to sound discouraging.. great work, carpe..
hey can you sorta outline what you did in your last release??
Nice work carpediem. Nice idea removing some of those polygons that are behind the quake guy. Atleast I'm guessing that's what you did.
2.620793 on E-125 @ 180
Carpediem: I tried your floating point converted D_PolysetCalcGradients function on the iPaq and I got a 3% improvement using the new benchmark.
Dan East
Dan:
I think from now on we should concentrate all our efforts in turning:
void R_RecursiveWorldNode (mnode_t *node, int clipflags)
found in r_bsp.c into FixedPoint. I think that it is THE MOST processor expensive function in the whole sourcecode and it's yet not optimized, I see you've done some work but it's not implemented. Try commenting out the whole function, you will get 30+ fps on the timerefresh test. I truly believe that if that complex recursive funcion can be optimized, we could easily get at least 2 more frames per second. And even much much more.
Ohh, and version 0.041 always gives me 2.9+ fps on the test. I have an E-125 @ 200.
Dude, I'm getting some static paper and overclocking like... now! 2.9 is almost double what I've got... Thanks Dan, 999, Jacco, and Seize the day.
First off id like to say Carpediem + Dan way to go, you guys rock..
Carpediem are you going to post your Mips based source code? I would like to work with the source but not have to redo everything you have done(especially the GAPI code).
FYI on my casio E125@150mhz i get 2.150470fps in the entryway, normal playing is around 4.7fps
For now im no longer working in pocketquake, i have quitted.
but give me a day to think about it, maybe i'll change my mind and keep working on the casio build, but im not sure.
Carpediem,
That came out of the blue. I hope you change your mind, it sounds like you were really getting somewhere with optimizing the code. Of course I’m sure you also have a job that pays to work on. I suppose I will respect your decision either way.
thats too bad!! But I agree you gotta do what ya gotta do. So if you do decide to stop working on it can you please post the source somewhere so others can follow in your footsteps.
I'm sorry to hear that, but thanks again for your work in the ppc freeware community!
CARPEDIEM
Do not stop what you are got at even if i have to send you a Cheque to your Door step. I shall my mail is above.
I will like you to keep up the job working on Casio Mips Build but you can cut diwn the hours you put in.
Thnak fot all your effort and time.
James- are you from
http://www.engrish.comEngrish.com?