Android Graphics Memory Limits

后端 未结 3 1183
醉梦人生
醉梦人生 2021-02-10 10:30

I am creating an android game using opengl and a cocos2d port (http://code.google.com/p/cocos2d-android-1). I am targeting a wide range of devices and want to ensure that it per

3条回答
  •  無奈伤痛
    2021-02-10 10:52

    Java Apps are 16Mo (mdpi) or 24Mo (hdpi). But Native aren't and OpenGL Java API is only a JNI wrapper. So you can load on GPU more than 24Mo of texture. My experience was to limit Atlas at 512*512 at first (because G1 was slow on big textures) but today i use bigger atlas texture.

    Our current games use 20-50 Mo of ram and use 2048*2048 textures.

提交回复
热议问题