- Home /
iOS - SystemInfo : Appropriate use?
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.
Your answer
Follow this Question
Related Questions
Phone App(not game) : should I load UI panels as assets or load it as new scene? 0 Answers
android memory, VRAM max usage? 0 Answers
Memory usage for the simplest iOS/Android app grows over time, says Unity 3.5 Profiler 0 Answers
Detect how much RAM is available? (iOS) 1 Answer
OutOfMemoryException when downloading files via the www class (iOS and Android) 1 Answer