Repository navigation
Releases
v0.1.6 — Vulkan 1.1 phones, custom GPU driver (PanVK), old-Mali renderer, car steering buttons
Still an early test build. Install it over the previous version: saves and settings stay. If Android refuses to install it, you probably have an APK from another site: uninstall that first (keep your Mafia II game folder).
New
- Phones with only Vulkan 1.1/1.2 (older Mali such as G57/G76, PowerVR) can start the game now: the APK also carries DXVK 1.9.2 and picks it by itself there.
- Custom GPU driver: gear menu → System → GPU driver loads a Vulkan driver from a
.soor a driver.zip(PanVK for Mali, a Turnip build for Adreno), on any GPU. "Built-in" removes it. - Renderer (gear menu → System): Auto / For old GPUs / Standard. Old Mali drivers (r38: Mali-G57/G68/Immortalis-G715 on driver 1.3.219, broken 3D and textures) switch to "For old GPUs" by themselves from the second start. If that crashes at startup, the game goes back to Standard by itself.
- Car steering with buttons (gear menu → Controls → Car steering): two steering buttons instead of the stick in a car; a touch that misses them does not move the camera.
- Settings in four tabs: Graphics, Controls, Interface, System.
- Older phones (Cortex-A53/A73 cores) get their own build of the game library inside the same APK.
Fixes
- Crash right after a mission or level change (the game's script state switching).
- Short taps were sometimes not seen by the game: every tap is now held long enough.
- The camera kept turning for a few frames after a fast swipe: swipes reach the game at once now.
- Up to half a second freeze every time the game came back from the background.
- Adreno 840: Turnip renders in the faster GMEM mode by default (
turnip_debug = noubwc,sysmembrings the old mode back). - Slightly shorter detail distance on phones (
lod_distance = 100inmafia2re.inirestores the game's).
For reports
- Freezes now log where the game is stuck and what the busiest thread does (
stall watch:lines inmafia2-native.log). input_log = 1inmafia2re.inilogs the mouse and gamepad input the game got each second (camera/aim bugs).- Please attach
mafia2-native.logandapp_process64_d3d9.logfromAndroid/data/com.mafia2re.game/files/with every report.
v0.1.5 — old-Mali fix, smoother sound, lighter city, Turnip shader cache, mouse capture
Still an early test build. Install it over the previous version: saves and settings stay. If Android refuses to install it, you probably have an APK from another site: uninstall that first (keep your Mafia II game folder).
Fixes
- Old Mali drivers (Mali-G57, G68, Immortalis-G715 on driver 1.3.219): v0.1.4's texture workaround never switched on by itself. Now it does (the d3d9 log says
D3D9: swizzle-free L8/A8/A8L8/A4L4 on). Please report whether the picture, menus and movies work now. - Crackling / stuttering sound: Android's audio buffer is kept deeper, so it no longer breaks up when the CPU is busy.
- Adreno (Turnip): compiled shaders are now kept between runs. The first run still compiles them, later runs much less.
- Driving with the touch stick: pushing the stick to its edge in a car no longer looks back.
- Busy city scenes run lighter: fewer ambient cars around the player by the game's own traffic limits (Graphics: Low 50%, Medium 75%, High 100%;
city_density = Ninmafia2re.inisets it), and less overhead in the game's thread locking.
New
- Mouse capture (gear menu → "Mouse capture"): a USB/Bluetooth mouse turns the camera freely, without Android's cursor.
mafia2re.inioptions for testing:turnip_debug = 0: Adreno 8xx back to the faster GMEM mode (may show broken graphics on some 8xx).turnip_debug = noubwc: Adreno on Turnip, if screen recordings or screenshots show garbage (costs some GPU speed).vulkan_driver = system: use the phone's own Vulkan driver instead of Turnip on Adreno.dxvk_config = dxvk.numCompilerThreads = 4: fewer shader compiler threads.
- Logs now show where each frame's time goes and which threads use the CPU, plus the controller mapping.
Reporting bugs: logs are required
Attach both mafia2-native.log and app_process64_d3d9.log from Android/data/com.mafia2re.game/files/, plus your phone model.
Known issues
- Rare 1-2 s freezes on some Mali phones are being investigated (the new logs will show the cause).
- Mali GPUs with Vulkan 1.1 drivers are not supported.
v0.1.4 — grenade back, faster, gas/brake & button labels, old-Mali texture fix, stretch screen
Still an early test build. Install it over the previous version: saves and settings stay.
Fixes
- Grenade button is back (the first mission needs it).
- Faster again: v0.1.3's new call cache turned out to be ~10% slower on phones and was removed.
- Old Mali drivers (Mali-G57, Immortalis-G715 on driver 1.3.219): text, video and some textures are now uploaded without the channel swizzles this driver gets wrong. Please report if the picture works now.
- Fewer stutters when streaming the city: game archives are read ahead in the background.
- Out-of-memory crash with Full textures on 6 GB phones: below ~8 GB of RAM "Full" is used as "Medium" on GPUs that need texture decoding (all Mali).
- PlayStation controllers (DualShock 4) over Bluetooth: now go through Android's own driver.
New
- Gas and brake buttons in the car.
- Button labels under the icons (gear menu → "Button labels", on by default).
- Screen: 16:9 or Stretch (gear menu) to fill wide phone screens.
Reporting bugs: logs are required
Attach both mafia2-native.log and app_process64_d3d9.log from Android/data/com.mafia2re.game/files/, plus your phone model.
Known issues
- Short frame-time spikes in heavy scenes are still being investigated.
- Phones with only old CPU cores (Cortex-A53/A73) and Mali GPUs with Vulkan 1.1 drivers are not supported.
v0.1.3 — Adreno 8xx picture fix, PC-style weapon/camera controls, cloth setting
Still an early test build. Install it over the previous version: saves and settings stay.
Fixes
- Adreno 8xx (825, 830, 840, ...): picture fixed. Bundled the Turnip T30 driver by Mr_Purple_666 (https://github.com/MrPurple666/purple-turnip, Mesa, MIT), which players confirmed runs these GPUs fine. No need to copy a driver by hand anymore.
- Controls follow the game's PC layout: the weapon button opens the four weapon groups (rifles / fists & grenades / pistols / SMGs; before it only picked SMGs); the grenade button was bound to a wrong key and is gone (grenades are in "fists").
New
- Camera button (centre the camera behind Vito) in "more"; in the car: camera (switch view), radio (next station), look back (hold).
- Cloth physics setting (Auto / High / Medium / Low) in the gear menu: lower = less CPU load.
- Faster CPU code: indirect calls cached per call site (about half of the call-lookup cost gone).
- The gear menu's "Voice" entry is gone (it needed a separate fan pack).
Reporting bugs: logs are required
Attach both mafia2-native.log and app_process64_d3d9.log from Android/data/com.mafia2re.game/files/, plus your phone model.
Known issues
- Mali GPUs on the old driver 1.3.219 (e.g. Mali-G57, Immortalis-G715): broken 3D picture, being investigated.
- Mali GPUs with Vulkan 1.1 drivers can't run it; phones with only old CPU cores (Cortex-A53/A73) aren't supported.
v0.1.2 — Adreno 8xx graphics, lighter cloth physics, menu arrows
Still a very early test build. Install it over the previous version: saves and settings stay.
Fixes
- Adreno 8xx (810, 825, 830, 840, ...): Turnip now draws in a safer mode (system memory) on all of them, for the graphics glitches reported on the Adreno 830.
- Less CPU load: the cloth simulation (coats, jackets) took about a third of the CPU. It is now much cheaper: fewer solver iterations on low and medium "Game graphics" (low 2, medium 3, high keeps the game's 5) and faster code. Less heat on long sessions.
New
- Menu arrows: on-screen up/down/left/right buttons in the menus, so you don't have to steer the cursor.
Reporting bugs: logs are required
Please attach both mafia2-native.log and app_process64_d3d9.log from Android/data/com.mafia2re.game/files/, plus your phone model. Reports without logs can't be fixed. The issue form asks for them.
Known issues
- Phones with old CPU cores only (Cortex-A53/A73, e.g. Snapdragon 625/660/665) are not supported.
- Mali GPUs with Vulkan 1.1 drivers can't run it; low-end GPUs (e.g. Mali-G57) are too slow.
v0.1.1 — Adreno 8xx and Mali fixes, cutscene sound, English, gyro aim
Still a very early test build. Install it over v0.1.0: saves and settings stay.
Fixes
- Crash on start with Adreno 8xx (830, 840, ...): the bundled Turnip driver was wrongly rejected, so the game fell back to Qualcomm's driver and crashed. Turnip is now detected properly.
- Adreno 810 and 825: added to the bundled Turnip (they were "unsupported" and crashed). Untested on real devices yet; please report.
- Oversaturated, too dark / too bright picture on some Mali GPUs (e.g. Mali-G615): fixed.
- No sound in pre-rendered cutscenes and intro logos: movie audio now plays.
New
- Game language: English by default when the English files (
pc/sds_en) are present, switchable in the settings ("Game language"). - Voice: English speech with Russian text (fan pack as
pc/sds_ru_en). - Gyro aim: settings → "Gyro aim": off / while aiming / always.
- Aim as a toggle: one tap to aim, the next to stop (settings → "Aim").
Known issues
- Phones with old CPU cores (Cortex-A53/A73 only, e.g. Snapdragon 625/660/665) are not supported.
- Mali GPUs with Vulkan 1.1 drivers (e.g. Mali-G68 on some phones) can't run it.
- Low-end GPUs (e.g. Mali-G57) are far too slow and show glitches.
Bug reports: please attach mafia2-native.log and app_process64_d3d9.log from Android/data/com.mafia2re.game/files/, plus your phone model.
v0.1.0 — first test build (very early)
First test build. The project is at a very early stage: expect crashes, graphics glitches, slowdowns and lost progress.
Requirements
- Android 10+, arm64. Tested on a Pixel 6 (Mali-G78) only.
- Your own copy of GOG Mafia II (the 2010 original, not the Definitive Edition). The APK has no game files.
- On phones weaker than a Pixel 6 the game may run badly or not start at all.
Installing
- Copy the game's
pcandeditfolders toInternal storage/Android/data/com.mafia2re.game/files/game(or toInternal storage/Mafia II). - Next to them, a
physxfolder withPhysXCore_283.dllandNxCooking_283.dllfrom the PhysX installer in the game'sRedistfolder. - Install the APK and start it.
Language: the game runs in the language of your files. With a Russian copy you can add:
- English text and speech: the
pc/sds_enfolder of an English install next topc/sds_ru, then "Game language: English" in the settings; - English speech with Russian text: the fan pack's
sds_rufolder aspc/sds_ru_en, then "Voice: English".
The DLC episodes keep the language of their own files.
What works
The whole game: menus, saves, story missions, the city, driving, shooting, cutscenes, sound; the DLC episodes. Touch controls and gamepads. Settings: resolution, textures, FPS limit, game graphics, aim as hold or toggle (one tap to aim, the next to stop), interface language, game language, voice.
Known issues
- Pixel 6: ~35 fps in the built-in benchmark, drops to 15-20 fps in heavy scenes; after 10-15 minutes the phone heats up and gets ~20% slower.
- No multiplayer. Other GPUs (Adreno, PowerVR, Xclipse) are untested.
Bug reports: please include the phone model and the log (files/mafia2-native.log).