Memory-saving tricks in software of the 80's

  • 5 Replies

0 Members and 1 Guest are viewing this topic.

Offline marcm200

  • *
  • Fractal Freak
  • **
  • Posts: 741
« on: May 27, 2020, 07:28:28 AM »
I recently learned about some tricks, software developers employed for the Amstrad game Elite in the early 80's when memory was a concern back then.
(from a german podcast:

Does anyone know of further such brilliant ideas from other software?

Elite is one of my favourite games from the 80s. You're a starship pilot, flying the universe, trading goods and shooting enemies to climb the rating ladder of traders.

Trick 1
The developers use a system of 2-letter syllables that - in any combination - sound like alien planetary names. With that method they could just store a short bit pattern for every planet instead of a longer character string (La-ve, Le-eh-ti).

Trick 2
For the galaxies, the planets and where which goods are tradable and to what price, they use a (system of) equations, where, when a different seed is entered, a different bit string results that is interpreted as the desired planet (I haven't figured that part out yet). Sounds almost like a compression method to me.

It would be interesting to use the classic quadratic Mandelbrot equation to form such a planetary system - with different seeds and different max it resulting in different alien systems :)


Offline gerrit

  • *
  • 3f
  • ******
  • Posts: 2165
« Reply #1 on: May 27, 2020, 07:59:40 AM »
Reminds me of the SMTP greeting: HELO

Offline hobold

  • *
  • Fractal Furball
  • ***
  • Posts: 298
« Reply #2 on: May 27, 2020, 11:19:46 AM »
Elite was procedurally generated. It was not the first game to do this. Pitfall was procedural, M.U.L.E.'s maps were procedural, too, for example. It was a common technique to work around the limited amounts of mass storage and main memory. It wasn't called "procedural" back then. And it isn't called "procedural" today, because today that word implies the (frequent) generation of fresh game content. Back then games re-generated a fixed set of game content, pre-selected by the game makers.

Initially, the procedural generators were flawed. They would sometimes create unplayable or otherwise buggy game content. That's why the game designers restricted their games to a small, hand picked subset of possible creations.

Later, in the 16 bit home computer era, procedural generators could be more sophisticated. They started to generate content with guarantees of playability and variety. I remember "Seven Cities of Gold" as my first encounter with a game that could create an entire new game world from scratch after you had played through the initial campaign (which was a manually created map of South America, if I remember correctly).

But most of the experimentation and exploration of possibilities was done outside the commercial video game industry. Rogue, Hack (and particularly Nethack) were all about procedurally generated dungeons as their core game mechanic. Some really weird experimentation continues until this day - I believe it was here on FractalForums that I was made aware of "Hyperrogue", which is set on the hyperbolic plane.

Data compression techniques are being employed, too. One of Sony's God of War games did some really heroic feats internally to let the Playstation shine in its brightest light. For example, it encoded a few extra bits of information by making intentional choices about the order in which they stored the three vertices of each surface facet. It is no coincidence that the end credits roll several hundred names. The Cell Processor was powerful, but a lot of ingenuity was necessary to overcome its limitations.

Offline marcm200

  • *
  • Fractal Freak
  • **
  • Posts: 741
« Reply #3 on: May 27, 2020, 07:36:03 PM »
Very interesting, thanks for the explanation. I wasn't aware that this method was so widespread and had never heard of it before.

But back in the 80s, my programming skills were at the beginner's state. I remember being very proud having managed to stop a text adventure from loading from datasette and look at the BASIC code lines to see which commands to enter where actually understood by the parser (I think the game's name was Thor trilogy with a guy named Llywenhuf or so), but it didn't help solvin the task :)

Offline marcm200

  • *
  • Fractal Freak
  • **
  • Posts: 741
« Reply #4 on: May 28, 2020, 06:52:07 PM »
A little computer experiment I'm conducting right now.

The "hello world" polynomial:

f(x) = x^6+3x^5+394x^4+416x^3+234x^2+293x+258

\( f(466) = 10324913503655364 \) which can be interpreted to represent "hello world" by considering the binary bit string of the function value, split into groups of 5 bits taken as an entry to an alphabet. In a sense this is a procedural method, as there is another text hidden in the formula.

\( f(1262) = 4050368722319510032 \) which reads "cykl_tiffanyy" containing the name of an 80's female singer.
The latter was put there by rearranging the alphabet as the two words are disjoint, so after constructing the polynomial with "hello world" I could freely move the alphabet at some points around to fit the desired letter shape without changing hello world's function value.

My goal here is to construct a polynomial for galac's minuscule Mandelbrot code which only has 165 characters. I hope to get a function with not too many coefficients. For that I have to find an easy (or best not-to)-install BigInt library or try to write a maxima script to get the desired precision.

Offline marcm200

  • *
  • Fractal Freak
  • **
  • Posts: 741
« Reply #5 on: June 02, 2020, 09:28:40 AM »

My attempt to compress the minuscule Mset C++ code further with polynomials did not work out. I can get a degree 60 (or other values)-polynomial, but the coefficients need ~440 characters. Even when compressing the base-10 digits to 4-bits, it is larger. It would only be a real compression if there were dozens of further useful programs in the function, but that hasn't been checked.

f(573581) is the Mset code.

Code: [Select]

Maxima code to produce the polynomial from the input (too large to display) number which reoresents the C++ characters in 7-bit ASCII appended to form a long bit string.
Code: [Select]


for kinv:0 step 1 unless kinv>maxexp do (

FragM does not use video card memory

Started by SCORPION on Fragmentarium

1 Replies
Last post October 27, 2019, 03:01:20 AM
by 3DickUlus
Thread Error Count: Not Enough Memory

Started by eat vyvanse on Fractal Programs Discussion, Help, & Support

1 Replies
Last post March 01, 2019, 02:54:00 AM
by eat vyvanse
Software Help

Started by Sunshower on Fractal Programs Discussion, Help, & Support

2 Replies
Last post July 27, 2019, 07:40:58 AM
by mclarekin
What is the best 3D Fractal software for a VFX pipeline?

Started by FractalHQ on Fractal Programs Discussion, Help, & Support

1 Replies
Last post June 23, 2019, 07:45:34 PM
by 3DickUlus
Sharing pm-files Jux software.

Started by Caleidoscope on Xenodream

21 Replies
Last post June 18, 2020, 02:59:43 PM
by Caleidoscope