Hello,
I'm using a static function to determine whether the device has poor/low system memory so I can dynamically load in objects that are less heavy on the memory (such a lower mesh, lower textures) I also use Render Textures quite a bit, so they're dynamically adjusted too.
I'm wondering if 'SystemInfo' is the best method to use?
static var MinMemory : int = 600;
static function HasLowMemory(){
print("System Men: " + SystemInfo.systemMemorySize + " Min Mem: " + MinMemory);
if(SystemInfo.systemMemorySize < MinMemory || Debug_ForceLowMemory)
return true;
else
return false;
}
I know with Windows App Store it doesn't return correctly, thats okay though - I'm not planning on using that platform. I just want to know if this is 100% the best way to determine if the device has low memory. Is there another method?
Is there a way the user might be able to prevent the App from determining the system info? Thus causing my function to return false, thus causing a Memory Crash?
I also want to run this on Android.
Thanks.
↧