User Tag List

Results 1 to 4 of 4

Thread: Memory allocation per app (Android)

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)

    Join Date
    Jun 2014
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Memory allocation per app (Android)

    Is there a maximum amount of memory (RAM) that a app can use when running on android? I've searched on the net and have read that older devices could use only 16mb then this changed to 24mb or 32mb for newer devices. I've also read that a app can use the total amount of free memory on the device. I don't know which of these is the right answer.

    When developing a app for android is using the fusion debugger an accurate way of determining how much memory will be used? I notice that a new and empty project uses 37mb, that's before any objects and conditions.

    Also, is there a way to load frames or other data in stages to reduce the amount of memory? For example load each level and its objects when they are needed rather than load everything at once.

    Any info appreciated.

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)

    Join Date
    Jun 2014
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nobody knows if there is a limit on the amount of RAM for a app? This is important because if there is, 37mb is lost to the fusion runtime before any app is even made and this is more than the 24mb and 32mb max RAM quoted amounts.

  3. #3
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,784
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    You are talking about the heap the VM heap from device , yes each device have it own heap size that depends on manufacturers, device hardware , android version but they are like you mentioned above.

    here is an application that will check the VM size https://play.google.com/store/apps/d...eapsizechecker

    normally you don´t need to touch the heap, unless you have a lot numbers of variables and object, do you feel you need it?

    comment from others

    "The heap (in Java) stores dynamically allocated variables, such as objects. when the heap is running low on memory, the JVM will run garbage collection. Garbage collection uses processing cycles, which will slow down your phone. In case you're wondering, the other place in memory where things are stored is called the stack, which stores arguments and parameters."
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)

    Join Date
    Jun 2014
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks FVivolo. There's no way to set the heap from fusion is there, or is this done automatically?

Similar Threads

  1. Memory usage for ios and android
    By rom in forum Fusion 2.5
    Replies: 3
    Last Post: 10th October 2014, 10:43 PM
  2. How can I debug memory utilization during runtime in Android
    By yuelric in forum Android Export Module 2.5
    Replies: 2
    Last Post: 19th September 2014, 07:13 PM
  3. Memory for Android
    By Decoamorim in forum Android Export Module Version 2.0
    Replies: 3
    Last Post: 10th February 2014, 01:04 PM
  4. Memory locked from allocation
    By Phi in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th December 2012, 02:29 PM
  5. Replies: 13
    Last Post: 23rd December 2011, 07:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •