Poor performance with both OpenGL and Vulkan
One of my primary goals is to be able to use MultiMC (a Minecraft: Java Edition launcher) on the go thanks to its superior instance management.
My setup is Droidspaces, using KDE Plasma and Anland for native HW accelerated Linux desktop. My phone has the Snapdragon 7+ Gen 2 (which by itself is essentially just a downclocked version of the 8+ Gen 1) with Adreno 725.
With the freedreno driver, Minecraft 26.2 with common optimization mods (Sodium, Lithium and so on) only reach an unstable 45fps in game. With turnip and the vulkan backend it's even worse not even able to maintain stable 30fps. Zink doesn't even boot. Sometimes vortex explosions and artifacts can even be seen.
Now the interesting thing is, MojoLauncher which is a Minecraft Java launcher for native Android, also supports freedreno and turnip. Both drivers were able to maintain 90+fps with the same set of mods and same video settings. Zink even boots and has almost identical performance to freedreno. Turnip was used with the draft timeline semaphore patch from upstream however even without it performance is still better than in droidspaces.
I think this is worth looking into.
- For the requirement of running Minecraft Java Edition on Android, please prioritize using native launchers such as FCL. The renderers, drivers, etc., of these launchers have specific optimizations for Minecraft. These optimizations are unmatched by either the current Anland or Termux:X11.
- If you need to test the peak performance of the drivers in this repository under Anland, please refer to the
vkmarkscore. For example, run this before starting the desktop:dbus-run-session -- bash -lc 'kwin_wayland --exit-with-session vkmark' - Currently under Anland, the Turnip + Zink combination can only run
glmark2normally;glmark2-es2,glmark2-wayland, andglmark2-es2-waylandare all unable to run. It is recommended to use the Freedreno (KGSL) driver to run OpenGL and OpenGL ES applications under Anland for now, or use Termux:X11 which has higher compatibility.
vkmark test results of Adreno 730 under Anland
=======================================================
vkmark 2025.01
=======================================================
Vendor ID: 0x5143
Device ID: 0x7030002
Device Name: Turnip Adreno (TM) 725
Driver Version: 109056099
Device UUID: bb29adb774d8841f873b92d23d5196de
=======================================================
[vertex] device-local=true: FPS: 7026 FrameTime: 0.142 ms
[vertex] device-local=false: FPS: 6300 FrameTime: 0.159 ms
[texture] anisotropy=0: FPS: 5692 FrameTime: 0.176 ms
[texture] anisotropy=16: FPS: 5696 FrameTime: 0.176 ms
[shading] shading=gouraud: FPS: 5931 FrameTime: 0.169 ms
[shading] shading=blinn-phong-inf: FPS: 5681 FrameTime: 0.176 ms
[shading] shading=phong: FPS: 5502 FrameTime: 0.182 ms
[shading] shading=cel: FPS: 5893 FrameTime: 0.170 ms
[effect2d] kernel=edge: FPS: 6149 FrameTime: 0.163 ms
[effect2d] kernel=blur: FPS: 3748 FrameTime: 0.267 ms
[desktop] <default>: FPS: 7087 FrameTime: 0.141 ms
[cube] <default>: FPS: 6319 FrameTime: 0.158 ms
[clear] <default>: FPS: 5975 FrameTime: 0.167 ms
=======================================================
vkmark Score: 5923
=======================================================
Update: According to my testing, under the same container and the same game settings, the frame rate of Termux:X11 in a static scene for Minecraft 26.2 Vulkan is about 30 frames higher than that of Anland. This is likely related to the lack of official Wayland support for Minecraft Java Edition at present, as XWayland significantly reduces graphics performance in similar scenarios.
Screenshots
Thanks for your input. I will do more testing and report back.
Although I used Minecraft as an example here, this potentially allow you to play other games too exactly how they were meant to be played (like native Linux builds for supported games as those can yield better performance than say running via Winlator/GameNative).
Currently under Anland, the Turnip + Zink combination can only run glmark2 normally; glmark2-es2, glmark2-wayland, and glmark2-es2-wayland are all unable to run.
May I ask why is this the case? Turnip should be able to run zink just fine.
Also, while running Minecraft there are artifacts. I don't think that's normal.
May I ask why is this the case? Turnip should be able to run zink just fine.
Also, while running Minecraft there are artifacts. I don't think that's normal.
I tested it again, and using the combination of XWayland + Zink + Turnip, Adreno 830 is able to start Minecraft (OpenGL) normally, but Adreno 730 cannot start it. Perhaps Adreno 7xx requires additional fix patches.
By the way, for Minecraft 26.2, Wayland can be enabled by adding the JVM arguments -DMC_DEBUG_ENABLED -DMC_DEBUG_PREFER_WAYLAND. This may improve performance or resolve some graphics issues in Vulkan mode.
I can run the game (26.2) with zink on Adreno 725 without any additional patches. Performance is more or less only slightly worse than freedreno.
Maybe it would run better with the timeline semaphore patch applied. (this is only while standing still, active fps is much lower around the 40-50 range)
(the input UI is a custom (vibecoded) patch on top of anland consumer)