|
Rena I had one (1) message in Discord deleted and proceeded to make a huge, huge mess about how it was a violation of free speech and how moderators are supposed to be spam janitors and nobody should have the right to tell me not to talk about school shootings Level: 135 Posts: 4829/5390 EXP: 29077536 For next: 257469 Since: 07-22-07 Pronouns: he/him/whatever From: RSP Segment 6 Since last post: 343 days Last activity: 343 days |
|
Post #4829 · Wed 120613 002905 For me, Pokémon G/S. We got a debug version of the one Pokémon game I didn't enjoy, but not the one just before it. Go figure...
I have a suspicion that Nintendo uses (or at least once used) homebrewed compilers that don't optimize very well. Of course a lot of debugging code does get stripped from the final builds (look how few debug functions made it from the debug build of OoT to the final), but it depends how they're implemented whether the compiler can remove them or not. A lot of the debug functions are probably like: #if DEBUG
so by just compiling a non-debug version, that code is completely removed. But, a lot of games also have code like: if(debug_enabled) doDebugStuff();
In that case, debug_enabled is a variable in RAM, and the code gets left in even though the code that enables it is removed. You can see this in Mario Kart 64 and Ocarina of Time; there are flags in RAM that enable debug options. Unless their compiler has gotten a lot more clever lately, this kind of debug code usually remains in the final build. Then there are cases where the code is there, but branched over, and you have to patch it to enable it again. I'm not sure how that gets left in by any sane compiler, but that's partly where my theory about a homebrewed compiler comes from... (obviously this also is common in NES/SNES/GB games, but those were coded in assembly, so the code only gets removed if the programmer removes it themselves.) I know at least compiler warnings (if there even were any) were ignored in Mario 64, so who knows, maybe they didn't even optimize... ____________________ |














