Super Mario 64 had poor building optimizations by default, you can try to fix them with the n64decomp/sm64 github:
sudo apt install -y binutils-mips-linux-gnu build-essential git libcapstone-dev pkgconf python3
git clone https://github.com/n64decomp/sm64.git
cd sm64
sm64.us.z64
in the sm64 root folder.make -o2 -j$(nproc)
© 2019 to 2025 Branden Gilfoil & © up to 2025 for respective owners.