Android Opengl ES Maximum Texture

I am an Android developer and am trying for the first time to use OpenGL ES 1.0 to display a large number of square objects with a texture applied to them. These textures are taken from large bitmaps, which I will probably reduce later.

Does anyone know how I can find out the maximum number of textures that my device will support (software)?

I assume that the maximum number will depend on things like the size and compression state of the textures. But I could not find a single document that mentions what the limit is, or how to solve it.

I was hoping to provide 100,000 textures matched by square objects, and I'm not sure if this is possible even on my device.

This is for a non-standard Android device, so it does not have specifications for such things, if such a specification exists for officially released devices. This is a non-mobile custom device running Android 4.1 with 1 GB of memory.

Help or suggestions?

+5
source share
1 answer

The maximum number of available textures can be obtained using

  int[] maxTextureSize = new int[1];
  GLES10.glGetIntegerv(GLES10.GL_MAX_TEXTURE_SIZE, maxTextureSize, 0);

Your result will be in maxTextureSize [0]

-1
source

All Articles