PocketMatrix forums

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

XScale Pocket Quake is available here - Boost 10 fps !!!

Here you can download, my optimize XScale Pocket Quake Version 0.062 for:

- o2 Xda mini (This cool PDA Phone, i have tested my version with this.)
- T MDA Compact
- HTC magician
- i-mate JAM
- Qtek S100

What I have did in this XScale Pocket PC 2003 Version:
- I have mapped togglemenu to calendar key (Use it: bind "AUX1" "togglemenu" in cfg file).
- Instead 11 KHz it plays now with 22 KHz stereo sound and with less effect delay. It’s very cool with headset!
- I edited and compiled with Microsoft embedded Visual C++ 4.0 and Intel C++ Compiler 2.0 for Intel XScale Microarchitecture.


Download it from here: http://www.herz-power.de/pq.php

My benchmark, without .cfg optimize files:
25,7 fps (timedemo demo1) - My XScale compiled optimize version.
27,2 fps (timedemo demo1 and nosound 1) - My XScale optimize compiled version.
16,5 fps (timedemo demo1) - Orginal Dan's version.
17,3 fps (timedemo demo1 and nosound 1) - Orginal Dan's version.

o2 Xda mini, free datastore: 6.7Mb, free programmstore: 26.5MB, cpu: intel xscale pxa272 416MHz @ 520 OC. Yes, its true! :D


greetings
Patrick
IM0001 · 18 Dec 2005, 07:04 UTC — ya
I find it does run remarkably faster though I also notice the lower visual quality but the sound is good. The one problem I do have is since im on the X50v the side 2 buttos were exit and uhh.. something else. Well it seams with your build thoes no longer work so the only way I could exit out of menus is with my bluetooth keyboard (which has an unplayable ammount of lag. The quake 3 build has nothing of the sort)
Ok, i have build a new version.
Try the second download from http://www.herz-power.de/pq.php
This version contain the network patch too, from this forum.


Thanks Dan, for you excelente work to convert Quake to PPC!

Greetings Patrick/ Germany
IM0001 · 22 Dec 2005, 07:52 UTC — hmm
Not workin. even after i remap the key in the config file it still doesnt let me back out of menu's. (even read only its not doing what i set) Anyway can you restore the key combo that the origonal .exe used. Seams to be imbedded.
Mhh, the second version (AUX5), use the same key compo as Dans orginal exe version!
Good work,Patrick!! :D Both quake now work remarkable fast!
~>BEEF>}3@T3R]~ · 23 Dec 2005, 19:18 UTC
I haven't a grafic acceleration chip on my PPC. So i spent not more time for OpenGLes. Quake2 with sound run now with 13Fps non my device, its ok for me if play it.

I don't understand - you are developing OpenGL-ES Q2 port??? If it's true - it's GREAT & you are my Angel! We all are waiting for such port! If you don't need it today (with no accelerator on your today's device) - it'll be useful in the near future - a lot of new WinMobile Devices with accelerators are anounced, and why wouldn't you make this port today? to use it on our next device? ;) And All today's x50v/x51v owners (such me) would be happy:)
~>BEEF>}3@T3R]~ wrote:
I don't understand - you are developing OpenGL-ES Q2 port???


Nope, i dont developing a OpenGL-ES Q2 port. I try it, fast -> But don´t work. My PPC O2 XDA Mini is new, its two week old. I have then see Quake for PPC, i think goil.... But lame, so i fast install EVC++ and make it playable for me, not more. My next PPC is determines faster, maybe in two years...

Happy x-mas
Patrick
~>BEEF>}3@T3R]~ · 24 Dec 2005, 08:29 UTC
Nope, i dont developing a OpenGL-ES Q2 port. I try it, fast -> But don´t work. My PPC O2 XDA Mini is new, its two week old. I have then see Quake for PPC, i think goil.... But lame, so i fast install EVC++ and make it playable for me, not more. My next PPC is determines faster, maybe in two years...

FUCK! :cry:
But can you upload sources of our PQ & PQ2 ports to our site? Have your edited the code much, or simply compiled Dan East's sources, using Intel C++ Compiler 2.0 for Intel XScale Microarchitecture? Mayby, with OGL-ES SDK (and there is much OGL-ES info at PoverVR site), I can do something useful, but my C++ programming skills are poor! :cry: :wink:
congyiwu · 28 Dec 2005, 06:07 UTC — crashes on xv6600
I have a Audiovox xv6600 (aka HTC Harrier, PDA2k, similar to HTC blueangel/Siemens sx66)

The optimized quake 1 port says playing demo1 in console, pauses, then immediately exits

The official version works fine (although at 9 fps landscape, which seems a bit slow)

Tried increasing free operating ram to >70 MB, still crashes
Hi,

->congyiwu, it is optimized compiled for PXA-27x Bulverde processor, this use Wireless MMX Code. Your Audiovox xv6600 use a Intel Dalhart 400 MHz xScale PXA-263 Processor, without MMX!

But no worry, in the next Day, i will update my version with gamma brightness slider and a version without seeing by the wall slowly ~5fps (Overclock i reach ~30 fps), with support for PXA25x/PXA26x processors, i had test it and its ~0,1 Fps slowly.

->~>BEEF>}3@T3R]~, i have edited the code a little dirty, you can simply compiled Dan East's sources, using Microsoft embedded Visual C++ 4.0, ServicePack 4, Microsoft embedded SDK2003, Intel C++ Compiler 2.0 for Intel XScale Microarchitecture and I believe that was it, the you must include an headers, i have maybe include local in the same Pfad... It goes fast. i Havend my ppc few days, WindowsCE was new for me, but few hours its easy funny and i will play, then I had found pocketquake, but slow, so next Day download the source and EVC++.... my C++ programming skills are poor, too. I come from pur "C" corner, it goes, so its fine lern a little besides c++ with PocketQuake. I will relase the code later, in one Week on my page.


To all programmers:

I have a problem with function FindFirstFlashCard and FindNextFlashCard in common.c line ~1804. So FindNextFlashCard think my Storage Ram is a Flashcard, now i use only FindFirstFlashCard in the function:
Code:

//loop=FindNextFlashCard(hFind, &fd;); //Pat Workaround for "Speicherkarte". FindNext... has a bug?!
loop=FindClose(hFind);

So its work fine now with my SD-Card "Speicherkarte". Mhh its a bug in Microsoft project.h fuctions?


Little disturbs:
And on the play screen in Quake 1 and 2 the last row (Screen line) show garbage. Mhh i don´t find a bug, a have check sbar, malloc´s....but something it must be. for example the first Pixel is 0.0, but the in code count from 1.1 or so, I did not find.


bye bye
Patrick
So,

now my final an last versions QuakeI, Quake II with support for PXA25x/PXA26x/PXA27x processors, Windows CE 2003 compatible PPC with AUX1 or AUX5 key and the sourcen can download:
http://www.herz-power.de/pq.php

Pocket Quake I V.0.070
- I mapped togglemenu to calendar key (AUX1 Version - To use it: bind "AUX1" "togglemenu" in config.cfg).
- Instead 11 KHz it plays now with 22 KHz stereo sound and with less effect delay. It’s very cool with headset!
- Now, brightness adjustable!
- Saveing at storagecard (quake/id1/...), work fine with German Windows 2003SE version, now.
- Alternate .exe available without transparent Wall (Its a little slowly)
- Network patch is include.

Pocket Quake II V.0.12
- I have mapped togglemenu to calendar key (AUX1 Version - To use it: bind "AUX1" "togglemenu" in config.cfg).
- Orginal snd_win.c Sound with low and high quality - Attention, you must have about 26MB free RAM for high quality
- Saveing at storagecard (quake2/baseq2/), work fine with German Windows 2003SE version, now.

I hope i see a next version!

I wish all a happy new year!
Patrick
congyiwu · 05 Jan 2006, 18:16 UTC — awesome it works now
Great job.

It works great on my 6600 now.

400 mhz, portrait
original: 13.6 fps
your port: 21.2 fps

530 mhz, portrait
original 19.1 fps
your port: 31.4 fps

Its playable in landscape mode too now!

Thanks
Patrick wrote:...Pocket Quake I V.0.070...

Its seems, that D-Pad keys is hard assigned to the +forward, +back, +moveleft, +moveright and +attack. Because when i try assing to any button of D-Pad (leftarrow, uparrow, etc.) any other command - that button just stop working. If i assign +left on leftarrow - leftarrow just ignore this and continue to work as +moveleft. Is this can be fixed?
Thanks...
I have installed it in

\Storage Card\Quake2\quake2.exe
\Storage Card\Quake2\ref_soft.dll
\Storage Card\Quake2\game.dll
\Storage Card\Quake2\baseq2\pak0.pak

but i still get the error "couldn't load pics/colormap.pcx" :(

would it be posible for you to change the path to be relative to the .exe so ppl didn't have to install the pak files to a specific storage?

note: the dan's version still runs using the same pak0.pak file.

I get the same thing when trying to run quake with your exe.
Nope, I have save troubles in German Windows Mobile 2003 SE, so now its works fine on my PPC. I stopped this project. I will make no further updates. The Sources can be downloaded on my side, so everyone can continue this Project. Evaluation Intel C++ Compiler, Standard Edition for Windows CE has expire after 30days, so its fine for my saving time :D

bye bye
Patrick
Is the increased performance due to using the Intel compiler to build the binaries instead of the Microsoft EVC compiler, or did you make some other modifications to the source code?
donbing · 21 Jan 2006, 03:05 UTC — whitescreen error
this sounds great, although i get the old whitescreen problem on my loox720.

shame, as the previous version needed only that extra little bit of speed to make it playable
Digby, the second post in this thread mentions something about "reduced image quality", so it may have been one of those kinds of optimizations I won't include. Like when Jacco added an "optimization" that removed perspective correction. ;)

Dan East
I've taken a look at the source as well as the exe. First off, I see no differences in the source code related to rendering at all. There are only a few minor changes to key bindings and search paths, and a change to a unused variable in an attempt to set 22kHz audio.

So there should be no visual difference between this build and previous builds. I did see 5 FPS gain on my a716 (13.3 -> 18.3 in landscape), which is completely attributable to the Intel compiler.

I've built PocketQuake with eVC4 + PPC 2003 SDK and only see .5 FPS increase.

So is there a way to get ahold of this Intel compiler without having to take out a mortgage? :)

Dan East
Hi Dan,

yes, i have no source code change related to rendering. Only for alternate .exe without transparent Wall (Its a little slowly, but if you ppc ist fast, its rock) i have comment "#" a define, but this or brightness adjustable, sound, keys or storage change has no effect to image quality.
Mortgage :D You can test for 30 days embedded Intel compiler 2.0, its free.

greetings
Patrick
Oh, here's a little story about the adjustable Gamma. When I first ported Quake in 2001 the only ARM Pocket PC was the iPaq 36xx. It had a 12 bit reflective screen, and Quake's dark, brownish palette looked like a dark mess. I tried changing the default value for gamma in the code, but it would always be modified after the game got going. I didn't realize I could change it with a simple config var, so I hardcoded it to stay fixed where I wanted it.

Later when devices with better displays came out I simply forgot I had hard-coded it, until you just reminded me. :)

Thanks for your work, picking up that many FPS with the other compiler is huge. I have a hunch a big part of that is the Intel floating point emulation library. I will be releasing a new build soon that should permanently fix the whole togglemenu keybinding issue. With this build you can bind any key you want to togglemenu and it will work all the time, for example when exiting menus in landscape.

Dan East
Adie · 27 Jan 2006, 19:51 UTC — White screen
I got here famous white screen problem (Axim x50v) :(
Brian · 30 Jan 2006, 04:50 UTC — Sprint PPC-6700 supported?
Doesn't seem to work still on PPC-6700 (escape key). Anybody got it working on the 6700?
Jester · 15 Feb 2006, 05:57 UTC — colormap.pcx
Ihave mapped (created levels) for a quake 2 base game called SoF 1, google for colormap.pcx and place it in the base folder.
MEGAMONSTER · 18 Feb 2006, 12:45 UTC — Q1-2
Hi, Patrick!
Thank you for you Q1 & Q2 releases. It's wonderfull.
Q2 is good playable now.
But some problems are presents.
In Q1 is some sound scratch then tap on touchscreen. But in Dan's Q1 v0.62 all is good. May be problem in 22kHz sound? Is it possible to turn sound on 11 kHz?

In Q2 on some levels game fall to today screen with error message - "Z_Malloc: failed on allocationof xxxxxx bytes". I have only about 40Mb free memory and no more. Is it exist way to decide this problem?
There is a BIG problem with Quake 0.070:it doesn't load and shows "couldn't load gfx.wad".I didn't have this trouble with previous versions.Help!!!!
MEGAMONSTER · 04 Mar 2006, 12:19 UTC
All files must lay in the root of Storage Card:
Quake2\game.dll
Quake2\ref_soft.dll
Quake2\Quake2.exe
Quake2\BASEQ2\config.cfg
Quake2\BASEQ2\PAK0.PAK
Quake2\BASEQ2\PAK1.PAK
Quake2\BASEQ2\PAK2.PAK
mos33y · 30 Apr 2006, 05:20 UTC — landscape play
Hi all. I'am trying to remap the aux keys on my magician so as to function in lanscape mode (obviously without the bottom portion of the screen were Dan has made the other aux keys).

here is my modified autoexec file:

_snd_mixahead "0.15"

viewsize "100.000000"

bind "JOY1" "+attack"
bind "AUX1" "togglemenu"
bind "AUX2" "toggleconsole"
bind "AUX3" "+attack"
bind "AUX4" "+jump"
bind "AUX5" "togglemenu"
bind "AUX10" "impulse 10"
bind "AUX11" "impulse 10"
bind "AUX12" "impulse 7"
bind "AUX13" "impulse 2; impulse 3; impulse 4; impulse 5; impulse 6; impulse 8"
bind "AUX14" "+jump"
bind "AUX15" "+jump"
bind "AUX20" "impulse 7"
bind "AUX21" "impulse 2; impulse 3; impulse 4; impulse 5; impulse 6; impulse 8"
bind "AUX22" "impulse 255"
bind "AUX23" "impulse 9"
bind "space" "+jump"

bind "UPARROW" "+right"
bind "DOWNARROW" "+left"
bind "LEFTARROW" "+forward"
bind "RIGHTARROW" "+back"

These mods dont work.
Are suck mods even possible?
Another problem Iam having is keeping the game in landscape. When I choose the landscape mode in the game, it says to "press escape" to exit but the only way to exit is to reselect portrait mode.
Any suggestions woud me appreciated.
USMC_GAMER · 30 Apr 2006, 14:17 UTC — escape key
escape is the same as togglemenu for me, so to escape I just binded togglemenu to Aux5 which is the little notepad button on my xv6700
Both work on my HTC 8125 except Quake II's mousepad (mouselook touchscreen) doesn't work in standard port mode.

oh well wonderful job though.


Cheers.
Dan East wrote:Oh, here's a little story about the adjustable Gamma. When I first ported Quake in 2001 the only ARM Pocket PC was the iPaq 36xx. It had a 12 bit reflective screen, and Quake's dark, brownish palette looked like a dark mess. I tried changing the default value for gamma in the code, but it would always be modified after the game got going. I didn't realize I could change it with a simple config var, so I hardcoded it to stay fixed where I wanted it.

Later when devices with better displays came out I simply forgot I had hard-coded it, until you just reminded me. :)

Dan East


Found four years ago :)

http://www.pocketmatrix.com/forums/view ... highlight=
So this updated Xscale specific PocketQuake will ONLY work with devices with windows mobile 2003? Not 2002?

God I hate my Toshiba e740.
mrbandwidth · 28 Oct 2006, 20:54 UTC
I have a problem with both versions (Dan and Patrick's) of Quake 1: when I try to enter into the portal of Episode 4 (only that) at the Introduction level, I get this error message:

miptex >= loadmodel->numtextures

However, once in dozens of times, the game has continued correctly with Dan's version, never with Patrick's.

My ppc: I-Mate PDA2K (HTC Blue Angel), WM2003SE in spanish

Mr B
Download page for patricks xscale version is down: http://www.herz-power.de/pq.php
Does anyone have an alternative?
Thanks
StrongmanAlex · 20 Dec 2007, 02:22 UTC
Running PQ II timedemo 1 w/ the xscale version

HP 111 - 17.6 fps