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 Dread
Metroid
Metroid Prime 3: Corruption
Metroid Fusion
Metroid Prime 2: Echoes
Metroid: Zero Mission
Metroid Prime Hunters
Super Metroid
New Play Control! Metroid Prime 2: Dark Echoes
Metroid Prime: Trilogy
Metroid: Other M
New Play Control! Metroid Prime
Metroid II: Return of Samus
Metroid Prime: Federation Force
New Trivia!
Super Smash Bros. Ultimate
Super Smash Bros. Melee
Super Smash Bros. Brawl
Nintendo World Championships: NES Edition
Nintendo Land
Metroid II: Return of Samus DX
New Trivia!
Super Smash Bros. for Nintendo 3DS
New Trivia!
Super Smash Bros. for Wii U
Ultimate NES Remix
Metroid Dread
Super Smash Bros.
NES Remix 2
Donkey Kong no Ongaku Asobi
Super Mario Galaxy 2
Wario Land II
WarioWare D.I.Y.
Game & Watch Gallery 2
Densetsu no Starfy 3
New Trivia!
Pokémon Snap
Super Mario Maker
Donkey Kong Country 3: Dixie Kong's Double Trouble!
Panel de Pon
Pokémon Picross
Pokémon Shining Pearl
Mario's Super Picross
Tetris Attack
Super Mario World: Super Mario Advance 2
Donkey Kong: Coconut Crackers
Sakura Samurai: Art of the Sword
F-Zero: GP Legend
Super Punch-Out!!
Mario & Sonic at the Rio 2016 Olympic Games
The Legend of Zelda: Oracle of Seasons
Donkey Kong Country
New Trivia!
Pokémon Omega Ruby
Harvest Moon DS