Memory Management

  ... discussions about development with the GLES2 branch of AndEngine.

Re: Memory Management

Postby e.r. » Tue Jun 11, 2013 9:28 am

RealMayo wrote:Here's another extreme basis of comparison...
adb shell dumpsys meminfo com.rovio.BadPiggies


Tried to mess with some scenarios on bad piggies..actually the heap went down from its original consumed size when testing :lol: But yeah on high end devices i guess a "stable" 92Mbytes is quite a relief.

smartus wrote:people who buy them usually give them to kids to play some super simple game and break it in the process.

Hopefully the kid breaks it before learning how to rate the apps : P
User avatar
e.r.
 
Posts: 557
Joined: Sun Sep 09, 2012 1:41 pm

Re: Memory Management

Postby e.r. » Tue Jun 11, 2013 10:56 am

And here's on additional metric to consider:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
  2.                 int memoryClass = am.getMemoryClass();
  3.                 Log.d("potato", "memoryClass:" + Integer.toString(memoryClass));
  4.  
Parsed in 0.011 seconds, using GeSHi 1.0.8.4


on GNEX it is 96
on GIO it is 64
on HTC ChaCha it is 20 hahaha...this one can't even start half of the games

@RealMayo
Can you please run this piece of code on the rugby and the xCover? so that we see if their standard heap limit size is really small?
User avatar
e.r.
 
Posts: 557
Joined: Sun Sep 09, 2012 1:41 pm

Re: Memory Management

Postby RealMayo » Tue Jun 11, 2013 3:48 pm

First of all you meant "Latvian potato" right ;) :lol:
Well I actually don't own those two devices, it's just what some of my customers told me.
So to be clear, that new statistic represents the maximum heap size that the device can handle? And are heap size limitations related to a combination of available ram and available hard drive space for the purpose of establishing virtual memory?
User avatar
RealMayo
 
Posts: 1694
Joined: Sat Sep 03, 2011 9:25 pm
Location: Chicago, IL

Re: Memory Management

Postby e.r. » Tue Jun 11, 2013 11:06 pm

RealMayo wrote:First of all you meant "Latvian potato" right

I took a dalvik heap dump, and analyse it via MAT ...it said the most leaked object is Potato :lol: :P

Joke aside, I am planning on watching this when i have time, the first 5 minutes gave me the clue about the heap check. ( Yet he gives you wrong code (static method instead of instance) in the video . . .)

http://www.youtube.com/watch?v=_CruQY55HOk
User avatar
e.r.
 
Posts: 557
Joined: Sun Sep 09, 2012 1:41 pm


Re: Memory Management

Postby ajezisajirava » Thu Jun 13, 2013 1:26 pm

RealMayo wrote:First of all you meant "Latvian potato" right ;) :lol:
Well I actually don't own those two devices, it's just what some of my customers told me.
So to be clear, that new statistic represents the maximum heap size that the device can handle? And are heap size limitations related to a combination of available ram and available hard drive space for the purpose of establishing virtual memory?


What's so special about a "Latvian potato"? Just curious. :)
ajezisajirava
 
Posts: 62
Joined: Fri Jun 07, 2013 9:14 am

Re: Memory Management

Postby RealMayo » Thu Jun 13, 2013 3:21 pm

I was seeing if he hangs out on Reddit.com
Over there is a funny section of jokes all about Latvians and potatoes. Now any time I see somebody write the word potato, I think about some of those jokes...
http://www.reddit.com/r/latvianjokes
User avatar
RealMayo
 
Posts: 1694
Joined: Sat Sep 03, 2011 9:25 pm
Location: Chicago, IL

Re: Memory Management

Postby e.r. » Thu Jun 13, 2013 7:47 pm

Actually my potato didn't come from there :P in my culture whenever we are stuck on a choosing a word we use potato or watermelon as a word, it is the FOO and BAR of the common spoken language. But the Latvian potato jokes are good when you are profiling your memory :D
User avatar
e.r.
 
Posts: 557
Joined: Sun Sep 09, 2012 1:41 pm

Re: Memory Management

Postby RealMayo » Thu Jun 13, 2013 7:52 pm

Fun fact... do you know what foo bar means? ;)
User avatar
RealMayo
 
Posts: 1694
Joined: Sat Sep 03, 2011 9:25 pm
Location: Chicago, IL

Re: Memory Management

Postby e.r. » Thu Jun 13, 2013 10:24 pm

Nope :roll: , but if you link it with FUBAR, wiki gives you the answer :P
But It is interesting to know the origin :roll:
User avatar
e.r.
 
Posts: 557
Joined: Sun Sep 09, 2012 1:41 pm

PreviousNext

Return to GLES2

Who is online

Users browsing this forum: Google Adsense [Bot] and 32 guests