Skip to content
Techniques & Technology

Size Coding

The art of compression

Size coding emerged from demo scene competitions with strict byte limits, pushing programmers to achieve impossible effects in 64KB, 4KB, or even 256 bytes.

C64AmigapcSpectrum demooptimisationprogramming 1987–present

Overview

How much can you fit in 64 kilobytes? What about 4 kilobytes? 256 bytes? The demo scene answered these questions with productions that seemed to defy physics. Size coding—creating complex audiovisual productions under strict byte limits—became an art form. The techniques developed fed into game compression, procedural generation, and efficient programming practices.

Fast facts

  • Origin: Demo scene size competitions (late 1980s).
  • Categories: 64K, 4K, 1K, 256 bytes, smaller.
  • Techniques: Procedural generation, compression.
  • Influence: Game engines, web development, embedded systems.

Size categories

CategoryLimitChallenge
DemoUnlimitedFull artistic expression
64K intro65,536 bytesProcedural textures, music
4K intro4,096 bytesExtreme compression
1K intro1,024 bytesMinimalist effects
256 byte256 bytesPure code golf

Legendary productions

ProductionSizeAchievement
.kkrieger96KBComplete FPS game
Elevated4KBMountain landscape flythrough
fr-0864KBFull 3D engine, procedural everything
Memories256 bytesC64 demo, multiple effects

Techniques

TechniquePurpose
Procedural generationCreate content algorithmically
Executable compressionPack code tightly
Mathematical texturesFormulas instead of bitmaps
SynthesisGenerate audio mathematically

Modern applications

Size-coding discipline appears in:

  • Web performance optimisation
  • Embedded systems
  • Game asset compression
  • Demakes and fan projects

See also