Function to get Texture Memory Limit

Is there a way to get the texture memory threshold for a device… 

There seems to be none, but wouldn’t such a thing be a very useful feature?

How is this different than “maxTextureSize”?

Rob

system.getInfo("maxTextureSize")  

returns the maximum size a texture image can be… 
So if maxTextureSize is 2048, the maximum image we can use is 2048x2048 
(Correct me if I was wrong on that one)

Now the texture memory used by the app can be calculated in MB using 

system.getInfo( "textureMemoryUsed" )/(1024 \* 1024)  

This goes around 70-80 MB in high-end devices for me, and going by forum comments, is not anything to worry about. 
Is there a threshold for this memory usage? And if yes, how do we get it using Corona?
 

There isn’t a way to get the available free memory that I’m aware of with Corona SDK.

Rob

How is this different than “maxTextureSize”?

Rob

system.getInfo("maxTextureSize")  

returns the maximum size a texture image can be… 
So if maxTextureSize is 2048, the maximum image we can use is 2048x2048 
(Correct me if I was wrong on that one)

Now the texture memory used by the app can be calculated in MB using 

system.getInfo( "textureMemoryUsed" )/(1024 \* 1024)  

This goes around 70-80 MB in high-end devices for me, and going by forum comments, is not anything to worry about. 
Is there a threshold for this memory usage? And if yes, how do we get it using Corona?
 

There isn’t a way to get the available free memory that I’m aware of with Corona SDK.

Rob