View Full Version : How to find the size of video RAM in any android device?

04-30-2013, 09:13 PM
How do I get to know the size of video RAM in any android device so that I can load textures based on the size? The maximum size of texture is 4096 X 4096. What relation does it have to the size in bytes of the image (i.e. on bytes per pixel) ?

I want to find the size of Video RAM based on which I can decide how many textures can I load in memory at a time for optimal performance... i.e. no of textures = memory size / size (in bytes) of one texture

Please help.

05-02-2013, 04:42 AM
Such information is platform specific in OpenGL. It is probably the same for OpenGL ES.
For GL, there is GL_ATI_meminfo on ATI and there was another one for nVidia.
You would have to check you documents on Android.