Skip to content

BOTWRecompAndroid 0.4.11 + 4:3 Shadow Fix for RG477M (Unofficial)

Latest

Choose a tag to compare

@DrMangoCoder DrMangoCoder released this 24 Nov 05:39
bb10b3f

Unofficial build of BOTWRecompAndroid 0.4.11, tailored to the Anbernic RG477M and potentially other handhelds with a 4:3 screen and a Mali GPU (MediaTek chips).

It contains one code fix: with Video → Aspect ratio: Unlocked on a 4:3 (or other narrow) screen, the black shadow that appeared away from Link, sliding closer or farther as the camera tilts, is gone. Everything else is the official 0.4.11, including cutscene videos and both Native and Recompiled Mode. The settings below are what made it run smooth and cool on the RG477M. They aren't built in, so set them yourself after installing.

Bug report and details: mamcjr#549. If the developer adds the fix to an official release, switch back to the official app.

What you need

  • Your own extracted game files: a folder containing the game's exefs and romfs folders. The app does not open NSP/XCI files or use prod.keys. No game files are included, and how to obtain them isn't covered here.
  • A supported game version: 1.0.0, 1.6.0, 1.8.2 or 1.9.0. I play 1.9.0 (base game with the update applied). Native Mode has been tested by the developer on 1.0.0 and 1.9.0.
  • DLC (optional): if you own the Expansion Pass, its extracted DLC romfs, installed through Settings → DLC → Install DLC.
  • Storage: using the files in place needs no extra space but asks for Android's all-files access, and the folder must stay where it is. Copying them into the app needs about 16 GB more.
  • An Android 11+ ARM64 device with Vulkan.

More details are in the official README.

Install

  1. In the official app, export your saves: Settings → Saves.
  2. Uninstall the official app. This build is signed with a different key, so Android won't install it over the official one.
  3. Install the APK below. In Game Files, pick Game code (I use Native), then under Game files choose Use them in place (what I use) or Copy them, and select your extracted folder. Then import your saves.

No game files are included: you need your own legally dumped copy of the game, as with the official app. This build doesn't update itself.

Settings used on the RG477M

Tested with game version 1.9.0, GammaOS, stock Mali-G615 driver. Change them one at a time if your device differs.

In the app: Video

  • Aspect ratio: Unlocked (fills the 4:3 screen; restart the game after changing it)
  • Internal resolution: Match display
  • Upscaler: Snapdragon GSR 1
  • Anti-aliasing: Off
  • Frame rate: 30 fps
  • RAM saving: Off (the RG477M has plenty of RAM)
  • 32-bit shader math: On (in the Rendering section; meant for Mali stock drivers, which lack 64-bit shader integers. It helps if lighting, grass or text look missing or wrong. Restart the app after changing it)

In the app: Game Files

  • Game code: Native. This is the mode I play in, not Recompiled, and all the testing and results on this page were done in Native Mode. Recompiled Mode is included in this build too, but I haven't tested it with these settings and it may offer worse performance.
  • Game files used in place (not copied)

In the app: Settings → Files → Driver compatibility (only shown on the start screen, before the game starts)

  • Draw-target reads in place: On. The biggest performance win. On the Great Plateau it took the game from about 27.6 fps (at a full 30 only ~25% of the time) to a near-locked 30. The developer leaves it off for Mali by default because the Vulkan rules don't guarantee it, so check the ground and paths look right on your device. None of my testing showed problems.
  • Driver variables: LARECOMP_NO_ADPF=1 (all capital letters; the O's are letters and the last character is the number one). This turns off the app's performance hints, which ask Android for about 20% more speed than 30 fps needs. The result was less heat with the same 30 fps. Restart the app after entering it.
  • Game memory through a shared file (optional/experimental): On. Meant for Mali GPUs, to share the game's memory with the GPU instead of copying it every frame. On the RG477M's stock driver, the log shows the driver refusing it, so the app falls back to copying and the option has no effect there. It's harmless to leave on, and it may work on other Mali devices or drivers. If the game draws wrong, runs slower or closes, turn it off. Needs 8 GB of RAM or more.

On the RG477M itself (GammaOS)

  • Performance mode: Balanced
  • Fan: Cool
  • Screen refresh rate: 60 Hz (the game runs at 30, so 120 Hz only costs power)

Results with all of the above: a 17½-minute session held a full 30 fps 99% of the time, with no thermal throttling. Expect short one-off hitches the first time you visit a new area while shaders build. They fade as the shader cache fills.

Source code

This APK was built from upstream commit 75bfc64 (0.4.11) plus the change in commit bb10b3f (runtime/hle/widescreen.c only). FFmpeg and the game-code builder (Python, Zig, Capstone, Unicorn, LZ4) are the unchanged files from the official 0.4.11 release APK. Because the APK includes the frame-generation code, it is distributed as a whole under GPL-3.0-or-later; see the repository's LICENSE and NOTICE.md for the licences of its parts.