325 points · by agomez314 · 4y ago · 71 comments
I made the whole engine and animation system fit in 4K so it would fit into the instruction cache of the CPU. The whole frame update cycle wouldn't need to touch main memory (for the code).
Also, because loading from main memory was slow (4 cycles) and the chip was RISC (1 operation per cycle), you'd need 3 NOPs after the Load-op for the register to be loaded. The C compiler (if I remember right) never really filled those 3 NOPs with useful stuff. So, I'd do hand written concurrency (in MIPS assembly) by loading other stuff I'd need into those NOPs - this was particularly effective when working with 3 dimensional vectors or 4 dimensional matrices.
Trying to keep super-optimised hand-written concurrency in assembly, in my head, was a challenge and not something I'd recommend! Still, the engine had more throughput than Sony claimed of their machine. Every bit of performance gained would mean an edge over the other games.
Then the game was canned by Eidos. Pretty devastating for my first industry job :/
[1] https://www.unseen64.net/2020/11/16/lunatik-pure-entertainme...
But yeah memory hacks in those days were rampant.
Side note the most common problem for the PS support queue was PlayStations not reading disks properly. The fix was to turn the machine on its side or even upside down to get the CD closer to the laser.
I laughed when I read the following quote from Andy Gavin's blog, now I'm crying after seeing yours.
"Kelly asked how many of these CD hits Andy thought a gamer that finished Crash would have. Andy did some thinking and off the top of his head said “Roughly 120,000.” Kelly became very silent for a moment and then quietly mumbled “the PlayStation CD drive is ‘rated’ for 70,000.”
>The fix was to turn the machine on its side or even upside down to get the CD closer to the laser.
Was this the precedent for marketing the PS2 vertically?
The golden era of flight/space sim !
I miss my wing commander(s) (don't you dare mention/reply Star-Citizen !)
I think I played/broken through 2 crappy-cheap joysticks via the whole series. That perfect point in time (when you were young enough not to pay taxes, but old enough to get a soundblaster-card-kit with free wingcommander games)
I never really mastered flying the F-16 in Falcon 3.0, but I at least got to the point where I could take off and land OK. The mission planner for custom missions was very sophisticated too.
For Descent, I had also tried out the Logitech Cyberman 2 controller:
https://www.neogaf.com/threads/the-weird-and-wonderful-world...
In theory, it is ideal for flying your spacecraft in Descent, allowing you to move or turn in any direction in a a sort of intuitive fashion. However, it wasn't that satisfying in practice.
I'm confused by this, doesn't that seem backwards? If it was sitting normally wouldn't it naturally be helped by gravity to be as close to the laser as the mechanism would allow? Upside down, gravity would be pulling it away from the laser. Right?
I don't have a Playstation myself on hand, but from memory, these mounts usually had a certain amount of play in them - if you touched it, you could press it a bit lower, for instance. Whereas the clamp that grabs the disk on toploaders tended to make a very secure connection. So it's probably not bringing the disk closer to the laser, it's bringing the laser closer to the disc.
That's an impressive feat. The screenshots in the linked article look pretty nice particularly for the a PSX-era game, it has a good futuristic, but dirty industrial cityscape thing going on. Did you manage to utilise any of the tech in another project, or was the whole thing just completely binned?
At that time we used to bin everything and start again (from the engine point of view at least). Usually it was so complex and hacked together by the end that there wasn't a generalised system to extract. We'd obviously take what we learned into the next title, but less so the code.
PS2 was probably the first time I remember reusing engines.
I don't remember if it was the blog or the extended video but he also got into some of the close to the metal choices they made, like sharing variables and rolling dice on the compiler each build to fit with only a few kb spare in the whole cd space.
Sure, this wasn't an exhaustive list of every trick we had to do, it's just another war story. This is the one that I remember the most vividly, but there were myriad tricks to bend the system to do what it didn't want to do :)
This is effectively what younger generations that praise C don't get, the kind of tricks that most game developer had to do 20 - 30 years ago in home computers and game consoles, given the bad quality of C compilers in regards to code generation.
I've seen this pattern so many times in my time doing development (although I haven't done game development professionally), and why I tell people to avoid early development optimization. Trying to get things working correct and fast at the same time is an insane ammount of work, by the time you're done the requirements probably changed or the project flops, you'd be better off just getting something to satisfy minimum requirements first then make it fast.
In the 10 years I was in the industry (pre the era of off the shelf engines) I never saw a single title in a playable state until the last 6 months of the project, and sometimes later. My era was PS1, PS2, Dreamcast, original Xbox, Gamecube. I left as the PS3 was in its pre-release period.
I think for most games the dynamics are quite well known, and so it's less problematic if it's started later. But, in this case none of the dynamics of the game were worked out at any point, so it was doomed to fail.
On Lunatik I wasn't responsible for the game dynamics, I had one job: make the engine, and make it as fast as humanly possible so that the game and level designers can make a decent game. So, it's not either or, but it does take time to have the initial version that the team can work with (my C reference engine mentioned before).
One final point is that it's less about early optimisation and more about poor management, short timescales, and the balance of cash given to a team when signing with a publisher. When the money runs out, then you're in the lap of the publisher gods - it can go either way for many different reasons, some of which might have nothing to do with the game.
I suspect it's more professional now (and with better tooling), back then it was still pretty much a cottage industry: quite a large cottage industry, sure, but still pretty amateurish in terms of project management and planning. There wasn't a title I worked on that didn't overrun.
In the context of Eidos, for example, I seem to recall that Gex 3's game engine (which was a mediocre game at best) ended up being re-used/tweaked for Soul Reaver (which was an amazing game).
One thing I saw after I'd worked on 'Fireblade' for PS2 & XBox [1], we took its engine and tooling (which had also been used for 'Reign of Fire' [2] in parallel) for our next title 'Battalion Wars' for Nintendo. After 6 months of fighting the system we downed tools for 3 months just to refactor everything. It was the first time I'd seen a real aggressive, whole team, refactor - and it worked, but really the engine & tooling just weren't right for the game and shouldn't have been taken without a commitment to making it fit-for-purpose for the game we were about to build. It cost us time at the end of the project, and for a while we weren't sure if Nintendo would keep funding it - luckily it worked out (and is actually the game I'm most proud of working on).
But yeah, once the consoles got more powerful and had more memory it was possible to start building core tech for multiple games, which is what I did for the last 4 or 5 years of my time in games.
[1] https://en.wikipedia.org/wiki/Fire_Blade_(video_game)
[2] https://en.wikipedia.org/wiki/Reign_of_Fire_(video_game)
And usually you only need 'mostly correct.'
It also seems like the player might get rather frustrated that they can't hit an enemy ship that is five feet in front of them because the player ship is not exactly at the same elevation as the enemy ship.
And that in a nutshell was everything that was wrong.
How to make Defender in 3D when you can't line up with the ships in three dimensions. For a slower game it would have been less of an issue, but at the pace we wanted it didn't work.
If this was 1997, this would've been around the same time as Star Fox 64, and while that game was mostly on-rails (like Panzer Dragoon), it did have the "all range mode" maps where your movement was fully 3D. I played that game quite frequently as a child, and I don't remember ever feeling like I was having trouble hitting the enemy ships. Maybe the game had a very generous auto-target/fudge factor turned on so that the player felt like their aim was more accurate than it truly was?
Ha, I even had this problem with a 'modern' game, Uncharted (2? I think?). The one with the tutorial level with you on a dock having to shoot pirates or something. Aiming was impossible on the DualShock because you'd either not move the crosshairs or the crosshairs would just way overshoot once it started moving.
I ended up having to run up to the goons to land shots.
Thank God for Gamefly, that game went straight back even though I'd spend hours already getting it installed and then mandatory patches done.
EDIT: nvm it's in the post
https://www.unseen64.net/2020/11/16/lunatik-pure-entertainme...
"But ultimately the project failed because the original concept (3D Defender) was next to impossible to do really well. We tried many different gameplay mechanisms to make it work, and none were working"
It comes up every year or so on here and every time I end up rereading that series from start to finish.
I’ve seen a few in the series. Less technical but The NES comes to America is pretty good
And the Ultima online tried create programmatic eco system is kinda hysterical.
7 minutes (with lord British)
Ars (the publisher)has a whole list of them. Non YouTube but seem to have transcripts.
It's the channel of the Jon Burton, the director of the Traveller's Tales, he worked on games like Sonic 3D Blast or Crash Bandicoot: The Wrath of Cortex. It's full of interesting stories with technical details about how things were achieved on old hardware or why were they done in some funky ways.
Sounds bad but I've recently put this on a couple of times as background video to fall asleep to as well. Work's like a charm!