v4.2.1.stable.official run on Redmi Note 9 Pro (miatoll) with crDroid10.2 custom ROM on a14
Question
This project was started on Forward+ renderer and recently I switched to Mobile renderer and I cant run exported .apk on my device because of the following error (copied from engine’s debug results):
Selected screen scale: 1.79999995231628
Vulkan: Did not create swapchain successfully. Error code:
VK_ERROR_SURFACE_LOST_KHR
Error code: VK_ERROR_SURFACE_LOST_KHR
I feel like Ive searched many forums top to bottom, but still didnt find any solution
Weird thing is I have another project I started recently using Mobile renderer and it works just fine on my device
If you want to use Vulcan I think your phones ardeno 618 should support it. But I would double check the drivers contained in your android distro are up to date.
Oh I see,
Have you ever tried developing on mobile?
It is not something I have done.
I am quite curious about how regular users find doing things on their mobile as I hardly use it
I’m not exactly sure, I would assume that the hardware vendor provides some driver that is Vulcan compatible, then you need the Vulcan runtime libraries. I assume you have some version of the runtime libraries already since it gets that far into accessing your gpu.
Although I’m not exactly sure how a rom gets a hold of a vendors BSP, or if they are just freely available to the public. I would investigate your rom and hardware to see what is available. And if anyone else has had an issue with your phone and vulkan.
Since you probably have root access you could definitely modify the system yourself. I just don’t know if the things you need are easily accessible.
drivers can be updated quite easily, if you have root and ksu/magisk there are modules that contain new drivers
I got my hands on one of that modules with new drivers for my phone, flashed it with KSU and now everything works fine, godot can be launched on my phone just fine, and GPU particles now should work (havent tested yet)
forget about gpu particles, old versions of my game that used them still dont work
not like I care, I switched to cpu particles long time ago, was a bit frustated that its never stated that gpu particles wont work on mobile