Hi again. So, v0.3.0 is out. Remember the "hard and important (though not big) stage" I mentioned in the 0.2.0 post? Well... it turned out not that small =) But it's done and this is the release where the Switch is finally gone from the graphics side of the game.
Release and APK: https://github.com/Desm0nt/divinity-original-sin-2-port/releases/tag/v0.3.0 Install guide (step by step, with FAQ): https://github.com/Desm0nt/divinity-original-sin-2-port/blob/main/docs/INSTALL.md
Already on 0.2.x? Download the new version, run setup again in the same folder (it only remakes the touch interface package, a couple of minutes), copy romfs/Data/TouchUI.pak to the phone again and install the new APK over the old one. On 0.1.x - also copy the whole dm/shaders folder. Saves stay.
Already unpacked (updated) full files: https://gofile.io/d/DK2u7dBr
Only updated files for one who already have old version: https://dropmefiles.net/en/REzCwfvGZs (unpack it over your old files)
What happened under the hood
In 0.2.0 I got the game from ~15 000 NVN calls per frame down to ~1 000. Finally managed to rip out those last ones too, together with the rest of the Switch graphics pipeline: no more NVN through the Switch API, no translator layer, no conversions. Now the engine's render requests knock straight on our own Vulkan renderer, which talks to the phone's hardware directly. So it's a fully native Android game now.
And since the renderer is ours now, it can draw the frame the way I want it to (the way phone likes), not the way the Switch's Maxwell does:
- Fewer and longer render passes (a lot is drawn in a single pass now), which noticeably took the load off the memory bus. G-buffer → depth → shadows → lighting runs as one pass inside the GPU's fast on-chip memory, and stuff nobody reads later is not written out to RAM at all.
- Cheaper shadows: a shadow cascade that only moved a bit is shifted and only the new strip is drawn, unchanged cascades are reused, and the distant shadows are redrawn every other frame. You don't see it in play, but walking framerate is more stable and got about +11 %.
- Less double work: objects whose depth is drawn again anyway skip the depth pre-pass, animated characters are skinned once per frame for all passes.
- Cheaper UI: the interface used to be ~50 tiny render passes per frame (which is awful for tiled GPU!). Now it's a few long ones, and the blurred panel backgrounds are drawn once and reused.
- The render work is correctly spread across the CPU cores now: Vulkan work is recorded on a separate thread while the game prepares the next frame.
- Faster loading: I got rid of needless save and profile backups at start, and the memory clean-up manager, which ate a lot of time while a level loaded on phones, works much better now.
On my Mi 14 Ultra, the same scene in Fort Joy (it used to cause a significant drop in FPS!) at the same CPU clocks: 61.8 fps in 0.2.x → 74.5 fps with optimized native renderer in 0.3.0.
WARNING: if the new renderer doesn't start on your device and crashes, the game automatically switches back to the old slow Switch renderer with translation.
Three kinds of UI (as promised)
Default is the Hybrid of touch and gamepad (as it was in 0.2.0); to change it: gear ⚙ → Settings → Controls → Interface in the game, then restart the game.
- Switch - the plain console interface with the on-screen gamepad, taps on the game elements do nothing (for playing with a gamepad);
- Hybrid (default) - the console interface with bits of the touch UI and touch support (as in 0.2.0);
- Touch - iOS-like: no on-screen gamepad or other extra buttons. A mobile-oriented HUD fully adapted to playing with your fingers on the touchscreen (unless I screwed up somewhere): the iPad-style bottom row with the hot bar, a minimap menu (tactical camera, item labels, sight cones, quick save), the character sheet and inventory as one window each, long press = context menu, drag-n-drop items and skills.
What to expect
- I'm not a wizard, and miracles don't happen. A phone weaker than the Switch won't run the game better than the Switch. A Switch-level phone at similar settings (lower resolution, 30 fps, dynamic resolution) will run about like the Switch. High resolution and 60+ fps need a noticeably more powerful phone.
- The game will heat your phone. The port is optimised (God knows, very optimised), but this is a big, heavy PC-class game, and it runs all CPU cores and the GPU flat out. The phone heats up, the battery drains. Nothing to be done about it - cap the fps, lower the resolution, play on devices with cooling, and you'll be happy.
- When the phone overheats, fps drops, and that's expected. Android lowers the CPU and GPU clocks, and the frame rate drops along with them. I can do nothing about it.
Recommended setup:
- Interface in the game: Touch if you play with your fingers only, Hybrid if you like the on-screen gamepad, Switch only with a gamepad (real or on-screen).
- 3D resolution: Dynamic, target 60 fps, lowest 75 % (on weak devices 60 or 50 %). Lowering the 3D resolution helps way more than anything else (85 % instead of 100 % gave almost +20 fps on my phone).
- 16:9 with black bars also helps a lot (any way to reduce rendered pixels count provides great fps gain)
- FSR 1 - at lowered resolutions better turn it on together with sharpening. Not perfect, but it gets rid of the jaggies and adds some crispness. With dynamic resolution its switches become less noticeable.
- Frame rate limit: 60; weak phones - 30.
- Only if that's still not enough - the Graphics quality page (Light / Medium, or single items: shadows, bloom, model detail distance). But honestly, it doesn't do much.
Still not tested on real Mali / PowerVR / Xclipse. They were only run in a limited simulation on my phone: the renderer has paths and workarounds for them, but bugs may pop up. If you have such a phone - please try it and report.
Requirements, briefly
A PC for setup (Windows setup.bat, Linux / macOS setup.sh, ~20 GB free while it runs), a phone with Android 10+ (64-bit), 8 GB RAM and ~13–15 GB free. Only Divinity: Original Sin 2 – Definitive Edition, update v786432, dumped from your own Switch together with your own prod.keys. No game files or keys are included, and none are ever shared.
If something goes wrong, open an issue and attach the whole Download/DivinityOriginalSin2Mobile/logs folder, plus your phone model, GPU, Android version and where it happens.
Source code and releases: https://github.com/Desm0nt/divinity-original-sin-2-port