Skip to content

N64to3DS v0.2.1

Pre-release
Pre-release

Choose a tag to compare

@bukovinianforest bukovinianforest released this 15 Nov 20:02
4e0b576

Self-contained n64to3ds builds for Linux and Windows (x86_64). Download one archive, extract it, and run n64to3ds build. No devkitPro, CMake, make or Python install is needed.

Included: n64to3ds, CPython 3.12.11, devkitARM r66 (GCC 15.1.0), libctru, picaGL, 3dstools 1.3.1, makerom 0.18.4 and the patched DaedalusX64 sources (pinned commit 580c0c4 + patches/daedalus-n64to3ds.patch). No ROMs, keys or firmware.

What's new in 0.2.1
Windows: the 0.2.0 Windows archive stopped at once with ModuleNotFoundError: No module named 'fcntl' (#1). The local title-id registry is now locked with msvcrt on Windows (fcntl stays on Linux).
HOME Menu name, icon and banner: the name comes from the Daedalus ROM database ("GoldenEye 007"), else from the ROM header; the icon and the top-screen banner are drawn with it. --icon and --banner-image take your own PNG images.
Speed, general fixes found with the console profiler on GoldenEye 007: TLBWR wrote every random TLB refill into the same entry (GoldenEye ran at about 1 % of N64 speed behind a black screen); TLB-mapped accesses use a page translation cache; ROMs of 8 MB or more are read into memory once instead of streamed from RomFS in 2 KB chunks; the ARM dynarec compiles div/divu and data-cache cache operations, leaves fragments faster (branch-likely, indirect and direct exits) and keeps newly compiled fragments and hot traces in hash maps. On an Old 3DS GoldenEye now reaches the Dam mission and runs it at about 12-19 presents/s.
Audio: ARM11 versions of the envelope mixers and the ADPCM predictor. Audio thread share of core 1: GoldenEye 34 % → 23 %, Mario Kart 64 54 % → 43 %, Harvest Moon 64 41 % → 38 %.
Saves are written to the SD card by a separate thread instead of stopping the game for up to seconds.
HOME and the power button are also checked once a second from the VI interrupt, so a game that renders rarely can still be closed.
Requirements
Linux: glibc 2.34+ (Ubuntu 22.04+, Debian 12+, Fedora 35+). Optional g++ for the AOT semantic self-test.
Windows: Windows 10/11 64-bit. Extract the zip to C:\ (or another short ASCII-only path). The AOT semantic self-test is skipped.
About 0.5 GB (Windows) / 0.7 GB (Linux) unpacked, plus about 200 MB temporary space per build. Every build compiles Daedalus for the ROM, which takes a few minutes.
Harvest Moon 64 example
tar -xJf n64to3ds-0.2.1-linux-x86_64.tar.xz
cd n64to3ds-0.2.1-linux-x86_64
./n64to3ds build "/path/to/Harvest Moon 64 (USA).z64" --output HM64.cia
cd C:\n64to3ds-0.2.1-windows-x86_64
.\n64to3ds.cmd build "D:\roms\Harvest Moon 64 (USA).z64" --output HM64.cia
Install HM64.cia with FBI. The Harvest Moon 64 (USA) build gets the bottom-screen inventory/status extension automatically; --extensions off disables it. See README.txt in the archive for all options.

What was checked for this release
Recorded build = CMake build. With Harvest Moon 64 (USA), all four variants (AOT on/off × bottom-screen extension on/off) produced a byte-identical ELF, 3DSX and CIA content through CMake and through the bundle's recorded build.
Linux archive: extracted into a clean directory; doctor PASS; Harvest Moon 64 (USA) built with the default options, verify PASS, and its 3DSX and CIA content are byte-identical to the CMake build from the source checkout.
Windows archive: assembled from the same recipe with the official Windows builds of devkitARM r66, 3dstools 1.3.1, makerom 0.18.4 and CPython 3.12.11; its tools/ are identical to the Linux archive's. Every CLI module imports and --help runs under a Python without fcntl, termios, pwd, grp and resource, as on Windows; the 0.2.0 code fails there with the error from #1. It has still not been run on Windows, so please report what happens.
Old 3DS: the runtime changes listed above were measured on an Old 3DS while they were developed; the CIAs built for this release check were not run on a console.
A built CIA is not proof that a game is playable or runs at full speed on a real Old 3DS.

Licenses
n64to3ds and DaedalusX64 are GPL; their sources are inside the archive and in this repository. The bundled devkitPro, makerom, CPython, rabbitizer and ipl3checksum binaries are unmodified upstream releases; licenses are in the archive. devkitPro does not support this bundle, so please report problems here.