Hi all,
In my current project so far, my biggest and most massive map has the following memory usage reported on average:
MEMORY = 1972.510 KB TEXTURE = 81.74324798584 MEMORY = 2017.846 KB TEXTURE = 81.74324798584 MEMORY = 2064.834 KB TEXTURE = 81.742874145508 MEMORY = 2123.420 KB TEXTURE = 81.73006439209 MEMORY = 2170.521 KB TEXTURE = 81.73006439209 MEMORY = 2150.377 KB TEXTURE = 81.73006439209 MEMORY = 2095.697 KB TEXTURE = 81.730438232422 MEMORY = 2052.014 KB TEXTURE = 81.730438232422 MEMORY = 2032.885 KB TEXTURE = 81.728942871094 MEMORY = 2050.471 KB TEXTURE = 81.729690551758 MEMORY = 2072.471 KB TEXTURE = 81.714363098145 MEMORY = 2097.529 KB TEXTURE = 81.728942871094 MEMORY = 2082.494 KB TEXTURE = 81.729316711426
That info is generated with the following code:
local function checkMemory() collectgarbage( "collect" ) local memUsage\_str = string.format( "MEMORY = %.3f KB", collectgarbage( "count" ) ) print( memUsage\_str, "TEXTURE = "..(system.getInfo("textureMemoryUsed") / (1024 \* 1024) ) ) end local memTimer = timer.performWithDelay( 1000, checkMemory, 0 )
Do you guys think it is still within “normal” range?
With about 8 levels at this point, the APK size is now around ~39-40MB. But I am and will be reusing most of the assets for the rest of the levels, so I would guess the next increments may taper down to smaller amounts?
For favoring eye candy and realistic visual effects, I bit the bullet on this one and decided on a content resolution of 1080 x 1920 with 60fps. Yes I know, I could have just settled on a smaller resolution and just use assets with @2x, @3x to adapt to high-res devices, etc. Considering most of today’s devices are sporting very high resolutions and processing power with heaps of RAM, I settled into this setting which I consider to be a sweet spot between older and newer (future) devices. I have been testing the app on numerous not-so-old Android devices and I am very pleased with the results so far. It runs like butter 
Now, my concern came about when I managed to get my hands on a much older device, a Samsung Tab running Android 4.2, 1GB RAM and a 1.2gHz processor (SM-T110). The performance is not so satisfying to say the least - slow and choppy. How many % users do you think today still use devices with those specs?
I welcome your thoughts on this.
Thanks,
Santi