Good videos, with context.
FIXING the ENTIRE SM64 Source Code (INSANE N64 performance)

FIXING the ENTIRE SM64 Source Code (INSANE N64 performance)

Kaze Emanuar
7 HN recommenders · discussed 2022–2025
Open YouTube ↗

About this video

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 it appears in the archive

HN loves the deep, hands-on look at N64 hardware quirks such as bus contention and the surprisingly large wins from low-hanging optimizations.

AI-generated summary and labels from the source dataset; verify important details against the video. Source & credits.

From the Hacker News discussion

CSMastermind · 2024-01 · strong rec

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.

Read original comment ↗
alpaca128 · 2024-02 · strong rec

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 different purposes). I love that channel, he reworked the entire Mario 64 code [0] to make it run at stable 60FPS...because he wanted his mods to run faster. [0] [VIDEO]

Read original comment ↗
MarioMan · 2023-01 · rec

On a related note, Kaze has done a deep dive into optimizing the Super Mario 64 source code for his ROM hacks. Here’s one of his more popular videos on the subject: [VIDEO]

Read original comment ↗
psychphysic · 2023-03 · rec

If you like this stuff Kaze Emanuar does loads of neat work with the super mario 64 decompiled code. [VIDEO] Loads of interesting quirks of the N64 to do with slow bus.

Read original comment ↗
psychphysic · 2023-08 · rec

Excellent..more of this please. Super Mario 64 has also had stupendous rewrites from decompiled code I believe. [VIDEO] His videos on the Sine function in sm64 is a fun watch as the limitations make nearly all optimizations justifiable.

Read original comment ↗
rdlw · 2023-10 · rec

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 has many more specific videos about specific topics: [VIDEO]

Read original comment ↗
Wolfbeta · 2024-01 · rec

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]

Read original comment ↗
Apofis · 2024-04 · rec

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]

Read original comment ↗