what system.getInfo attribute = memory or texture memory limit/maximum?

I remember seeing an attribute several months ago, and now I have some features in my App that I want to enable only if the local device has enough memory to support it. Can anyone help? I found nothing at: https://docs.coronalabs.com/guide/hardware/systemOS/index.html

I don’t know that we have an API to get how much memory is left. I think what you’re referring to is getting the maximum texture limit. This is the value for the largest individual texture size, like it will return 2048 which means your largest image can be 2048x2048.

Rob

Thank you, Rob. So, there is no realistic way to tell how much memory is in the device my App is running on?

Not with Corona SDK. It could be done with Enterprise and it’s not that difficult. This would be a great plugin for the community to make.

http://stackoverflow.com/questions/5012886/determining-the-available-amount-of-ram-on-an-ios-device

http://stackoverflow.com/questions/6073744/android-how-to-check-how-much-memory-is-remaining

I’ll ask the team about this. Perhaps it’s something that we can encourage them to add to system.getInfo(), but they are going to want to see a feature request for this at https://feedback.coronalabs.com and get some votes.  We would have to also support Windows, Windows phone 8, and macOS and I don’t know what complexities those add.

Rob

You are right, Rob. An experienced plug-in maker could likely do this in an hour or two. I remember last year that Corona had a developer contact me to consider making a plugin. Can you have someone contact me?

I am pretty sure the main corona staff is busy today

Community plugins are submitted through:  http://marketplace.coronalabs.com/plugin-submit

We really don’t reach out to individual developers to make community plugins.

Rob

You could put a feature request in.

I don’t know that we have an API to get how much memory is left. I think what you’re referring to is getting the maximum texture limit. This is the value for the largest individual texture size, like it will return 2048 which means your largest image can be 2048x2048.

Rob

Thank you, Rob. So, there is no realistic way to tell how much memory is in the device my App is running on?

Not with Corona SDK. It could be done with Enterprise and it’s not that difficult. This would be a great plugin for the community to make.

http://stackoverflow.com/questions/5012886/determining-the-available-amount-of-ram-on-an-ios-device

http://stackoverflow.com/questions/6073744/android-how-to-check-how-much-memory-is-remaining

I’ll ask the team about this. Perhaps it’s something that we can encourage them to add to system.getInfo(), but they are going to want to see a feature request for this at https://feedback.coronalabs.com and get some votes.  We would have to also support Windows, Windows phone 8, and macOS and I don’t know what complexities those add.

Rob

You are right, Rob. An experienced plug-in maker could likely do this in an hour or two. I remember last year that Corona had a developer contact me to consider making a plugin. Can you have someone contact me?

I am pretty sure the main corona staff is busy today

Community plugins are submitted through:  http://marketplace.coronalabs.com/plugin-submit

We really don’t reach out to individual developers to make community plugins.

Rob

You could put a feature request in.