After build and deploy, after the Unity splash screen is over, the app hangs for ~20 seconds with a black screen, and only then the game renders. I’ve disabled every GameObject in the scene, so when the game does finally render there is nothing but the camera showing a background color.
So far I’ve narrowed it down to when the graphics API is OpenGLES3. It doesn’t happen with ES2 or Vulkan.
I’ve attached logcat and during the freeze there are no log entries. There is also nothing suspicious before or after, but perhaps I’m missing something.
Disabling the splash screen has no effect.
Any ideas how to solve this or track down the root cause?
Unity 2019.2.13f1
LWRP 6.9.2
Android device: Samsung Galaxy S10
Built on MacOS 10.14.6
I’m no shader expert, but what I understood from the asset develop is that in some devices it took longer to compile/load the shader. a shader is code that runs on the GPU and handles the rendering of the game elements.
try removing all of your 3rd party assets (from the asset store or otherwise) and see if the problem is resolved. If it is, check them one by one to find the problematic one and contact the developer.