Remove gray gradient on startup

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By H4love

The game displays a dark gray gradient every time it starts. It takes about 2-3 seconds before splash screen shows. Is it possible to remove this gradient and replace it with a splash screen?

Gradient on boot:

Did you manage to solve this problem? I have the same. I tried to compile on Windows and Ubuntu. In gles2 and gles3. I changed the texture settings and others. Nothing helps.

Michael | 2019-06-28 14:02

:bust_in_silhouette: Reply From: Zylann

I have no idea where this gradient would come from, but you can select a custom splash screen in the Project Settings -> Application -> Boot Splash -> Image property.

Okay, logs say that during this gradient the game produces a series of errors. To be more precise, it’s a few repetitive lines

 at: drivers/gles3/rasterizer_scene_gles3.cpp:5097:initialize() - condition ' status != 0x8cd5 '

The game thus normally works, it looks as if OpenGL is not started from the first try.
Here is full log:

Starting:

**INIT EVENT! - 0xb22a33f0
***************** HELLO FROM JNI!!!!!!!!
*******CLASS FOUND!!! STEP2, 0x10074a STEP3 -1255313372 STEP4, 0x10001d STEP4.5, 0x10074e STEP7 STEP8
*******GOT METHOD _dir_open ok!!
*******GOT METHOD _dir_next ok!!
*******GOT METHOD _dir_close ok!!
*******GOT METHOD _dir_is_dir ok!! starting to attempt get methods
*******GOT METHOD _init_audio ok!!
*******GOT METHOD _write_buffer ok!!
*******GOT METHOD _quit ok!!
*******GOT METHOD _pause ok!! 
test construction 5 
running from dir /
**SETUP 
CMDLINE LEN 0 - APK EXPANSION 0
*****SETUP OK 
ANDROID MODULES: Nothing to load, aborting 
WARNING: not found: display/driver/keep_screen_on 
^_^_^_^_^ newcontext 0 
^_^_^_^_^ resize 0, 720, 1280
**FIRST_STEP 
OpenGL ES 3.0 Renderer: Mali-T720

During these errors, a gradient is shown. A splash may appear after this gradient or not appear at all. If you record video from the screen, you can see how the two screens flicker: the gradient / splash

   At: drivers\gles3\rasterizer_scene_gles3.cpp:4918:initialize() - Directional shadow framebuffer status invalid

Error below repeats 30 times

**ERROR**: Condition ' status != 0x8CD5 ' is true. Continuing..:
   At: drivers\gles3\rasterizer_scene_gles3.cpp:5021:initialize() - Condition ' status != 0x8CD5 ' is
true. Continuing..:

This error repeats 6 times

**ERROR**: Condition ' status != 0x8CD5 ' is true. Continuing..:
   At: drivers\gles3\rasterizer_scene_gles3.cpp:5097:initialize() - Condition ' status != 0x8CD5 ' is
true. Continuing..:

And at the end the log says:

OpenSL Init OK!
Boot splash path: res://splash.png
**ERROR**: Condition ' status != 0x8CD5 ' is true.
   At: drivers\gles3\rasterizer_storage_gles3.cpp:6383:_render_target_allocate() - Condition ' status != 0x8CD5 ' is true.

H4love | 2018-08-18 03:57

Oooh that’s on Android? Sorry I don’t know what could be going on, but you should specify that in your post.
Also if you can reproduce the problem in a simple project, you can post the issue on Github with your device specs for devs to have a look

Zylann | 2018-08-18 14:57