FIXING the ENTIRE SM64 Source Code (INSANE N64 performance)
Channel:Kaze Emanuar · Length:18:20 · Published:2022-04-09 · Views:3224304
Summary
Kaze Emanuar explains how he rewrote and optimized the Super Mario 64 source code so it runs far faster on real N64 hardware. He covers performance bottlenecks and fixes in detail for his ROM hacks.
Why HN recommends it
HN loves the deep, hands-on look at N64 hardware quirks such as bus contention and the surprisingly large wins from low-hanging optimizations.
amazing video about refactoring Mario 64 to reach 30 FPS and render 6x faster on N64 — HN, 2024
Software performance & optimization · Game history & retro gaming · Speedrunning, glitches & game hacking
Subtitles (excerpt)
I've read optimized and buck fixed the entire Mario 64 source code the game you see in the background runs easy 30 FPS on a real Nintendo 64 Hardware this is possible because my new code renders the game up to six times faster on a real Nintendo 64 than the vanilla Mario 64 code does I've looked at every single variable understood every function and then optimized everything listed in this 13,000 line long map file for a grand total of over 100,000 lines of code read and potentially edited this took weeks to finish and a few hundred hours of concentrated work went into this why I wanted my mod to run at a better frame rate and I wanted the game to run less janky in the past year I had already Rewritten parts of the source to improve performance back then I gained more than 100% performance in a graend the department I've also Rewritten the janky part of Mario 64's wall Collision to work more consistently and gained around 100% performance there as well I also readed all of Mario's Triangle Collision code I will make another separate video about just Mario's physics because it's too big of a topic to cover it in this video so what exactly was left to be done after doing all these things the game's logic already
On Hacker News
Not always, though it might depend on what platform you mean with retro. Kaze Emanuar on YT does a lot of development for the N64 and it feels like half the time he talks about how the memory bus affects all kinds of optimizations. In Mario 64 he replaced the original lookup table for the sine function because an approximation was faster and accurate enough (or rather two approximations for two d… — alpaca128, 2024-02
There's an amazing video about refactoring Mario 64 to reach 30 FPS and render 6x faster on N64: [VIDEO] The changes were much more extensive than just removing the debug flags. They were also able to get local coop and a 4 player split screen working which were features originally intended for the game but cut for performance reasons. — CSMastermind, 2024-01
If you found the video on Super Mario 64 being published with debug symbols interesting, check this out: After finding out about the debug symbols, a developer took a deeper dive through the codebase and optimized the ever living hell out of to get 60fps+. FIXING the ENTIRE SM64 Source Code (INSANE N64 performance) [VIDEO] — Apofis, 2024-04
I've recently been enjoying watching this young modder on YouTube optimize all of the original SM64 source code, doubling frame rate, and modding his own Return To Yoshi's Island [VIDEO] — Wolfbeta, 2024-01
If anyone is interested in new projects for N64 hardware, Kaze Emanuar has an amazing series about optimizing Super Mario 64 to run incredibly complex romhacks on original hardware. Interestingly, SM64 is usually throttled by memory speed. This means that using 'inline' is detrimental to performance, since making the program larger can cause another read from memory. Here's an overview video, he … — rdlw, 2023-10
Related videos
- The Most Underrated Algorithm · Veritasium · 26:33
- Noether's Theorem and The Symmetries of Reality · PBS Space Time · 13:01
- Learn music theory in half an hour. · ANDREW HUANG · 31:36
- Synthesizing Chicken Noodle Soup From Pure Chemicals · The Thought Emporium · 22:48
- Does "land area" assume a country is perfectly flat? · Stand-up Maths · 17:50
- Computer program that learns to play classic NES games · suckerpinch · 16:17
- The world's worst video card? · Ben Eater · 32:47
- World's worst video card? The exciting conclusion · Ben Eater · 24:23
- On The Turing Completeness of PowerPoint (SIGBOVIK) · Tom Wildenhain · 5:33
- Light Years Ahead | The 1969 Apollo Guidance Computer · TNMoC · 1:21:22
- Drone Delivery Was Supposed to be the Future. What Went Wrong? · Wendover Productions · 18:39
- 8 Bit & '8 Bitish' Graphics-Outside the Box · GDC Festival of Gaming · 1:25:34
- How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework · Видео с мероприятий {speach! · 49:55
- SM64 - Watch for Rolling Rocks - 0.5x A Presses (Commentated) [OUTDATED] · pannenkoek2012 · 24:38
- CppCon 2015: Andrei Alexandrescu “std::allocator...” · CppCon · 1:12:27
- Reverse emulating the NES to give it SUPER POWERS! · suckerpinch · 22:21