Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ToastyAl

Pages: [1]
1
NGUI 3 Support / Android Adreno issue
« on: July 15, 2014, 07:16:00 AM »
Hi all,

We're currently having issues with Adreno GPUs and our NGUI setup. We're working with Unity 4.5.1f and NGUI 3.5.8, currently we're forcing GLES 2.0 through the project settings.

We have a splash screen, right at the start of the game, which is displayed within a UIPanel. On first run the game will boot up and often go black when the splash screen should be displayed. After this nothing will render. Adding a delay before the splash seems to alter this timing a little. On failed runs it will output the following:

W/Adreno-EGL(22425): <qeglDrvAPI_eglGetConfigAttrib:542>: EGL_BAD_ATTRIBUTE
W/Adreno-EGL(22425): <qeglDrvAPI_eglGetConfigAttrib:542>: EGL_BAD_ATTRIBUTE

Followed by the GPU spamming out:

W/Adreno-EGLSUB(20362): <SwapBuffers:1382>: Invalid native buffer. Failed to queueBuffer
W/Adreno-EGLSUB(20362): <updater_thread:456>: native buffer is NULL

Subsequent runs seem to stand a better chance of getting through, although on the Nexus 7 (2013) we've had it repeatedly fail. Given it's working on future runs I'm assuming it's likely to be related to shader compilation?

I fixed the issue by switching to GLES 3.0, but then we get issues compiling NGUI shaders. Specifically "unlit/premultiplied  colored 1" gives me the errors:

E/Unity(14343): -------- GLSL error: Vertex shader compilation failed.
E/Unity(14343): ERROR: 0:6: '' :     GLSL error: #version must occur before any other statement in the program
E/Unity(14343): ERROR: 0:37: 'uniform' :  cannot initialize this type of qualifier 
E/Unity(14343): ERROR: 0:38: 'uniform' :  cannot initialize this type of qualifier 
E/Unity(14343): ERROR: 3 compilation errors.  No code generated.

Has anyone had similar? The game is running fine on iOS so I'd really like to avoid any big changes to get things sorted.

Thanks!

Pages: [1]