I published a 2d game on Google Play.I just catching runtime exeptions and i’m getting an exeption like this:
class java.lang.RuntimeException
Msg: com.androidgames.framework.gl.Texture.load:63 (OpenGL error code while loading texture: 1285 - bg/bg3.png)
I just look up this Error code and it means that GL_OUT_OF_MEMORY.Some devices sending this exeption and it’s killing my game.My resources are only 13 MB but my game is crashing with this exeption even in Samsung Galaxy S2.What can cause to this problem?
15mb is a LOT on some phones. You have to be really careful with memory. You might try to use 2 bytes/pixels if you won’t need all the colors of some images.
each pixel is stored in half the memory of full ARGB_8888 configuration. My app was having similar issues and this helped tremendously