pc_decomp_frstp

pc_decomp_frstp is an Android port of Frostpunk with Vulkan rendering and touch controls.

README

Frostpunk for Android — 0.4-dev

Experimental native ARM64 Android port of Frostpunk using static recompilation, with Vulkan rendering, touch controls, and on-device texture conversion.

Project: phys-winner/pc_decomp_frstp. This unofficial community project is unaffiliated with 11 bit studios.

Status and requirements

The port runs statically translated x86-64 game code as ARM64 code. A native host runtime provides the Windows interfaces the game uses. Its native renderer draws D3D11 on Vulkan. Existing releases also include the transitional DXVK path. The Android execution path does not run Wine or Box64.

The main menu and a new A New Home city have run on tested Adreno, Mali, and PowerVR configurations during development. This does not establish full scenario, DLC, or long-session compatibility, or guarantee a particular frame rate.

You need:

  • Android 11 / API 30 or newer on a 64-bit ARM device.
  • A compatible Vulkan 1.3 GPU and driver. Adreno uses Mesa Turnip, or its system driver where that one reports Vulkan 1.3 with the features the renderer needs; supported Mali and PowerVR devices use system Vulkan. The launcher reports the actual features; attempting launch despite a warning does not guarantee compatibility.
  • The launcher checks experimental PanVK on all Mali and Immortalis GPUs. The launcher checks the selected driver for DXT1, DXT3 and DXT5 sampling. It can offer the shared ASTC texture pack when these formats are unavailable. The bundled driver requires 4 KiB kernel pages. On other page sizes, import a compatible PanVK driver. The bundled driver uses Kraid for fragment shaders on Valhall and newer architectures.
  • Your own supported Steam PC installation of Frostpunk. The pinned Frostpunk.exe SHA-256 is 45d6a087515fab5e5fc55e673699b04f4d207da09958fd274ffe7467d5a09bdc. Other executable versions and store editions are not verified.
  • Storage for your game files and, when needed, the ASTC cache. The tested prepared bundle occupies about 9.70 GB; conversion adds about 5.15 GB at Switch texture quality or 7.01 GB at full PC quality, plus temporary working space. No minimum RAM requirement has been established; large cities can exceed a device's memory.

No original game files are distributed in this repository. The APK packages compiled port code and a translated runtime; its data assets do not include the original game installation. Supply your own executable and game data. JSON data manifests in android/ contain names, sizes, and hashes, not game payloads.

Since the port sync of 24 November 2026 the working tree builds an APK with the native Vulkan renderer only: the launcher lists Vulkan (system driver), Vulkan (Turnip) and Vulkan (PanVK), each with the Vulkan version and the texture formats of its own driver, and a mode that cannot run is shown disabled with its reason. The DXVK modes and the FSR 3 module are no longer packaged; a saved DXVK choice starts the matching Vulkan mode. A driver without DXT textures needs a one-time conversion to ASTC 6x6 or ETC2, offered before the first start. The Qualcomm system driver is judged like any other system driver: a row with Vulkan 1.3 and the native requirements (dynamic rendering, synchronization2, Vulkan memory model, shader draw parameters) is offered, an older or smaller one is disabled with that reason. Turnip keeps its own row. On Qualcomm proprietary driver build 0x802fa029 (Vulkan 1.3.128 on the realme RMX3851), the renderer matches vector widths between shader stages to prevent GPU hangs in tone mapping and city rendering. Qualcomm shader interface fix is enabled by default in the driver workarounds block for that driver build. Drivers that expose VK_QCOM_rotated_copy_commands can pre-rotate the swapchain image to match the Android surface. The bundled PanVK library is the shared reference build of ../launcher/drivers/panvk (pinned by its SHA-256). Sections below that mention DXVK describe the published 0.3.x releases.

Install and play

  1. Install Frostpunk-0.4-dev-<commit>.apk (eight commit hash characters). The package is com.frostpunk.staticrecomp, with version name 0.4-dev and version code 10.
  2. Open the launcher and grant storage access as needed. The Play card shows unsupported GPU features and insufficient Vulkan versions. The launcher stays usable when the device cannot run the game.
  3. Select your game folder or a compatible ZIP with the files at its root. With a ZIP made using Store, Play from archive reads the original DAT files without extracting them. Keep the ZIP at the selected path.
  4. Press Play. Native DXT/BC support allows original textures. Other supported GPUs need a one-time DXT-to-ASTC conversion; the Play card shows progress and starts the game when preparation finishes.

Conversion preserves the source game files. The Textures card offers preparation and restoration; launch checks verify the cache covers the selected quality.

The Renderer card defaults to native Vulkan. System Vulkan, Turnip on supported Adreno devices, and PanVK on supported Mali devices have independent compatibility results. When the selected renderer cannot start, or its GPU device is lost before the first frame or within 30 seconds after it, the game stops and the launcher names the failure and offers the next available renderer (the choice is saved); nothing switches renderers by itself. Any other native failure opens the crash report. The existing DXVK modes are transitional while the native backends gain coverage.

Own driver… under PanVK driver imports a ZIP driver package or an ARM64 .so file. On supported Mali devices, the choice applies to Native Vulkan (PanVK) and DXVK (PanVK). Use the port's driver restores the bundled library.

Optional port-ui.* patches and switch-ui.* resources are generated separately from user-supplied assets. Without compatible port UI data, interface scale is limited to 100%; without Switch UI resources, the Switch interface is unavailable. The launcher explains missing resources. Extracted assets and data bundles are not included here.

Saves and profiles are separate from source data, under Frostpunk in shared storage. Back them up before development-build testing. Updates must use the same APK signing certificate to install over the existing app and keep its app data.

Touch controls

GestureAction
TapSelect or activate an interface item
Drag an empty areaMove the camera
PinchZoom smoothly between the zoom levels; the camera settles on the nearest level
Pinch out twice at the farthest zoomOpen the world map
Rotate two fingersRotate the camera or the building being placed
Two-finger tapCancel
Three-finger tapReset the camera
Drag in construction modeMove the camera and aim the tool at the ground under the screen centre
Swipe along the time barChange game speed (a one-time hint explains it after the first tap)
Swipe a setting horizontallyChange its value
Swipe a settings list verticallyScroll
Tap a text fieldOpen the Android keyboard
Tap a notification icon (left)Collapse the notifications to their icons, or expand them again
Android BackClose the keyboard or open the game menu

In touch construction mode, the white outline is projected onto the build plane and stays visible over buildings. The building preview follows the centre of the view with the usual snapping, including while a touch operates the HUD. The buttons on the right switch between building and dismantling streets in place. The active button shows the current street mode and the cost or refund for the selected segment. OK places a building or marks an end of a street at the cursor. Cancel leaves the active tool or closes the construction menu.

With the Switch interface, holding the build button in the bottom-left corner opens part of the radial menu; slide to an item and release to choose it. The labels come from the game's own localization.

Placement offset, UI scale, render scale, frame limit, and other port options are available in the game settings with the matching port UI data. The frame limit offers the supported refresh rates and half of each rate in whole FPS. On the first start the port claims the free Monument to the Builders, as the original's "Follow Publisher Page" button does; the Free building setting turns it off and removes it again. Changing the Switch interface asks for a restart, as in the original. Fresh settings request 200% UI scale, subject to the resource guard; saved preferences are kept. The default game language follows a supported Android system language, otherwise English, unless the player already selected a game language.

The launcher and Android port settings cover all game localization tables, plus Czech and Hungarian. Use the launcher language picker for the Android UI. In a private build, select Czech or Magyar in the game's own Settings → General → Language menu. Each installed community language appears alongside the original languages.

For a private build, use the localizations.dat and localizations.idx from Jetro's Czech translation 1.18 or the Wolf 4dító Team's Hungarian translation 1.13. Place the two files together in cs/ or hu/ under one folder and run python tools/build_localized_apk.py <folder>. The signed APK is written under build/. The Steam installation remains untouched.

Graphics

The Switch graphics master option is enabled by default. Snow and terrain use PC settings by default; the other four groups use Switch settings. Advanced graphics settings expose each group. Turning the master off uses PC settings while retaining the individual choices.

Switch texture quality skips top mip levels of 785 identified world textures; UI and unknown textures retain their full mip chains. A full PC ASTC cache also covers Switch quality; a reduced cache cannot supply PC quality. World meshes remain PC meshes with runtime simplification. The adapted Switch artwork belongs to the optional interface data. Current port settings and localization patches are bundled in the APK, verified by SHA-256, and installed ahead of older interface patches in the game ZIP. The built-in driver is purple-turnip T30 (Mesa); its license text and origin are under assets/licenses in the APK.

Turnip disables hardware tessellation to avoid GPU hangs observed in development. Upscaling, frame generation, and reduced graphics are experimental and depend on the GPU and driver. 0.4-dev remains an early development build.

Sources and building

PathContents
android/appNativeActivity, lifecycle, touch controls, Android resources
android/hostARM64 host runtime, Windows interfaces, settings, ZIP reads
android/launcherFrostpunk launcher integration and resource checks
android/launcher-baseBundled shared launcher sources and native ZIP reader
android/dxvk, android/gpuD3D11/Vulkan bridge and driver integration
android/steamNative local-only service backend integration
native/runtime64Upstream CPU/exception runtime, with retained MIT license
native/windowsWindows validation host
tools, tests, configBuild tools, overlays, fixtures, function seeds

Local configuration, raw analysis databases, device-specific experiments, historical receipts, generated translations, object caches, dependency checkouts, and release binaries stay outside Git. Historical tools can refer to local artifacts that are not part of this snapshot.

The current environment is Windows with PowerShell, Python 3.10+, a JDK, Android SDK platform 37, CMake 3.22.1, NDK 27.2.12479018, and XZ Utils 5.4+. See DEPENDENCIES.md for upstream pins. Set your own paths in the ignored port.json; Python analysis dependencies are in requirements.txt. Optional asset tools also use NumPy, Pillow, and texture2ddecoder.

Copy-Item port.example.json port.json
python -m pip install -r requirements.txt

The release recipe rebuilds the launcher, application library, DXVK, D3D11 bridge, native Vulkan backend, and host runtime. It links the validated AOT objects and packages a signed APK:

python -X utf8 -B tools/build_release.py

Build the bundled PanVK driver once on Linux or WSL with Android NDK r29 and the JimVulkan build prerequisites. Kraid requires Meson 1.7 or newer, Rust 1.85 or newer with the aarch64-linux-android target, and a compatible bindgen CLI with libclang. Run sh tools/build_panvk.sh /path/to/android-ndk from the same checkout. The APK builder takes the driver from the shared folder ../launcher/drivers/panvk (the 20 November build of this patch and recipe, described by its MANIFEST.json) and checks it against the SHA-256 pinned in tools/android_release.py.

This is an incremental research build, not a complete clean-clone bootstrap. It needs previously generated private AOT inputs, dependency checkouts, and base APKs: build/fast/runtime-inputs.json, matching generated sources, build/fastlift/obj, the bridge objects named in tools/android_release.py, the pinned build/ui-20261114/v25 base APK, the pinned DXVK checkout and submodules, the build/fastlift/fl18 base payload, the local port UI asset generator, the supported Czech and Hungarian localization inputs under build/fan-localizations, and pinned Turnip inputs in build/gpu-runtime/runtime and reference/turnip-*. These include generated game code and local build products and are not in Git. A fresh clone alone cannot reproduce the APK.

APK tooling and the existing signing key are read from the local ~/.agents/skills/adapt-arm32-game/machine_config.json used by tools/fastbuild.py. Provide your own private machine configuration and signer; no key or keystore is distributed here. The recipe checks the base pin, source stability, APK signature, and 16 KB ZIP alignment. The output is pub/Frostpunk-0.4-dev-<commit>.apk, where <commit> matches the eight-character commit embedded in the APK, with a SHA-256 sidecar. Local aliases pub/Frostpunk-0.4-dev.apk and pub/Frostpunk.apk are also updated. The whole pub/ directory is Git-ignored.

A portable localization check needs no device or game files:

python -m unittest discover -s tests -p test_launcher_compatibility_localization.py

Other runners can require a prepared build, game data, or an explicitly selected device. Development measurements are not a test of every new APK.

License

Original port code is GPL-3.0-or-later, a strong copyleft license. See LICENSE and NOTICE. When distributing the covered port in binary form, comply with the GPL's Corresponding Source requirements. Third-party code keeps its own licenses and notices. The APK carries these notices in assets/licenses.

The grant does not cover Frostpunk's proprietary executable, data, artwork, audio, or generated translations of proprietary code. It does not grant rights to redistribute them. Obtain the game separately.