PocketMatrix forums

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

what kind of processor do u need to run PQ

I have a SYMBOL ppt2640 pocketPC , well it used to be CE 2.11 but i upgraded it. I was just wondering what speed the processor would need to be to run PQ. its a MIPS vr4181. it runs at 66mhz(i think). Also i have another problem , when i start PQ its says there is not enough RAM although i have 8MB free for programs. I am using the small PAK0 file. PLease help
Hey Ronan, my middle name is Ronen (it's Israeli). It should work for MIPS processor (that's what I use), but 8Mb may not be enough. Try to do anything to make it 9Mb, that's when it works. Oh, and with only 66Mhz, I doubt you'll be able to endor the low fps, nor the huge load times (with 150Mhz, the small pak took exactly 15 minutes to open, whereas the big pak takes 40 seconds, huge difference).
I think the symbol is black and white, in which case it would not work.
with 150Mhz, the small pak took exactly 15 minutes to open, whereas the big pak takes 40 seconds, huge difference
15 minutes?!?
What the...?
It didn't even took my E-115 5 minutes to load it!
Moose or Chuck · 20 May 2001, 09:05 UTC
It takes me exactly 2.6 seconds to load Quake.
Diego Cueva · 20 May 2001, 09:13 UTC
It gets 2.4301 secs to load on my iPAQ. :)
2.6 seconds? It takes me now 40 seconds from clicking pocketquake.exe to shooting monsters. I remember before I got the big pak0.pak, that at school, I'd start PQ during lunch, so I could play it at the start of next class, now I don't need to do that.
SonicSilicon · 20 May 2001, 13:33 UTC
Anyway, back to Ronan's problem...
The symbol has a compatible processor (one of NEC's MIPS vr4100 family) and the minimum ammount of system memory (16MB.) I believe the minimum ammount of program memory is either 9MB or 9.5MB. (It has fluctuated a bit between versions.)

Also, as Matt Keys stated, it may not have a sufficiently capable display. It must be able to display a minumum of 256 shades of gray or 256 colors. At least that's what I remember Dan East stating. (Sorry if I got that one wrong, Dan ;))
Quake uses more than 256 colors.

The textures themselves use a single 8-bit palette. The game generates an additional palette for lighting and shadows. I think there are 16 shades per color, so the game actually renders 4096 colors.
Diego Cueva · 20 May 2001, 20:50 UTC
So Quake uses a 12bit pallet? Uf, at least one game that stupid people cant say: "hey, it looks so ugly on your PPC, oh, It´s becouse your iPAQ´s screen has only 4096 colors? oh... I´m sorry..."
ARGH...
Quake uses a palette of 256 24 bit colors. The iPaq, like all other color Pocket PCs, supports 16 bit color. However, at the hardware level the 16 bit color is reduced to 12 bits, probably by the LCD driver hardware itself.

Dan East
In other words Pocket Quake reduces Quake's 24 bit color to 16 bit. The iPaq hardware further reduces it to 12 bit.

Dan East
SonicSilicon · 20 May 2001, 22:51 UTC
But there's only 256 colors displayed simultaneuosly, right? (Which would mean a 256 gray-scale device would work?)
No. Pocket Quake only supports devices with 15 or 16 bits per pixel (RGB 555 / 565 encoding). The palette limitation of quake (256 colors) has nothing to do with the actual number of colors (or shades of grey) that the hardware can render. The total possible color combinations with 16 bit color is 65,536, compared to the 256 possible "colors" of that greyscale device. If the device's display hardware interfaces with RGB 555 or 565 encoding (so that the hardware translates it to greyscale, similar to the way the iPaq reduces it to 12 bit), then it will work.

Dan East
SonicSilicon · 21 May 2001, 12:25 UTC
Thanks, Dan. You'll just have to pardon my clouded mind.

That definately means that I'll be using EasyCE if I ever do a WinCE 2.x port. Speaking of which, could you e-mail some specifics of the I/O problem with GZIP in WinCE 2.x?
SonicSilicon · 21 May 2001, 12:36 UTC
I went to Symbol's site and only could find information on the ppt7000 series. Unfortuantely even that didn't state the bit-depth of the display, just that it is 240x320 and monochrome. Since these have barcode readers built in to them, my guess is that the display is more likely than not incapable of supporting PocketQuake.
I'll just post here for the sake of others. :) CE 2.11 does not support full stdio file IO, specifically functions like fopen, fclose, fread, fwrite, fseek, etc. The zlib routines use those functions for their file IO (they provide "enhanced" versions of those functions, which allows drop-in gzip support. So instead of using fopen, you use gzopen for opening a compressed file, etc.) I would recommend creating your own wrapper functions for the needed stdio routines that thunk down to the Win32 API. So, your versions of the following functions would wrap the associated Win32 API functions:

fopen -> CreateFile
fread -> ReadFile
fwrite -> WriteFile
fseek -> SetFilePointer
fclose -> CloseHandle

etc.

It would take a little work, but implementation really wouldn't be bad. Create a Static Library project, then create your stdio functions there. Then you can statically link any application to your resulting stdio library, instead of having to insert and build the code in every future project. As a hint, the fopen function will take the most work (you will have to check the open flag string to see if the file is for reading, writing, should be created, etc). The rest of the functions should only contain a couple lines of code.
You may look around first. I've heard of people attempting such a replacement library, but I never actually came across one. Note that HPC-Pro devices also have (almost) full stdio support built in, like Pocket PC.

Dan East
Quake also uses those stdio library functions for its file IO (when using non-gzipped pak files). That is certainly further reason to create the stdio routines in a static library, so PQ can link to it as well.

Dan East