Limit ram for my game on Iphone 4

Hello everyone!
I have a problem in my game on iphone 4. Xcode announced a bug "Message from debugger: Terminated due to Memory Pressure. When i check on Debug Navigator on Xcode my app used ~250M Ram, and free ~250M. I know my problem is caused by too many resource loaded at this time, but i don’t understand why my game was closed when memory ram available to 250M?
Can you solve for me? Sorry for my bad English :blush:

iOS usually only allows a single app to use about 1/2 of the available device memory, and if an app goes over, it will be terminated. To my knowledge there is no specific hard limit as the OS does various things to decide when an app is using too much memory, but generally it is at about 1/2.

1 Like