diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/ios/device_util.h | 2 | ||||
-rw-r--r-- | base/ios/device_util.mm | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/base/ios/device_util.h b/base/ios/device_util.h index fe4833d..a4fa488 100644 --- a/base/ios/device_util.h +++ b/base/ios/device_util.h @@ -40,7 +40,7 @@ namespace device_util { // x86_64 -> Simulator std::string GetPlatform(); -// Returns true if the application is running on a high-ram device. (>=250M). +// Returns true if the application is running on a high-ram device. (>=500M). bool IsRunningOnHighRamDevice(); // Returns true if the device has only one core. diff --git a/base/ios/device_util.mm b/base/ios/device_util.mm index 9600833..0d516f9 100644 --- a/base/ios/device_util.mm +++ b/base/ios/device_util.mm @@ -72,8 +72,8 @@ bool IsRunningOnHighRamDevice() { uint64_t memory_size = 0; size_t size = sizeof(memory_size); if (sysctlbyname("hw.memsize", &memory_size, &size, NULL, 0) == 0) { - // Anything >= 250M, call high ram. - return memory_size >= 250 * 1024 * 1024; + // Anything >= 500M, call high ram. + return memory_size >= 500 * 1024 * 1024; } return false; } |