• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

iOS iOS large memory usage

Pedro Jones

My game is very optimized and it doesn’t have any memory leaks on Android, but on IOS (with Xcode 11) it constantly receive memory warnings and after a while it closed.
I checked the memory usage of my game with the debug tools and I got the next results: 39 MB of memory usage for Android and 160 MB for iOS.

I read the reason is that since iOS 12 or Xcode 10 Apple is forcing to developers to use a new memory feature called: Metal Memory (https://forum.unity.com/threads/ios-large-memory-usage-apparently-feature-not-a-bug.637660/) (the issue is not Unity specific but rather a memory policy on the iOS platform)

And apparently the new memory feature multiplicate the memory usage of the games, but there are some recommendations to reduce memory for this new feature: https://developer.apple.com/documentation/metal/reducing_the_memory_footprint_of_metal_apps

but I don’t have any idea how to implement those recommendations in the Xcode project generated by VM/YYC runner.

Anyone has the same issue?
How did you deal with this issue?
Do you think that Game Maker 2 needs an update to fix this issue?


Friendly Tyrant
Forum Staff
YYG suspect that it might just be memory which was being allocated on the apps behalf by the OpenGL driver is now being shown as owned by the app (but was always there), but they are currently investigating the issue to be sure. If your app is crashing and you suspect it is because of this in some way, then please file a bug report and include a link to a YYZ of the app as well as instructions on how to cause the crash.

Pedro Jones

Theres no crashes on newer iOS devices just a poor game performance due to the large memory usage, but on older iOS devices the game is closed after a while because the memory usage limit is smaller than newer iOS devices. It works perfectly on Android.

I would like to include a link to a YYZ of the app, but I'm just an employee of Pengu games and I don’t have the permission to file the yyz. But I can file the Xcode report (It mentions OpenGL)

2020-05-07 17:03:00.095 Crazy_finger[3131:188683] com.pengugames.crazy-finger
2020-05-07 17:03:00.269 Crazy_finger[3131:188683] Screen size is 768.000000,1024.000000
2020-05-07 17:03:00.856 Crazy_finger[3131:188683]  * * * * * * Register  audio Interruption callback * * * *
2020-05-07 17:03:01.211 Crazy_finger[3131:188683] Failed to make complete framebuffer object 8219
2020-05-07 17:03:01.220 Crazy_finger[3131:188683] ES2 rendering /var/containers/Bundle/Application/3321973A-0219-4C03-9DE2-394AE5971E8C/Crazy_finger.app/LaunchImage-700-Portrait~ipad.png
2020-05-07 17:03:01.672 Crazy_finger[3131:188683] View did appear
May  7 17:03:01  Crazy_finger[3131] <Warning>:  - <Google>[I-ACS025031] AdMob App ID changed. Original, new: (nil), ca-app-pub-3940256099942544~1458002511
May  7 17:03:01  Crazy_finger[3131] <Notice>:  - <Google>[I-ACS023007] Analytics v.60101000 started
May  7 17:03:01  Crazy_finger[3131] <Notice>:  - <Google>[I-ACS023008] To enable debug logging set the following application argument: -APMAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2020-05-07 17:03:02.181 Crazy_finger[3131:188683] InitRunner
2020-05-07 17:03:02.182 Crazy_finger[3131:188683] FreeSplash
2020-05-07 17:03:02.184 Crazy_finger[3131:188683] FreePNGFile()
2020-05-07 17:03:02.185 Crazy_finger[3131:188683] FreeSplash - finished
2020-05-07 17:03:02.186 Crazy_finger[3131:188683]
*     YoYo Games iPad Runner V0.1      *
2020-05-07 17:03:02.187 Crazy_finger[3131:188683] CommandLine: -game "/var/containers/Bundle/Application/3321973A-0219-4C03-9DE2-394AE5971E8C/Crazy_finger.app/games/game.ios"
2020-05-07 17:03:02.187 Crazy_finger[3131:188683] MemoryManager allocated: 22185
2020-05-07 17:03:02.215 Crazy_finger[3131:188683] RunnerLoadGame2() - /var/containers/Bundle/Application/3321973A-0219-4C03-9DE2-394AE5971E8C/Crazy_finger.app/games/game.ios
2020-05-07 17:03:02.218 Crazy_finger[3131:188683] Expecting 3 extensions
2020-05-07 17:03:02.218 Crazy_finger[3131:188683] Attempting to create extension class iOSSafeArea
2020-05-07 17:03:02.219 Crazy_finger[3131:188683] Attempting to create extension class SHARE
2020-05-07 17:03:02.219 Crazy_finger[3131:188683] Attempting to create extension class GoogleMobileAdsExt
2020-05-07 17:03:02.220 Crazy_finger[3131:188683] Created 3 classes
2020-05-07 17:03:02.220 Crazy_finger[3131:188683] End SetupExtensions
2020-05-07 17:03:02.220 Crazy_finger[3131:188683] Push notifications disabled.
2020-05-07 17:03:02.226 Crazy_finger[3131:188683] Unable to open file /var/mobile/Containers/Data/Application/16A020FC-474C-410A-9E58-9C17B0A90060/Documents/hiscore.dat (No such file or directory)
2020-05-07 17:03:02.234 Crazy_finger[3131:188683] Attempting to set gamepadcount to 5
2020-05-07 17:03:02.378 Crazy_finger[3131:188683] OpenGL: version string OpenGL ES 2.0 IMGSGX543-124.1
2020-05-07 17:03:02.379 Crazy_finger[3131:188683] OpenGL: vendor string Imagination Technologies
2020-05-07 17:03:02.379 Crazy_finger[3131:188683] OpenGL GLSL: version string OpenGL ES GLSL ES 1.00
2020-05-07 17:03:02.380 Crazy_finger[3131:188683] OpenGL: VBOs supported
2020-05-07 17:03:02.380 Crazy_finger[3131:188683] OpenGL: Non-power-of-two textures supported
2020-05-07 17:03:02.380 Crazy_finger[3131:188683] Extensions:
GL_OES_depth_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_draw_instanced GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_pvrtc_sRGB GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_sRGB GL_EXT_texture_filter_anisotropic GL_EXT_texture_rg GL_EXT_texture_storage GL_APPLE_clip_distance GL_APPLE_color_buffer_packed_float GL_APPLE_copy_texture_levels GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_sync GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_APPLE_texture_packed_float GL_IMG_read_format GL_IMG_
2020-05-07 17:03:02.382 Crazy_finger[3131:188683] OpenGL: 24bit depth supported
2020-05-07 17:03:02.383 Crazy_finger[3131:188683] OpenGL: packed 24bit depth/8bit stencil supported
2020-05-07 17:03:02.383 Crazy_finger[3131:188683] OpenGL: seperate 8bit stencil supported
2020-05-07 17:03:02.387 Crazy_finger[3131:188683] Anisotropic filtering supported, max aniso 2
2020-05-07 17:03:02.388 Crazy_finger[3131:188683] Texture #1 16,16
2020-05-07 17:03:02.388 Crazy_finger[3131:188683] Texture #2 16,16
2020-05-07 17:03:02.389 Crazy_finger[3131:188683] Texture #1 16,16
2020-05-07 17:03:02.390 Crazy_finger[3131:188683] Texture #2 16,16
2020-05-07 17:03:02.391 Crazy_finger[3131:188683] finished(2)!!
2020-05-07 17:03:03.039 Crazy_finger[3131:188683] Texture #1 1,1
2020-05-07 17:03:03.039 Crazy_finger[3131:188683] Texture #2 1,1
2020-05-07 17:03:03.040 Crazy_finger[3131:188683] finished(2)!!
2020-05-07 17:03:03.152 Crazy_finger[3131:188683] Collision Event time(microsecs)=63
2020-05-07 17:03:03.729 Crazy_finger[3131:188683] DEVICE ID: -1_3_2_151007237_768__0
2020-05-07 17:03:03.764 Crazy_finger[3131:188683] Unable to open file  (No such file or directory)
2020-05-07 17:03:03.784 Crazy_finger[3131:188683] DEVICE ID: -1_3_2_151007237_768__0
2020-05-07 17:03:03.787 Crazy_finger[3131:188683] SE EJECUTA HASTA AQUI
2020-05-07 17:03:03.788 Crazy_finger[3131:188683] topMargin IDEAL: 0
2020-05-07 17:03:03.792 Crazy_finger[3131:188683] <Google> Invalid application ID. Follow instructions at https://goo.gl/QJ4sUK to find your app ID in the AdMob UI.
2020-05-07 17:03:03.801 Crazy_finger[3131:188683] Total memory used = 797667(0x000c2be3) bytes
2020-05-07 17:03:03.802 Crazy_finger[3131:188683] **********************************.
2020-05-07 17:03:03.802 Crazy_finger[3131:188683] Entering main loop.
2020-05-07 17:03:03.802 Crazy_finger[3131:188683] **********************************.
2020-05-07 17:03:05.072 Crazy_finger[3131:188683] Texture #3 4096,4096
2020-05-07 17:03:06.577 Crazy_finger[3131:188683] Texture #3 4096,4096
2020-05-07 17:03:09.947 Crazy_finger[3131:188683] _BSMachError: (os/kern) invalid capability (20)
2020-05-07 17:03:09.953 Crazy_finger[3131:188683] _BSMachError: (os/kern) invalid name (15)
2020-05-07 17:03:12.144 Crazy_finger[3131:188683] View did appear
2020-05-07 17:03:30.731 Crazy_finger[3131:188683] Received memory warning.


Friendly Tyrant
Forum Staff
Okay, could you please file a bug report and include a link to a YYZ with of the project? The project will only be seen y the devs and will not be made public.