This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Very slow shader compilation (Galaxy S3 mini)

Hi!

I have a game in Google Play and I'm having problems with (at least) one of the devices, the Galaxy S3 mini with a Mali-400MP.

There's a shader which takes 20 to 30 seconds to be compiled, leading to users thinking that the device just crashed. The shader is this

#ifdef GL_ES precision highp float; precision mediump int; #endif uniform - Pastebin.com  (nothing specially complex, I think)

and the issue with more information is here:

Weird freeze compiling shader on Galaxy S3 Mini · Issue #2496 · mono/MonoGame · GitHub

Any ideas?

Thanks!

p.s. Can I use Mali graphics debugger with 4.1.2? Instructions to install only refer to 4.2+

Parents
  • Hi Chris,

    thanks for your answer, I don't know if I'll be able to implement any of the solutions thought...

    One extra question, is there any way to detect beforehand if the shader will have this problem? (detecting driver version, in example). I prefer using less complex shaders than making the user wait 30 seconds and expose to get a bad rating, and I wouldn't like to cripple all Mali devices just for a 21 months old bug.

    Thanks!

    Kak

Reply
  • Hi Chris,

    thanks for your answer, I don't know if I'll be able to implement any of the solutions thought...

    One extra question, is there any way to detect beforehand if the shader will have this problem? (detecting driver version, in example). I prefer using less complex shaders than making the user wait 30 seconds and expose to get a bad rating, and I wouldn't like to cripple all Mali devices just for a 21 months old bug.

    Thanks!

    Kak

Children