TFQuake
=======
This version of Quake was created by combining PocketQuake, NovaCoder's
c2p, Hand Optimizations and AI Analysis and a lot of time.
How it was made: NovaCoder's AmiQuake 1.36 source was brought up with
m68k-amigaos-gcc 6.5, and its floating point renderer replaced with Dan
East's PocketQuake fixed point one. Every frame was then timed stage by
stage on a real A4000 with a TF4060, and the slowest stages rewritten in
68060 assembly, one at a time. Each rewrite was checked against the C it
replaced, pixel for pixel, in an emulator and by screenshots on the real
machine, and kept only if it made the frame faster.
What it is
----------
Quake for Amigas whose CPU has no FPU: an EC or LC 68060, or a card that
runs its FPU-less. It is made for the 68060, and also runs on a 68040 or
a 68030, slowly on the 68030. It is NovaCoder's AmiQuake 1.36 with
the renderer replaced by PocketQuake's fixed point (integer) one, and the
parts that take the time rewritten in hand-scheduled 68060 assembly:
- wall texture spans, perspective corrected every 32 pixels
- z-buffer spans
- the edge scan
- world faces into edges (clipping, projection)
- alias models (transform, projection, triangle setup and drawing)
- water, slime and lava (also used by the FPU builds)
NovaCoder's c2p is used for AGA. No FPU instruction is executed anywhere.
Speed
-----
timedemo demo1, A4000 with a TF4060 (68060 at 100 MHz, no FPU used):
AmiQuakeNoFPU (AGA, 320x200) 19.5 fps
AmiQuakeRTGNoFPU (ZZ9000, 320x200) 19.7 fps (with -stats)
The original no-FPU build of AmiQuake 1.36 ran this at about 16 fps on
the same machine. For comparison, AmiQuake's FPU build, with the FPU in
use, on an A3000 with the same TF4060 card at 100 MHz:
AmiQuake 1.36 FPU build (AGA, 320x200) 17.4 fps (with -stats)
So without an FPU this runs Quake faster than the original FPU build
does with one.
Files
-----
TFQuake/AmiQuakeNoFPU AGA (needs an AGA machine)
TFQuake/AmiQuakeRTGNoFPU RTG: CyberGraphX, Picasso96 or PrismRTG
(each with its icon) and this readme
Installing
----------
You need the Quake data files, which are not included: id1/pak0.pak
(shareware or full version) and id1/pak1.pak (full version only).
1. Make a drawer for Quake, with an "id1" drawer inside it.
2. Copy pak0.pak (and pak1.pak) into id1.
3. Copy AmiQuakeNoFPU and/or AmiQuakeRTGNoFPU, with their icons, into
the Quake drawer.
4. Start it from its icon, or from a Shell in the Quake drawer:
stack 400000
AmiQuakeNoFPU
From a Shell, set a stack of 400000 bytes first as above; the icons set
their own. Quake uses a 16 MB heap plus the screen buffers, so have
plenty of Fast RAM.
RTG screen modes
----------------
The RTG build looks for 8-bit (256 colour) RTG modes of these sizes:
320x200, 320x240, 320x256, 640x400, 640x480, 800x600 and 1024x768. It
starts in 320x240 (or the first of 320x200, 320x256, 640x480 it finds)
and remembers the mode you pick in the video menu in RTG_default.mode.
Larger modes look better but run much slower: every pixel costs.
CyberGraphX is used when it is there; without it (or with -nocgx) the
screen is written with WriteChunkyPixels.
Options
-------
-nosound no sound (a little faster)
-spans16 perspective correct walls every 16 pixels as Quake does
(the default is 32: faster, a texel off here and there
on steep walls)
-stats with "timedemo": time each stage of the frame, write
STATS.TXT and quit at the end
-trace write every console message to PI0:quake/trace.txt as it
happens (for an A314 user tracking down a crash)
-nocgx RTG build: don't use cybergraphics.library
In the console, "quit now" quits without the "really quit?" menu.
A benchmark, from a Shell in the Quake drawer:
AmiQuakeNoFPU -nosound -stats +timedemo demo1
Source
------
Quake is (c) id Software and released under the GNU General Public
License version 2; so is this version. id Software's Quake source is at:
https://github.com/id-Software/Quake
The game data files are not covered by the GPL and are not included.
Credits
-------
id Software Quake, and its source under the GPL
NovaCoder AmiQuake 1.36 and its c2p
Dan East PocketQuake's fixed point renderer
terriblefire this version
|