{"video_id":"9_gdOKSTaxM","comment_count":400,"fetched_at":"2026-10-23T16:42:14+00:00","source":"innertube_next","comments":[{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"UgwS5IRENAall5jJNKh4AaABAg","text":"What about the Virtual Console version of this game, since that doesn't have slowdown? How does it compare to O2 on the N64?","author":"@mr.whimsic6902","author_id":"UCfM8afw9-puSZj2mHks-tGg","like_count":743,"published_time":"6 years ago"},{"id":"UgzwdrGKxnxJYMjJuJZ4AaABAg","text":"Your comment about SD Card speeds is irrelevant since the game is loaded onto the Everdrive's ram which will act just like a real cart.   Its not streaming from the SD Card throughout the game.","author":"@charvelgtrs","author_id":"UCnqhHr4INGxLywngH51wWxg","like_count":263,"published_time":"6 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"Ugy-PYpTHhQVvkpjYqB4AaABAg","text":"Also that makefile you showed being changed was not from Nintendo, that conditional was put in there by the decomp project so builds of a given version (EU or other) would result in a ROM identical to the ROM found on the corresponding retail  cartridge.","author":"@burk3","author_id":"UCCypwWHA-FUsMjsygGDD5kQ","like_count":47,"published_time":"6 years ago"},{"id":"UgzrMEMmE4m7uEYuBqB4AaABAg","text":"If the PAL Version has these Compiler Optimizations, maybe the Japanese Shindou Edition has them too since that came after the PAL release. Did someone check on that?","author":"@Soonjai","author_id":"UCQRXVg-uVe1GbANfm2JBo_A","like_count":495,"published_time":"6 years ago"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"UgwS5IRENAall5jJNKh4AaABAg","text":"What about the Virtual Console version of this game, since that doesn't have slowdown? How does it compare to O2 on the N64?","author":"@mr.whimsic6902","author_id":"UCfM8afw9-puSZj2mHks-tGg","like_count":743,"published_time":"6 years ago"},{"id":"UgzwdrGKxnxJYMjJuJZ4AaABAg","text":"Your comment about SD Card speeds is irrelevant since the game is loaded onto the Everdrive's ram which will act just like a real cart.   Its not streaming from the SD Card throughout the game.","author":"@charvelgtrs","author_id":"UCnqhHr4INGxLywngH51wWxg","like_count":263,"published_time":"6 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"Ugy-PYpTHhQVvkpjYqB4AaABAg","text":"Also that makefile you showed being changed was not from Nintendo, that conditional was put in there by the decomp project so builds of a given version (EU or other) would result in a ROM identical to the ROM found on the corresponding retail  cartridge.","author":"@burk3","author_id":"UCCypwWHA-FUsMjsygGDD5kQ","like_count":47,"published_time":"6 years ago"},{"id":"UgzrMEMmE4m7uEYuBqB4AaABAg","text":"If the PAL Version has these Compiler Optimizations, maybe the Japanese Shindou Edition has them too since that came after the PAL release. Did someone check on that?","author":"@Soonjai","author_id":"UCQRXVg-uVe1GbANfm2JBo_A","like_count":495,"published_time":"6 years ago"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugw1dHsuCEBi8ASc4od4AaABAg","text":"Hope they fix this in the remaster","author":"@nikkoa.3639","author_id":"UC9MH6A9F1A3-UrKSw7XdK6A","like_count":2,"published_time":"6 years ago"},{"id":"UgwS5IRENAall5jJNKh4AaABAg","text":"What about the Virtual Console version of this game, since that doesn't have slowdown? How does it compare to O2 on the N64?","author":"@mr.whimsic6902","author_id":"UCfM8afw9-puSZj2mHks-tGg","like_count":743,"published_time":"6 years ago"},{"id":"UgyipdVO9jZ_QzLjtCd4AaABAg","text":"Being honest, a lot of N64 games run like shi* and that is a problem of that era.\nI think that Nintendo achieved perfection with the Gamecube, i don't know any single gamecube game with framerate issues.","author":"@saricubra2867","author_id":"UCilzcmceTh3_oaXIK5vCdMA","like_count":1,"published_time":"6 years ago"},{"id":"Ugy46Nnfjk_Dr4GWPyN4AaABAg","text":"4:16 \"O2 is considered quite safe.\" I've actually managed to write a piece of code that would behave wrongly when compiled with the -O2 flag just a short while back. Granted, I was compiling for a somewhat more exotic piece of hardware (the ESP8266), but still. I had to downgrade to -O1 because of that. :(","author":"@ThePC007","author_id":"UCe7DajWuFp1wbwsolfaj0-w","like_count":14,"published_time":"6 years ago"},{"id":"UgzxowbkJsOW1lMOGL14AaABAg","text":"To claim that Nintendo were not aware of compiler flags is laughable.\n\n\nThere are some very obvious reasons why.","author":"@tr1p1ea","author_id":"UCOv9haqjlauEGqugj251ugQ","like_count":0,"published_time":"6 years ago"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"Ugw4em1nzscQaR4Ue3N4AaABAg","text":"It's so disappointing how much disinformation is this video and the highly-upvoted comments— it's clear that much of the ROM-hacking community is fairly fresh to software development, and certainly weren't programming in the mid-1990s and have never professionally developed games for a Nintendo console using the official devkits and toolchains.\n\nWhich I don't blame you for— not everybody has the same experience.  However, please please please do a tiny shred of basic research on what tools Nintendo supplied in the 90s before jumping to conclusions.  There's been so much great compiler improvements in the last 25 years that didn't exist or just weren't widely used (for various reasons) in the 90s.\n\nPlease, it just hurts so much to hear and read so much stuff that's just factually distorted and incorrect.  I've commented on some, but there are plenty more assumptions and mistakes being made by so-called experts here.  Please, research, understand, and share the actual reality of things.  Heck, even try reaching out to some old devs who worked on N64 games (USA-based is probably your best bet)— a lot will be friendly and would love to share the real stories for the sake of preserving a forgotten history.  Please stop making stuff up based on what present-day GCC and Clang do.","author":"@CapnSlipp","author_id":"UCNO02BEMQZS2UQxRSdi0P9w","like_count":0,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgxCyugqaky6HwnIhvF4AaABAg","text":"Wait a sec, isn't reverse engineering illegal?","author":"@sh0bez","author_id":"UCuxRJizTbnp-5Yxt0a4OL7A","like_count":0,"published_time":"6 years ago (edited)"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgxJxR5Z5AQmsCgqX8d4AaABAg","text":"7:18 Someone Please tell me what game that background music's from","author":"@lifelesssponge6442","author_id":"UC6j3kYHIOoIK_TH2NgeC0QA","like_count":0,"published_time":"5 years ago"},{"id":"UgzrMEMmE4m7uEYuBqB4AaABAg","text":"If the PAL Version has these Compiler Optimizations, maybe the Japanese Shindou Edition has them too since that came after the PAL release. Did someone check on that?","author":"@Soonjai","author_id":"UCQRXVg-uVe1GbANfm2JBo_A","like_count":495,"published_time":"6 years ago"},{"id":"UgxCRlfwGXcY92facHN4AaABAg","text":"How is the Japanese version the most used in speedrunning? I thought that one didn't have BLJ's... Or is that a later version or something","author":"@tj_internet","author_id":"UCwTKYRm-kPBCr7dNd3tvkXA","like_count":1,"published_time":"3 years ago"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgztOrjmk2YtZHYnL-B4AaABAg","text":"Wait - I would guess that many improvements in GCC compiler options have been done in the last 20 years, optimizations and improvements that simply weren't available when Nintendo released Mario 64.  If you really want to compare this to the original, why not use a compiler from 20 years ago ? >_>","author":"@scyfris","author_id":"UCB6pPGHSchiAZZa2J4j6hbw","like_count":0,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"UgwS5IRENAall5jJNKh4AaABAg","text":"What about the Virtual Console version of this game, since that doesn't have slowdown? How does it compare to O2 on the N64?","author":"@mr.whimsic6902","author_id":"UCfM8afw9-puSZj2mHks-tGg","like_count":743,"published_time":"6 years ago"},{"id":"UgzwdrGKxnxJYMjJuJZ4AaABAg","text":"Your comment about SD Card speeds is irrelevant since the game is loaded onto the Everdrive's ram which will act just like a real cart.   Its not streaming from the SD Card throughout the game.","author":"@charvelgtrs","author_id":"UCnqhHr4INGxLywngH51wWxg","like_count":263,"published_time":"6 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"Ugy-PYpTHhQVvkpjYqB4AaABAg","text":"Also that makefile you showed being changed was not from Nintendo, that conditional was put in there by the decomp project so builds of a given version (EU or other) would result in a ROM identical to the ROM found on the corresponding retail  cartridge.","author":"@burk3","author_id":"UCCypwWHA-FUsMjsygGDD5kQ","like_count":47,"published_time":"6 years ago"},{"id":"UgzrMEMmE4m7uEYuBqB4AaABAg","text":"If the PAL Version has these Compiler Optimizations, maybe the Japanese Shindou Edition has them too since that came after the PAL release. Did someone check on that?","author":"@Soonjai","author_id":"UCQRXVg-uVe1GbANfm2JBo_A","like_count":495,"published_time":"6 years ago"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"UgwS5IRENAall5jJNKh4AaABAg","text":"What about the Virtual Console version of this game, since that doesn't have slowdown? How does it compare to O2 on the N64?","author":"@mr.whimsic6902","author_id":"UCfM8afw9-puSZj2mHks-tGg","like_count":743,"published_time":"6 years ago"},{"id":"UgzwdrGKxnxJYMjJuJZ4AaABAg","text":"Your comment about SD Card speeds is irrelevant since the game is loaded onto the Everdrive's ram which will act just like a real cart.   Its not streaming from the SD Card throughout the game.","author":"@charvelgtrs","author_id":"UCnqhHr4INGxLywngH51wWxg","like_count":263,"published_time":"6 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"Ugy-PYpTHhQVvkpjYqB4AaABAg","text":"Also that makefile you showed being changed was not from Nintendo, that conditional was put in there by the decomp project so builds of a given version (EU or other) would result in a ROM identical to the ROM found on the corresponding retail  cartridge.","author":"@burk3","author_id":"UCCypwWHA-FUsMjsygGDD5kQ","like_count":47,"published_time":"6 years ago"},{"id":"UgzrMEMmE4m7uEYuBqB4AaABAg","text":"If the PAL Version has these Compiler Optimizations, maybe the Japanese Shindou Edition has them too since that came after the PAL release. Did someone check on that?","author":"@Soonjai","author_id":"UCQRXVg-uVe1GbANfm2JBo_A","like_count":495,"published_time":"6 years ago"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"Ugy629kJySNH7lUUzfx4AaABAg","text":"nitpick @ 1:56 That's C++ not C","author":"@kimothefungenuis","author_id":"UCy5DQFfDDtFZl9NAgygJeXg","like_count":5,"published_time":"1 year ago"},{"id":"UgwS5IRENAall5jJNKh4AaABAg","text":"What about the Virtual Console version of this game, since that doesn't have slowdown? How does it compare to O2 on the N64?","author":"@mr.whimsic6902","author_id":"UCfM8afw9-puSZj2mHks-tGg","like_count":743,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"Ugy5o4M5jomu5TGbWst4AaABAg","text":"Me: I don't remember slow down in the Pal version I played...\n\nAlso Me: Oh yeah.... 25fps","author":"@Sergeantmajormario","author_id":"UCNLNkBaWh1Nc1EdVJ6smZtQ","like_count":65,"published_time":"6 years ago (edited)"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgwWzO4wtKDPrgdcKdx4AaABAg","text":"Talks about C, shows C++ code and docs.\nnice.","author":"@kiroma0","author_id":"UCS4dLg1ZzpnjrqZGxnVpkoA","like_count":160,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"UgxbEnA8HIgyT8wW9T94AaABAg","text":"Missed opportunity to call it “Super Slow 64”","author":"@1x15j2","author_id":"UC1WhGm-tSyQbmboXpcy5ETQ","like_count":0,"published_time":"5 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgxSAer7DOZ6L_u_YMh4AaABAg","text":"...\"a professional speedrunner\", wait, there are PROFESSIONAL speedrunners?! Wtf.","author":"@potzblitzy","author_id":"UCNPDeEQ3dI5xTNpfq0O9BNQ","like_count":1,"published_time":"6 years ago"},{"id":"Ugy_kn2qGWvLEU1zGwR4AaABAg","text":"I mean, the Korok Forrest in BOTW is a laggy mess and thats from 2017 lol","author":"@geraldysjunk","author_id":"UCVA44Xfl69w5YdjmD8j_mkA","like_count":1,"published_time":"3 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"Ugyu-V8YUHbrqGNouj54AaABAg","text":"I never noticed any lag on my n64. I never paid attention to it either but it definitely isnt as bad as the video shows.","author":"@anonymouscommentator","author_id":"UCj2I88Q9n5N18CwQIRzGPJw","like_count":1,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgyHK9tXa9vvSk7HqpJ4AaABAg","text":"Nintendo can't do anything at all since once the code is reverse engineered, the copyright doesn't really applicate to the product","author":"@DamirMaatar","author_id":"UCSCmx8O5JgdotTC98QYhaXw","like_count":0,"published_time":"5 years ago (edited)"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"Ugy7I7lIwdE5reImBxZ4AaABAg","text":"O2 is very safe these days. In the mid 90s, I don't think so. I definitely encountered compiler bugs with GCC optimization around that time. All it would take is one bad situation during development to decide they can't trust O2 and turn it off, so I think it's pretty plausible that it was deliberate. The PAL release would have gotten another big testing cycle, so maybe they thought it was worth trying again at that point.","author":"@Sakanakao","author_id":"UCwfgpMf8cpzWsvM5Dn7e6lA","like_count":1,"published_time":"6 years ago"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"UgyZvXi39gZ3ANzVuTZ4AaABAg","text":"Nintendo Probably Wanted To Limit The Speed Of The Game, But They Did It Too Much.","author":"@prescott2m","author_id":"UCM0PYXE07O7ZNTLeZn1G8uA","like_count":0,"published_time":"5 years ago"},{"id":"UgzrMEMmE4m7uEYuBqB4AaABAg","text":"If the PAL Version has these Compiler Optimizations, maybe the Japanese Shindou Edition has them too since that came after the PAL release. Did someone check on that?","author":"@Soonjai","author_id":"UCQRXVg-uVe1GbANfm2JBo_A","like_count":495,"published_time":"6 years ago"},{"id":"Ugw1dHsuCEBi8ASc4od4AaABAg","text":"Hope they fix this in the remaster","author":"@nikkoa.3639","author_id":"UC9MH6A9F1A3-UrKSw7XdK6A","like_count":2,"published_time":"6 years ago"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgwCCzmMIJFBvfkvoch4AaABAg","text":"Do these optimizations slow down the compile process? Might be a case of \"We'll put it back in when we release\" that was eventually overlooked.","author":"@Ben-kz2km","author_id":"UC8pFSCv9ku6RsX0NNU6C4ew","like_count":0,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"UgwS5IRENAall5jJNKh4AaABAg","text":"What about the Virtual Console version of this game, since that doesn't have slowdown? How does it compare to O2 on the N64?","author":"@mr.whimsic6902","author_id":"UCfM8afw9-puSZj2mHks-tGg","like_count":743,"published_time":"6 years ago"},{"id":"UgzwdrGKxnxJYMjJuJZ4AaABAg","text":"Your comment about SD Card speeds is irrelevant since the game is loaded onto the Everdrive's ram which will act just like a real cart.   Its not streaming from the SD Card throughout the game.","author":"@charvelgtrs","author_id":"UCnqhHr4INGxLywngH51wWxg","like_count":263,"published_time":"6 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"Ugy-PYpTHhQVvkpjYqB4AaABAg","text":"Also that makefile you showed being changed was not from Nintendo, that conditional was put in there by the decomp project so builds of a given version (EU or other) would result in a ROM identical to the ROM found on the corresponding retail  cartridge.","author":"@burk3","author_id":"UCCypwWHA-FUsMjsygGDD5kQ","like_count":47,"published_time":"6 years ago"},{"id":"UgzrMEMmE4m7uEYuBqB4AaABAg","text":"If the PAL Version has these Compiler Optimizations, maybe the Japanese Shindou Edition has them too since that came after the PAL release. Did someone check on that?","author":"@Soonjai","author_id":"UCQRXVg-uVe1GbANfm2JBo_A","like_count":495,"published_time":"6 years ago"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"UgwS5IRENAall5jJNKh4AaABAg","text":"What about the Virtual Console version of this game, since that doesn't have slowdown? How does it compare to O2 on the N64?","author":"@mr.whimsic6902","author_id":"UCfM8afw9-puSZj2mHks-tGg","like_count":743,"published_time":"6 years ago"},{"id":"UgzwdrGKxnxJYMjJuJZ4AaABAg","text":"Your comment about SD Card speeds is irrelevant since the game is loaded onto the Everdrive's ram which will act just like a real cart.   Its not streaming from the SD Card throughout the game.","author":"@charvelgtrs","author_id":"UCnqhHr4INGxLywngH51wWxg","like_count":263,"published_time":"6 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"Ugy-PYpTHhQVvkpjYqB4AaABAg","text":"Also that makefile you showed being changed was not from Nintendo, that conditional was put in there by the decomp project so builds of a given version (EU or other) would result in a ROM identical to the ROM found on the corresponding retail  cartridge.","author":"@burk3","author_id":"UCCypwWHA-FUsMjsygGDD5kQ","like_count":47,"published_time":"6 years ago"},{"id":"UgzrMEMmE4m7uEYuBqB4AaABAg","text":"If the PAL Version has these Compiler Optimizations, maybe the Japanese Shindou Edition has them too since that came after the PAL release. Did someone check on that?","author":"@Soonjai","author_id":"UCQRXVg-uVe1GbANfm2JBo_A","like_count":495,"published_time":"6 years ago"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"UgwS5IRENAall5jJNKh4AaABAg","text":"What about the Virtual Console version of this game, since that doesn't have slowdown? How does it compare to O2 on the N64?","author":"@mr.whimsic6902","author_id":"UCfM8afw9-puSZj2mHks-tGg","like_count":743,"published_time":"6 years ago"},{"id":"UgzwdrGKxnxJYMjJuJZ4AaABAg","text":"Your comment about SD Card speeds is irrelevant since the game is loaded onto the Everdrive's ram which will act just like a real cart.   Its not streaming from the SD Card throughout the game.","author":"@charvelgtrs","author_id":"UCnqhHr4INGxLywngH51wWxg","like_count":263,"published_time":"6 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"Ugy-PYpTHhQVvkpjYqB4AaABAg","text":"Also that makefile you showed being changed was not from Nintendo, that conditional was put in there by the decomp project so builds of a given version (EU or other) would result in a ROM identical to the ROM found on the corresponding retail  cartridge.","author":"@burk3","author_id":"UCCypwWHA-FUsMjsygGDD5kQ","like_count":47,"published_time":"6 years ago"},{"id":"UgzrMEMmE4m7uEYuBqB4AaABAg","text":"If the PAL Version has these Compiler Optimizations, maybe the Japanese Shindou Edition has them too since that came after the PAL release. Did someone check on that?","author":"@Soonjai","author_id":"UCQRXVg-uVe1GbANfm2JBo_A","like_count":495,"published_time":"6 years ago"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"UgwS5IRENAall5jJNKh4AaABAg","text":"What about the Virtual Console version of this game, since that doesn't have slowdown? How does it compare to O2 on the N64?","author":"@mr.whimsic6902","author_id":"UCfM8afw9-puSZj2mHks-tGg","like_count":743,"published_time":"6 years ago"},{"id":"UgzwdrGKxnxJYMjJuJZ4AaABAg","text":"Your comment about SD Card speeds is irrelevant since the game is loaded onto the Everdrive's ram which will act just like a real cart.   Its not streaming from the SD Card throughout the game.","author":"@charvelgtrs","author_id":"UCnqhHr4INGxLywngH51wWxg","like_count":263,"published_time":"6 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"Ugy-PYpTHhQVvkpjYqB4AaABAg","text":"Also that makefile you showed being changed was not from Nintendo, that conditional was put in there by the decomp project so builds of a given version (EU or other) would result in a ROM identical to the ROM found on the corresponding retail  cartridge.","author":"@burk3","author_id":"UCCypwWHA-FUsMjsygGDD5kQ","like_count":47,"published_time":"6 years ago"},{"id":"UgzrMEMmE4m7uEYuBqB4AaABAg","text":"If the PAL Version has these Compiler Optimizations, maybe the Japanese Shindou Edition has them too since that came after the PAL release. Did someone check on that?","author":"@Soonjai","author_id":"UCQRXVg-uVe1GbANfm2JBo_A","like_count":495,"published_time":"6 years ago"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"Ugy629kJySNH7lUUzfx4AaABAg","text":"nitpick @ 1:56 That's C++ not C","author":"@kimothefungenuis","author_id":"UCy5DQFfDDtFZl9NAgygJeXg","like_count":5,"published_time":"1 year ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugy5o4M5jomu5TGbWst4AaABAg","text":"Me: I don't remember slow down in the Pal version I played...\n\nAlso Me: Oh yeah.... 25fps","author":"@Sergeantmajormario","author_id":"UCNLNkBaWh1Nc1EdVJ6smZtQ","like_count":65,"published_time":"6 years ago (edited)"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"Ugy-PYpTHhQVvkpjYqB4AaABAg","text":"Also that makefile you showed being changed was not from Nintendo, that conditional was put in there by the decomp project so builds of a given version (EU or other) would result in a ROM identical to the ROM found on the corresponding retail  cartridge.","author":"@burk3","author_id":"UCCypwWHA-FUsMjsygGDD5kQ","like_count":47,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgzMUVIer38loNsPtQp4AaABAg","text":"My guess: they didn't have time to test if the optimized version had any errors, so they decided to play it safe and release the unoptimized version which was tested because it would be a disaster if there were game-ruining errors in the optimized version.","author":"@veneratlazulum2033","author_id":"UCYNWEIm_8-FGy-7QdJ_izJw","like_count":3,"published_time":"3 years ago"},{"id":"UgwkzkUQrvqtN9hYi9F4AaABAg","text":"I'll be honest, I never really thought about it too much. When I played SM64, I was more amazed by how nice it looked to notice if it slowed down to much in certain areas, like most of the water levels. Even when I did notice, I thought that was a design choice for the level itself, since the speed of game play seems to match the speed of the music. Of course, this is coming from a non-speed runner's point of view.","author":"@wfow1448","author_id":"UC2WLSIdBtJXH5YrLqDcSGpw","like_count":64,"published_time":"6 years ago"},{"id":"UgzgISyegSfPop1-kjZ4AaABAg","text":"I read this as \"Super Mario 64 Super Show\" at first.\n\nIf only...","author":"@Zerio105","author_id":"UCcEj-xZpKcshfpglYb60Caw","like_count":2,"published_time":"3 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"UgwS5IRENAall5jJNKh4AaABAg","text":"What about the Virtual Console version of this game, since that doesn't have slowdown? How does it compare to O2 on the N64?","author":"@mr.whimsic6902","author_id":"UCfM8afw9-puSZj2mHks-tGg","like_count":743,"published_time":"6 years ago"},{"id":"Ugy5o4M5jomu5TGbWst4AaABAg","text":"Me: I don't remember slow down in the Pal version I played...\n\nAlso Me: Oh yeah.... 25fps","author":"@Sergeantmajormario","author_id":"UCNLNkBaWh1Nc1EdVJ6smZtQ","like_count":65,"published_time":"6 years ago (edited)"},{"id":"UgzrMEMmE4m7uEYuBqB4AaABAg","text":"If the PAL Version has these Compiler Optimizations, maybe the Japanese Shindou Edition has them too since that came after the PAL release. Did someone check on that?","author":"@Soonjai","author_id":"UCQRXVg-uVe1GbANfm2JBo_A","like_count":495,"published_time":"6 years ago"},{"id":"UgwWzO4wtKDPrgdcKdx4AaABAg","text":"Talks about C, shows C++ code and docs.\nnice.","author":"@kiroma0","author_id":"UCS4dLg1ZzpnjrqZGxnVpkoA","like_count":160,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"UgwS5IRENAall5jJNKh4AaABAg","text":"What about the Virtual Console version of this game, since that doesn't have slowdown? How does it compare to O2 on the N64?","author":"@mr.whimsic6902","author_id":"UCfM8afw9-puSZj2mHks-tGg","like_count":743,"published_time":"6 years ago"},{"id":"UgzwdrGKxnxJYMjJuJZ4AaABAg","text":"Your comment about SD Card speeds is irrelevant since the game is loaded onto the Everdrive's ram which will act just like a real cart.   Its not streaming from the SD Card throughout the game.","author":"@charvelgtrs","author_id":"UCnqhHr4INGxLywngH51wWxg","like_count":263,"published_time":"6 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"Ugy-PYpTHhQVvkpjYqB4AaABAg","text":"Also that makefile you showed being changed was not from Nintendo, that conditional was put in there by the decomp project so builds of a given version (EU or other) would result in a ROM identical to the ROM found on the corresponding retail  cartridge.","author":"@burk3","author_id":"UCCypwWHA-FUsMjsygGDD5kQ","like_count":47,"published_time":"6 years ago"},{"id":"UgzrMEMmE4m7uEYuBqB4AaABAg","text":"If the PAL Version has these Compiler Optimizations, maybe the Japanese Shindou Edition has them too since that came after the PAL release. Did someone check on that?","author":"@Soonjai","author_id":"UCQRXVg-uVe1GbANfm2JBo_A","like_count":495,"published_time":"6 years ago"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"Ugy629kJySNH7lUUzfx4AaABAg","text":"nitpick @ 1:56 That's C++ not C","author":"@kimothefungenuis","author_id":"UCy5DQFfDDtFZl9NAgygJeXg","like_count":5,"published_time":"1 year ago"},{"id":"UgwS5IRENAall5jJNKh4AaABAg","text":"What about the Virtual Console version of this game, since that doesn't have slowdown? How does it compare to O2 on the N64?","author":"@mr.whimsic6902","author_id":"UCfM8afw9-puSZj2mHks-tGg","like_count":743,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"Ugy5o4M5jomu5TGbWst4AaABAg","text":"Me: I don't remember slow down in the Pal version I played...\n\nAlso Me: Oh yeah.... 25fps","author":"@Sergeantmajormario","author_id":"UCNLNkBaWh1Nc1EdVJ6smZtQ","like_count":65,"published_time":"6 years ago (edited)"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgwWzO4wtKDPrgdcKdx4AaABAg","text":"Talks about C, shows C++ code and docs.\nnice.","author":"@kiroma0","author_id":"UCS4dLg1ZzpnjrqZGxnVpkoA","like_count":160,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"UgwS5IRENAall5jJNKh4AaABAg","text":"What about the Virtual Console version of this game, since that doesn't have slowdown? How does it compare to O2 on the N64?","author":"@mr.whimsic6902","author_id":"UCfM8afw9-puSZj2mHks-tGg","like_count":743,"published_time":"6 years ago"},{"id":"UgzwdrGKxnxJYMjJuJZ4AaABAg","text":"Your comment about SD Card speeds is irrelevant since the game is loaded onto the Everdrive's ram which will act just like a real cart.   Its not streaming from the SD Card throughout the game.","author":"@charvelgtrs","author_id":"UCnqhHr4INGxLywngH51wWxg","like_count":263,"published_time":"6 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"Ugy-PYpTHhQVvkpjYqB4AaABAg","text":"Also that makefile you showed being changed was not from Nintendo, that conditional was put in there by the decomp project so builds of a given version (EU or other) would result in a ROM identical to the ROM found on the corresponding retail  cartridge.","author":"@burk3","author_id":"UCCypwWHA-FUsMjsygGDD5kQ","like_count":47,"published_time":"6 years ago"},{"id":"UgzrMEMmE4m7uEYuBqB4AaABAg","text":"If the PAL Version has these Compiler Optimizations, maybe the Japanese Shindou Edition has them too since that came after the PAL release. Did someone check on that?","author":"@Soonjai","author_id":"UCQRXVg-uVe1GbANfm2JBo_A","like_count":495,"published_time":"6 years ago"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"UgwS5IRENAall5jJNKh4AaABAg","text":"What about the Virtual Console version of this game, since that doesn't have slowdown? How does it compare to O2 on the N64?","author":"@mr.whimsic6902","author_id":"UCfM8afw9-puSZj2mHks-tGg","like_count":743,"published_time":"6 years ago"},{"id":"UgzwdrGKxnxJYMjJuJZ4AaABAg","text":"Your comment about SD Card speeds is irrelevant since the game is loaded onto the Everdrive's ram which will act just like a real cart.   Its not streaming from the SD Card throughout the game.","author":"@charvelgtrs","author_id":"UCnqhHr4INGxLywngH51wWxg","like_count":263,"published_time":"6 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"Ugy-PYpTHhQVvkpjYqB4AaABAg","text":"Also that makefile you showed being changed was not from Nintendo, that conditional was put in there by the decomp project so builds of a given version (EU or other) would result in a ROM identical to the ROM found on the corresponding retail  cartridge.","author":"@burk3","author_id":"UCCypwWHA-FUsMjsygGDD5kQ","like_count":47,"published_time":"6 years ago"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgxxLYMyW_zc4_fimP94AaABAg","text":"I swore the title said “Nintendo’s big mistake that made Super Mario Super Show”. I just woke up.","author":"@SomePersonGuy","author_id":"UCVKZ5L4_R7AkrsITfIHcgAw","like_count":146,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"Ugy5o4M5jomu5TGbWst4AaABAg","text":"Me: I don't remember slow down in the Pal version I played...\n\nAlso Me: Oh yeah.... 25fps","author":"@Sergeantmajormario","author_id":"UCNLNkBaWh1Nc1EdVJ6smZtQ","like_count":65,"published_time":"6 years ago (edited)"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"Ugzr3SFp36XZuDIFXCB4AaABAg","text":"1:14\nShoutouts to Simpleflips","author":"@TheIronMenus","author_id":"UCx4zeCOzmlwHb-KtGoI2ptA","like_count":47,"published_time":"6 years ago"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgwkzkUQrvqtN9hYi9F4AaABAg","text":"I'll be honest, I never really thought about it too much. When I played SM64, I was more amazed by how nice it looked to notice if it slowed down to much in certain areas, like most of the water levels. Even when I did notice, I thought that was a design choice for the level itself, since the speed of game play seems to match the speed of the music. Of course, this is coming from a non-speed runner's point of view.","author":"@wfow1448","author_id":"UC2WLSIdBtJXH5YrLqDcSGpw","like_count":64,"published_time":"6 years ago"},{"id":"UgxxLYMyW_zc4_fimP94AaABAg","text":"I swore the title said “Nintendo’s big mistake that made Super Mario Super Show”. I just woke up.","author":"@SomePersonGuy","author_id":"UCVKZ5L4_R7AkrsITfIHcgAw","like_count":146,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"UgwS5IRENAall5jJNKh4AaABAg","text":"What about the Virtual Console version of this game, since that doesn't have slowdown? How does it compare to O2 on the N64?","author":"@mr.whimsic6902","author_id":"UCfM8afw9-puSZj2mHks-tGg","like_count":743,"published_time":"6 years ago"},{"id":"UgzwdrGKxnxJYMjJuJZ4AaABAg","text":"Your comment about SD Card speeds is irrelevant since the game is loaded onto the Everdrive's ram which will act just like a real cart.   Its not streaming from the SD Card throughout the game.","author":"@charvelgtrs","author_id":"UCnqhHr4INGxLywngH51wWxg","like_count":263,"published_time":"6 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"Ugy-PYpTHhQVvkpjYqB4AaABAg","text":"Also that makefile you showed being changed was not from Nintendo, that conditional was put in there by the decomp project so builds of a given version (EU or other) would result in a ROM identical to the ROM found on the corresponding retail  cartridge.","author":"@burk3","author_id":"UCCypwWHA-FUsMjsygGDD5kQ","like_count":47,"published_time":"6 years ago"},{"id":"UgzrMEMmE4m7uEYuBqB4AaABAg","text":"If the PAL Version has these Compiler Optimizations, maybe the Japanese Shindou Edition has them too since that came after the PAL release. Did someone check on that?","author":"@Soonjai","author_id":"UCQRXVg-uVe1GbANfm2JBo_A","like_count":495,"published_time":"6 years ago"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"},{"id":"UgxLiDHVPSDsNxW3and4AaABAg","text":"The main theory that was discussed during the project afaik was that the developers were tight on time and just released an debug build. It makes sense since there are multiple inaccessible debug features and unused objects present in the ROM.","author":"@madghostek3026","author_id":"UCqGw9_iYSGFYpXiy_lDhCpw","like_count":6,"published_time":"6 years ago (edited)"},{"id":"Ugwmvy3U3EuBQWBTeY54AaABAg","text":"> talks about C\n> shows C++ code and docs\nangry programmer noises","author":"@ruroruro","author_id":"UCItpaaI3h5V2nuShb2Fu0hg","like_count":4,"published_time":"6 years ago"},{"id":"UgyhTG4Ol46Rr9GOZNB4AaABAg","text":"This is not entirely true. The CPU is almost never fully utilized. The mistake with the DDD lag is making the collision triangles dynamic rather than permanent. O2 compilation only mitigates this issue. It could be entirely solved by making the collision from the sub permanent (and I did that in SM64 Multiplayer, for example)\nMost of the lag in SM64 comes from GPU which this doesn't change so O2 compilation doesn't change anything for most of the game.","author":"@KazeN64","author_id":"UCuvSqzfO_LV_QzHdmEj84SQ","like_count":6,"published_time":"6 years ago"},{"id":"UgwLIBTOagY6KnUGWGt4AaABAg","text":"This is rad and all, but you can't just casually talk about the fact that SM64 is basically OPEN SOURCE now. We're going from modding to forking bois","author":"@dogtime7061","author_id":"UCYNlrMGfMGqBzm6-G6F9vPA","like_count":3,"published_time":"6 years ago"},{"id":"Ugyny0tFLRSoJ-jhmbt4AaABAg","text":"love how over 20 years later we're still finding stuff about this game","author":"@mryoshi1221","author_id":"UCOGivN5ER4QWqDl0i-pFBRw","like_count":2,"published_time":"6 years ago"},{"id":"Ugy2QDehRL5KOnC0fn14AaABAg","text":"\"Almost perfect source code!\"\n2020: Ya want source code kids?","author":"@arthuraznive8256","author_id":"UCdtgftMdrkUJNYJibIXRY6Q","like_count":845,"published_time":"6 years ago"},{"id":"UgxIgZswKe2JS2zHUbZ4AaABAg","text":"If anyone is watching this now, Super Mario 64 source code got leaked. So now we can have actual confirmation about the compilation discussion. Hopefully MattKC covers this.","author":"@mohapimatle7734","author_id":"UCK4fVni2jnijHTvSVx614Eg","like_count":355,"published_time":"6 years ago"},{"id":"UgxJhZvuQ-C3rju9UUt4AaABAg","text":"A theory I've heard is that it was developed so early in the N64s lifetime that the toolchain wasn't ready and any optimization at all could have introduced bugs. As a result, to insure that it worked at all times, even if the game had to slow down to do it, they disabled the optimization.","author":"@donovangreene2348","author_id":"UCV9wtIe-b8DXtSDNS1GR18w","like_count":202,"published_time":"6 years ago"},{"id":"UgzQ9xD-yBCQKbT9_SB4AaABAg","text":"It's interesting to see what one minor tweak could enhance in a game.","author":"@FoxerTails","author_id":"UConPszXlBLGJQZqIcc5Fopw","like_count":880,"published_time":"6 years ago"},{"id":"UgyWl6-K37EW389XYg14AaABAg","text":"Someone should combine this modification with the one that improves Mario’s model geometry deformation and release it as kind of an unofficial patch","author":"@powergannon","author_id":"UC5fyO-UufMWamQ7m_12-klg","like_count":541,"published_time":"6 years ago (edited)"},{"id":"Ugwj0GHCyw_WKfXIOn94AaABAg","text":"The EverDrive (and every other flashcart for other systems) loads the game's ROM to on-board memory.  It's not streamed off the SD card.","author":"@Wyatt_James","author_id":"UCQn23yzLxqplz6V1wL7Z6wQ","like_count":291,"published_time":"6 years ago"},{"id":"UgyZoyD7D4Tlder2DqB4AaABAg","text":"\"A very uneducated without any substantial evidence\" theory is also Game Theory.","author":"@DaisyPhoxtrot","author_id":"UCUbnjEwCCjognvZEdhz0zvA","like_count":29,"published_time":"6 years ago"},{"id":"UgzM3ODVogAKbxT7YaZ4AaABAg","text":"I imagine the bigger reason flash carts would be banned in speedruns, besides faster load speed, is because you literally could just tweak the source code for the game and recompile to add in some subtle cheats in your favor. It would be like playing a speedrun with an action replay attached; a bit suspicious.","author":"@Pilotgeek","author_id":"UC08sUqoDgLKhR4sbNHv3wKA","like_count":377,"published_time":"6 years ago"},{"id":"UgydwSpQIwsLr0e9CEx4AaABAg","text":"My jaw dropped when I figured out that somebody decompiled the assembly code back into c. I have trouble just reading the assembly code.","author":"@lakitu6422","author_id":"UCauERFkmqe2dbf1OY2hbn5Q","like_count":352,"published_time":"6 years ago"},{"id":"UgwS5IRENAall5jJNKh4AaABAg","text":"What about the Virtual Console version of this game, since that doesn't have slowdown? How does it compare to O2 on the N64?","author":"@mr.whimsic6902","author_id":"UCfM8afw9-puSZj2mHks-tGg","like_count":743,"published_time":"6 years ago"},{"id":"UgzwdrGKxnxJYMjJuJZ4AaABAg","text":"Your comment about SD Card speeds is irrelevant since the game is loaded onto the Everdrive's ram which will act just like a real cart.   Its not streaming from the SD Card throughout the game.","author":"@charvelgtrs","author_id":"UCnqhHr4INGxLywngH51wWxg","like_count":263,"published_time":"6 years ago"},{"id":"UgxhHpvUCt5iv8GGFyZ4AaABAg","text":"9:23\n\"All I can say is google\"\nshows DuckDuckGo\n\n\nHehehe","author":"@Sheevlord","author_id":"UCwR-tEe3WJg35jpeS66nteA","like_count":628,"published_time":"6 years ago"},{"id":"Ugy-PYpTHhQVvkpjYqB4AaABAg","text":"Also that makefile you showed being changed was not from Nintendo, that conditional was put in there by the decomp project so builds of a given version (EU or other) would result in a ROM identical to the ROM found on the corresponding retail  cartridge.","author":"@burk3","author_id":"UCCypwWHA-FUsMjsygGDD5kQ","like_count":47,"published_time":"6 years ago"},{"id":"UgzrMEMmE4m7uEYuBqB4AaABAg","text":"If the PAL Version has these Compiler Optimizations, maybe the Japanese Shindou Edition has them too since that came after the PAL release. Did someone check on that?","author":"@Soonjai","author_id":"UCQRXVg-uVe1GbANfm2JBo_A","like_count":495,"published_time":"6 years ago"},{"id":"UgwoUhnB2dazM3a2tn14AaABAg","text":"To answer the question of \"why didn't Nintendo use optimizations.\"\nThe guys responsible for reverse engineering SM64 fixed a number of bugs in the code. When you write incorrect (the technical term is Undefined Behavior, or UB for short) code, it might appear to work correctly by sheer accident; when compiled in debug mode, the compiler adds a bunch of extra \"safety\" code (such as zero-initializing every variable, flushing every variable update back to memory), precisely to help the programmer track down bugs. When optimizing UB code, disastrous results can happen; and the more you optimize UB code, the worse the result. Nintendo likely just rushed the game out to meet the Japanese deadline, and couldn't afford to fix all the problems, that no doubt the compiler was screaming at them with endless warnings about. The debug mode was enough to shield the final code from all the coding errors, so that was the chosen quick fix.","author":"@dkosmari","author_id":"UC6FRnbFk4kJsRWwyGpzLBhw","like_count":234,"published_time":"6 years ago"}]}