Skip to content

v0.3.0 - performance and movie polish

Latest

Choose a tag to compare

@LunaSkyx LunaSkyx released this 24 Nov 17:28

What's new

Performance (real combat)

  • Exact C versions of more hot game functions (0x408078 prefilter, 0x405cf0, 0x488210), plus cheaper light and projection paths: object update in the first droid fight went from about 20 ms to 16 ms per frame, pixel-identical output.
  • GPU draw queue (r3d_q) so the 3DS GPU path is fed without stalling the guest thread.
  • Optional, off by default: adaptive draw distance (lod.txt) and a separate draw thread (drawthread.txt). They can drop distant floor/wall polygons when the console is slow, so they are opt-in.
  • Honest status: busy fights are still around 20-25 fps on a New 3DS, not a steady 30 yet. The profile is flat, so the remaining gains come from more natives and a leaner call path (see docs/PLAN.md, 46i-46m).

Intro and logo movies

  • No more crackle at the start of a movie (fade-in).
  • Cleaner music (linear interpolation instead of nearest-sample resampling).
  • The STAR WARS title and the music now come in together, without stalling the Bink decoder (a short display delay line instead of holding the decoder).
  • No more short flash of intro frames after skipping the intro with a button.
  • Fixed a small audio hitch in the monkey (bigape) video.

Menu

  • The mouse pointer sprite in the main menu is hidden (the 3DS has no mouse).

Tools

  • Battle benchmark scenarios and scripts (tools/battlebench.ps1, tools/fbdump.ps1, tools/detab.ps1) for repeatable Azahar measurements.

As before: the release contains no game files. Run setup.bat and point it at your own CD.

Installation:

TLDR: Download https://github.com/LunaSkyx/tpm3ds/archive/refs/heads/main.zip, extract, run setup.bat (CD or ISO + SD card), install the CIA with FBI.

You need:

  • New 3DS / New 2DS XL with custom firmware (Homebrew Launcher + FBI)
  • The retail PC game: the CD in the drive, or the .iso
  • A Windows 10/11 PC with internet, ~2 GB free, and your 3DS SD card (~1 GB free)

Steps:

  1. Download the repo: https://github.com/LunaSkyx/tpm3ds/archive/refs/heads/main.zip

  2. Extract the ZIP.

  3. Put your SD card in the PC and double-click setup.bat

  • With the CD in the drive just press Enter. Otherwise drag your .iso into the window.
  • Type your SD card drive letter (e.g. E) and press Enter.
    (No SD card in the PC? Just press Enter: everything ends up in the "sdcard" folder.)
  • If the devkitPro installer window pops up once: click through with the defaults.
    Then wait until it says DONE.
  1. If you used the "sdcard" folder: copy the "3ds" and "cia" folders inside it to the root of your SD card.

  2. On the 3DS: install cia/tpm3ds.cia with FBI. (Or start 3ds/tpm/tpm3ds.3dsx from the Homebrew Launcher.)
    The first start unpacks some data (a few minutes), after that you get the intro and menu.

Done.

Linux users: see docs/INSTALL.md ("Manual way").