Question for Ashley/Tom

Post » Thu Feb 09, 2017 6:36 pm

If I understand correctly, Android devices have something called a "maximum heap size", the maximum amount of RAM available for an app. So for a 3GB Android tablet, the max heap size would be about 512MB, depending on what the manufactorer sets it at. If you wanted to target a lot of devices, you might set a 128MB or so heap size though.

My question is, will the Max Heap Size set by the device manufactorer affect the performance of Construct 3 or the Chrome web browser while using Construct 3 on the Android device? If you have the time, a sentence or two explanation might be good too, so I understand.
B
7
S
2
G
3
Posts: 113
Reputation: 1,932

Post » Fri Feb 10, 2017 11:38 am

I've never heard about such limitations being in place on Android. Such arbitrary limits would not improve anything and would seriously affect performance, so I don't see any technical reason that would ever be put in place. Where did you find out about this?
Scirra Founder
B
402
S
238
G
89
Posts: 24,628
Reputation: 196,023

Post » Fri Feb 10, 2017 1:07 pm

I learned about it from other forums. Strangely enough, most of the info is contained on forums and not necessarily on official articles. That being said, if you look at the build.prop of an Android device it will list Heap sizes. I have also heard that iOS has similar constraints.

Here is an article which mentions it.

https://blog.androidcafe.in/android-hea ... .4ki7jdloo
B
7
S
2
G
3
Posts: 113
Reputation: 1,932

Post » Fri Feb 10, 2017 1:54 pm

I don't think that more demanding games would fit into that, so it seems unlikely that there would be such a limit. I'm not sure how much RAM Hearthstone eats on Android, but I bet more than 512MB.
B
137
S
33
G
17
Posts: 1,560
Reputation: 20,797

Post » Fri Feb 10, 2017 4:02 pm

thetrue wrote:Strangely enough, most of the info is contained on forums and not necessarily on official articles.

Hmm... and everything you read on the Internet must be true, right? ;)

Even if there are limits, I'm sure Google have done whatever is necessary to mitigate them in Chrome. As far as I'm aware there are no memory limits affecting Chrome.
Scirra Founder
B
402
S
238
G
89
Posts: 24,628
Reputation: 196,023

Post » Fri Feb 10, 2017 4:09 pm

I have some good news. I just tried a really messy 600MB RAM Construct 2 project on an Android phone with a 128MB heap and 2GB actual RAM and it worked!

I'm willing to call the whole heap size thing mostly a myth I guess.

Sorry about the confusion. But I doubt I would have had the motivation to try it had I not posted about it.

Thanks Ashley. And sorry for getting you worried.
B
7
S
2
G
3
Posts: 113
Reputation: 1,932

Post » Fri Feb 10, 2017 7:46 pm

See para Check how much memory you should use from developer.android.com.
A big fan of JavaScript.
B
76
S
20
G
76
Posts: 2,284
Reputation: 47,552


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest