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]

Will a Star Fragment disappear if I use fast travel in Tears of the Kingdom? Will a Star Fragment disappear if I use fast travel in Tears of the Kingdom?

Posted On: May 29, 2023
I saw a Star Fragment land a fair distance away from me while exploring at night. I was going to run towards it, when I noticed it had landed right next to a tower I could fast travel to. If I fast...[More]


Does how the ghost look like can give you the answer as to what it is? Does how the ghost look like can give you the answer as to what it is?

Posted On: October 15, 2023
When you can see the ghost, is the model used a good way to know what ghost you are dealing with, or are the models unrelated to the current ghost? Question from user Fredy31 at stackexchange. A...[More]


What does the keyword Treble do? What does the keyword Treble do?

Posted On: April 14, 2024
What does the keyword Treble do? The following description is not clear to me.Add Treble to the left side. Other Keywords x2 -> x3.Question from user GnomeSlice at gaming.stackexchange.com.Answer:Ot...[More]


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]


Do you pay a gold tax when beating the final boss in Heroes Of Hammerwatch? Do you pay a gold tax when beating the final boss in Heroes Of Hammerwatch?

Posted On: March 10, 2023
Throughout the game, you can deposit your found gold and ore in elevators to take to the surface, at a tax rate that depends on how much gold you have collected. I decided to be brave, and do an entir...[More]


What programming language or game engine is Hogwarts Legacies written in? What programming language or game engine is Hogwarts Legacies written in?

Posted On: July 20, 2023
I was curious as to what was used to make this game. What programming language or game engine was used to create Hogwarts Legacies? Question from user Shaun Roselt at stackexchange. Answer: ...[More]


Using - execute command, how do I check if a block is one of multiple possibilities? Using - execute command, how do I check if a block is one of multiple possibilities?

Posted On: April 8, 2024
Using an /execute command, I want to check if a certain block is, for example, either oak_fence, OR iron_bars.However, in my specific case, I can't just use two command blocks to check for either one ...[More]


Can I have more than one of the same trading card? Can I have more than one of the same trading card?

Posted On: January 22, 2023
Steam now has trading cards. In order to get them, you're supposed to play specific games (currently there are only 6 games supported, but they've said more will come).However, it's only possible to ...[More]


Will I still get weapon discounts in Ratchet & Clank 3 with a Ratchet & Clank 1 new game+ save? Will I still get weapon discounts in Ratchet & Clank 3 with a Ratchet & Clank 1 new game+ save?

Posted On: March 8, 2024
In Ratchet and Clank 3: Up your Arsenal, it's possible to get an "employee discount" at Gadgetron weapons vendors if you have a save file from Ratchet & Clank 1 present on the memory card.The save fil...[More]


Why is 3333360 the maximum score in Pac-Man? Why is 3333360 the maximum score in Pac-Man?

Posted On: December 19, 2019
According to the Wikipedia page for Pac-Man, the highest possible score is 3333360 points. It's called a perfect game and it was achieved by 3 different people already. What I want to know is: ...[More]