[英]Why game crashes because low memory on iPad mini but OK on iPad2?
The game we are developing is crash on iPad mini with IOS 7 because the low memory warning when the game uses about 200MB memory. 我们正在开发的游戏在带有IOS 7的iPad mini上崩溃,因为该游戏使用约200MB内存时出现内存不足警告。 However, there is more than 100MB free device memory, and the game is OK on iPad2.
但是,有超过100MB的可用设备内存,iPad2上的游戏还可以。
Anyone knows what happened on iPad mini? 有人知道iPad mini发生了什么吗? IPad mini's hardware is similar as iPad2, but why there is low memory warning on ipad mini though iPad2 is OK?
iPad mini的硬件与iPad2类似,但是为什么iPad2可以正常运行,但为什么在iPad mini上出现内存不足警告?
Why low memory warning will be sent when the device has lot of free memory? 当设备有大量可用内存时,为什么会发出内存不足警告?
Thank you. 谢谢。
I think you've an oversized app: 我认为您的应用程序过大:
https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/18_BestPractices/BestPractices.html https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/18_BestPractices/BestPractices.html
I had problems with a 120mb app on iPad 2 but not in an iPhone 5,and I wouldn't be surprised if it's the same on the mini. 我在iPad 2上使用120mb应用程序时遇到问题,但在iPhone 5上却遇到问题,如果mini上的应用程序相同,我不会感到惊讶。 I think the ios will get uppity if you suddenly increase the amount of memory your app needs as well.
我认为,如果您突然也增加了应用程序所需的内存量,那么ios将会感到不适。
I read somewhere that we should all be aiming for 70mb app sizes (the link above indicates 60) but that can be easier said than done... 我读过某个地方,我们所有人都应该针对70mb的应用程序大小(上面的链接表示60),但这说起来容易做起来难...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.