Viewing Single Trivia
▲
1
▼
According to programmer Zoid Kirsch, when rooms are streamed in behind doors, it's loading a compressed copy of the room (i.e. geometry, textures, models, game data). After the compressed copy is loaded into internal memory, space is allocated to decompress the room into, meaning memory is needed for both the compressed and decompressed copy. Since the GameCube has 24MB of RAM, the developers found that having both compressed and decompressed was too expensive to work with (see top image).
To solve this problem, they licensed an open source decompression library (Kirsch does not remember specifically what library but it might have been Lempel–Ziv–Oberhumer) that allows allocation of a single decompressed sized block, then loads the compressed copy into the upper section of the memory block, and decompresses it in place overwriting the compressed copy (see bottom image). This library fixed many issues with memory fragmentation and basically allowed the size of the game's rooms to be much larger.
To solve this problem, they licensed an open source decompression library (Kirsch does not remember specifically what library but it might have been Lempel–Ziv–Oberhumer) that allows allocation of a single decompressed sized block, then loads the compressed copy into the upper section of the memory block, and decompresses it in place overwriting the compressed copy (see bottom image). This library fixed many issues with memory fragmentation and basically allowed the size of the game's rooms to be much larger.
Zoid Kirsch tweet:
https://twitter.com/ZoidCTF/status/1590137508830285825
Lempel-Ziv-Oberhumer:
http://oberhumer.com/opensource/lzo/
https://twitter.com/ZoidCTF/status/1590137508830285825
Lempel-Ziv-Oberhumer:
http://oberhumer.com/opensource/lzo/
Comments (0)
You must be logged in to post comments.
Related Games
Metroid
Metroid: Zero Mission
Metroid Fusion
Metroid Prime: Federation Force
New Play Control! Metroid Prime
Metroid Prime Hunters
Metroid II: Return of Samus
Metroid Prime 3: Corruption
New Play Control! Metroid Prime 2: Dark Echoes
Metroid Prime 2: Echoes
Metroid: Other M
Metroid Dread
Super Metroid
Super Smash Bros. for Nintendo 3DS
Nintendo Land
Super Smash Bros.
Metroid Dread
Metroid II: Return of Samus DX
Super Smash Bros. Melee
Super Smash Bros. Ultimate
Metroid Prime: Trilogy
Super Smash Bros. for Wii U
Super Smash Bros. Brawl
Battle Clash
Eternal Darkness
Densetsu no Starfy 3
Mario Bros.
Super Mario RPG
Tetris
Kirby Super Star Ultra
PokéPark Wii: Pikachu's Adventure
Xenoblade Chronicles X
Densetsu no Starfy
New Play Control! Pikmin
Advance Wars 2: Black Hole Rising
Mario Party 6
Pokémon Mystery Dungeon: Explorers of Darkness
WarioWare D.I.Y.
Galactic Pinball
Rhythm Heaven Fever
Mario Kart Arcade GP
Mario & Sonic at the London 2012 Olympic Games
Pokémon Violet
The Legend of Zelda: The Minish Cap
Snipperclips: Cut It Out, Together!
Punch-Out!!
Mario Pinball Land
Vegas Stakes
The Legend of Zelda: Spirit Tracks
Tetris