The Polygons of Another World: Atari Jaguar
On the Jaguar, I was employed to write a custom engine for a 3d fighting and exploring game with some unusual art: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Legions_of_the_Undead" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Legions_of_the_Undead</a><p>My approach to squeezing the most out of the Jaguar was to start by getting a fairly complex fused tiled-polygon-and-texture rendering algorithm working on the 68000 first, written mostly in C++ for GCC, with some of the classes generated in Lisp.<p>To get all the geometry and other details right and focused on feeding calls to a texture-scan-line inner loop.<p>Then to switch the inner part to a fast, asynchronous command pipe, pushing commands to the GPU&#x2F;blitter et al. which would read and execute those as fast as possible.  And then as needed optimise any bottlenecks on the 68000 using assembly.<p>The idea was to keep the GPU&#x2F;blitter as busy as possible filling pixels from simple texture-line commands, with minimal logic to fetch and setup each new blit (i.e. no higher level geometry calculations during which the texturing would be idle), while the 68000 ran in parallel generating those commands and doing the higher level geometry, which was quite complex in our game.<p>I got everything running just right on the 68000 for a nice demo, with the graphics and maps we had ready by then.  It was visually perfect, and play speed was just about usable but not <i>smooth</i> like we were aiming for.<p>Unfortunately perhaps, that&#x27;s when Atari called my boss in to do a milestone demo, so that version was shown.<p>When my boss returned, I was told whichever Tramiel was head of Atari at the time was &quot;angry&quot; as the game looked &quot;too slow&quot;, and the project was cancelled. :-(<p>Just as I was getting the GPU&#x2F;blitter accelerated mode working, which was projected to be 2 weeks work (since everything up to that point had been aimed at this).<p>I never did get to complete or show off the fast version.  So close!<p>Atari was in trouble and collapsed very soon after, so maybe that wasn&#x27;t the real reason.<p>We then started moving the project to the Fujitsu FM Towns: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;FM_Towns" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;FM_Towns</a><p>And then the PC using DJGPP.<p>The geometry, texturing and physics systems could be moved over because they were mostly GCC-compatible C++.  (At the time different C++ compilers accepted different dialects.)<p>But all the effort around optimising the engine around pushing pixels as fast as possible out of the Jaguar&#x27;s hardware subsystems had to be abandoned.<p>Fortunately the pipeline architecture translated quite well to x86 texturing, first using awesome integer register tricks (very few registers on x86, but because you could address individual bytes and words inside dword registers you could &quot;vectorise&quot; some of the texturing and address arithmetic); later the FPU became faster.<p>This was in the days of Doom, Quake and Descent, when extremely hand-optimised assembly software rendering was normal on PCs, and consoles had very strange &quot;not quite right for 3D&quot; blitters.  (Ask about the Sega Saturn sometime.)  GPUs as we now know them were just starting to be created for PCs, and Microsoft launched DirectX a year or so later.<p>--<p>The Jaguar&#x27;s CRY colour space was not great.  We had a very large graphics asset pipeline at the time, derived from hundreds or thousands of photos of real physical models made by the artists (a very different look than drawing), and all of it had to be scaled, alpha-clipped and quantized into CRY, which was not kind to the colours.  Adequate, but not great use of the colour bits available.<p>Somewhere I&#x27;m pretty sure I still have a &quot;pnmtocry&quot; executable in Linux a.out format :-)