Why did Donkey Kong 64 require more than 4 MB of memory?

[BACK]
Why did Donkey Kong 64 require more than 4 MB of memory?
Posted On: August 1, 2023

As most of you know, the N64 Donkey Kong game had a game breaking bug on the 4 MB memory version. They needed to include the expansion memory just so that bug wouldn't happen.


I can imagine in the age of computers and emulation, we should by now have a pretty decent idea as to why this bug happened. As in, limit ram to 4 MB, see what tries to access outside there and why.


Sadly it probably is hard to figure that out, and I can imagine that at the moment of the development switch to 8 MB, they actually started using more of that ram since it was there anyway.


Does anyone know what exactly, nearly got that game pulled at all?


Question from user Smileynator at stackexchange.


Answer:

Does anyone know what exactly, nearly got that game pulled at all?


Unfortunately, the actual issue will likely never be known, at least not any time soon. I will detail several technical reasons for this which I believe are objectively compelling enough to base my answer upon.


The primary issue preventing the diagnosis of that glitch is a fundamental matter of hardware architecture, and how using software to force one architecture to behave another will more often than not be extremely difficult and sometimes completely impossible. This is the reason why emulators in general are difficult to develop, highly difficult to develop well, and darn near impossible to develop so well that they'll run all games for a given platform without issue. This is why there's so many crappy/unfinished/abandoned emulator programs out there and so few fantastic ones. .


The second issue is that emulators don't actually emulate the hardware components and chipsets of a console. They just duplicate enough of the high level functions of the components that they're able to play the games. Even the emulators regarded as "perfect" are only cycle-accurate (correct timing), which is plenty for playing games but still not 100% hardware simulation (chip-accurate emulation).


The Donkey Kong glitch had to have been the result of some freak error between the memory management coded into the game and the actual memory control unit of the N64, meaning that to try to debug it via emulation on a PC, we would need chip-accurate emulation to fully simulate each and every logic chip in the N64's ludicrously complex Reality Co-Processor, funky 9-bit memory bus, and every other component. Unfortunately, this is literally impossible with current technology. 


If the people who are the world's foremost experts on the DK64 software couldn't fix it when it was literally their job to do so, I doubt anyone else will discover the cause unless they just happen to by total accident.


Answer from user Barkode at stackexchange.



[BACK]
Why did Donkey Kong 64 require more than 4 MB of memory?
Posted On: August 1, 2023

As most of you know, the N64 Donkey Kong game had a game breaking bug on the 4 MB memory version. They needed to include the expansion memory just so that bug wouldn't happen.


I can imagine in the age of computers and emulation, we should by now have a pretty decent idea as to why this bug happened. As in, limit ram to 4 MB, see what tries to access outside there and why.


Sadly it probably is hard to figure that out, and I can imagine that at the moment of the development switch to 8 MB, they actually started using more of that ram since it was there anyway.


Does anyone know what exactly, nearly got that game pulled at all?


Question from user Smileynator at stackexchange.


Answer:

Does anyone know what exactly, nearly got that game pulled at all?


Unfortunately, the actual issue will likely never be known, at least not any time soon. I will detail several technical reasons for this which I believe are objectively compelling enough to base my answer upon.


The primary issue preventing the diagnosis of that glitch is a fundamental matter of hardware architecture, and how using software to force one architecture to behave another will more often than not be extremely difficult and sometimes completely impossible. This is the reason why emulators in general are difficult to develop, highly difficult to develop well, and darn near impossible to develop so well that they'll run all games for a given platform without issue. This is why there's so many crappy/unfinished/abandoned emulator programs out there and so few fantastic ones. .


The second issue is that emulators don't actually emulate the hardware components and chipsets of a console. They just duplicate enough of the high level functions of the components that they're able to play the games. Even the emulators regarded as "perfect" are only cycle-accurate (correct timing), which is plenty for playing games but still not 100% hardware simulation (chip-accurate emulation).


The Donkey Kong glitch had to have been the result of some freak error between the memory management coded into the game and the actual memory control unit of the N64, meaning that to try to debug it via emulation on a PC, we would need chip-accurate emulation to fully simulate each and every logic chip in the N64's ludicrously complex Reality Co-Processor, funky 9-bit memory bus, and every other component. Unfortunately, this is literally impossible with current technology. 


If the people who are the world's foremost experts on the DK64 software couldn't fix it when it was literally their job to do so, I doubt anyone else will discover the cause unless they just happen to by total accident.


Answer from user Barkode at stackexchange.



[BACK]

What is the optimum pattern to place crops in Minecraft? What is the optimum pattern to place crops in Minecraft?

Posted On: April 25, 2023
What factors affect soil hydration and crop growth time? What is the most efficient layout of dirt and water to grow crops? Question from user Joe Dovahkiin at gaming.stackexchange.com. Answer: ...[More]


Whats the quickest way to get all of the achievements in StarCraft 2? Whats the quickest way to get all of the achievements in StarCraft 2?

Posted On: February 24, 2023
As the title says, are there any shortcuts to getting all of the achievements in the game (preferably without cheesing through games, etc.)? Question from user happy_soil at gaming.stackexchange.co...[More]


In Tears of the Kingdom is there a workaround for using an Amiibo more than once per day? In Tears of the Kingdom is there a workaround for using an Amiibo more than once per day?

Posted On: May 13, 2023
Each unique amiibo unlock random loot, but can only be used once every 24 hours in The Legend of Zelda: Tears of the Kingdom. If you try and exceed the limit you will receive the message “This a...[More]


Agitated Giant Thrips: how to properly deal with them in Dwarf Fortress? Agitated Giant Thrips: how to properly deal with them in Dwarf Fortress?

Posted On: April 25, 2023
The number one cause of death on my Fortress is: attack by flying insects. As they don't activate the Cage Traps, because they don't touch the ground, which are the possible ways to deal wi...[More]


How do I get the missile upgrade blocked by a fan in Area 1? How do I get the missile upgrade blocked by a fan in Area 1?

Posted On: December 18, 2023
Near the top of Area 1, there is an area on the ceiling accessible using the spider Spider Ball with a missile upgrade behind a wall. The upgrade near a fan that sucks up bombs, preventing me from bre...[More]


What is the hidden trophy below Lore Master? What is the hidden trophy below Lore Master?

Posted On: August 25, 2023
In Lucky Luna's trophy list there is a hidden Story Mode trophy marked ??? near the bottom of the list. It sits between the trophies for Lore master and Taking flight. What are the requirements fo...[More]


Do companions level up over time? Does it matter what equipment they carry around? Do companions level up over time? Does it matter what equipment they carry around?

Posted On: September 8, 2023
My first companion on Starfield is "Sarah Morgan". Does she level up over time when she accompanies me on missions? Does it matter what kind of weapons, suits, or helmets I give her to...[More]


Third Person Mode for Portal - Portal 2 Third Person Mode for Portal - Portal 2

Posted On: June 1, 2023
I picked up Portal and Portal 2 when they were on sale on Steam a few weeks back. I think these could be really good games, but I (for whatever reason) get vertigo when playing first person games. ...[More]


Do gamepads always deteriorate from extended disuse and is there anything to be done about it? Do gamepads always deteriorate from extended disuse and is there anything to be done about it?

Posted On: May 15, 2023
I've owned two USB gamepads for PC now. The first was some noname pad I got really cheap in a supermarket. The second was (and is) Logitech Rumblepad 2. In both cases I've had the same problem...[More]


Will unplucked pikmin be left behind at the end of a day? Will unplucked pikmin be left behind at the end of a day?

Posted On: March 31, 2024
In Pikmin 1, if I have Pikmin sprouts I haven't plucked yet, what happens to the unplucked Pikmin when a day ends? Will they be left behind?Question from user Stevoisiak at gaming.stackexchange.com.An...[More]