User Tag List

Results 1 to 6 of 6

Thread: Ram QuestionMMF2.0

  1. #1
    Clicker Fusion 2.5 Developer
    00J's Avatar
    Join Date
    Jun 2006
    Location
    Virginia, USA
    Posts
    1,510
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ram QuestionMMF2.0

    Hey, does anyone know the answer to this question?

    Say you have a bunch of frames/levels, and each level is roughly 49mb in ram usage, and during the frame this usage will increase to maybe 60mb or so.

    Does MMF give this ram back to Windows if you go to another frame.

    I'm wondering if the ram gets used up cumulatively or will your applications have access to that amount of ram for every frame?

    If my question makes sense.

    I'm finishing up a game and just wondering the levels each come in pretty heavy on the ram usage side.

    For example the space travel frame uses up around 19mb, and one world frame uses up 49mb on my last play of it.

    Thanks!

  2. #2
    No Products Registered

    Join Date
    May 2007
    Posts
    366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Ram QuestionMMF2.0

    Does MMF give this ram back to Windows if you go to another frame.

    In my experience, sometimes it does, sometimes not(maybe it depends on the type of objects, and if they are global, etc) Not sure, stick a button in your 49 MB level that brings you to a frame that is empty except for a button which returns you to the 49 mb one...and watch the debugger...

  3. #3
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Ram QuestionMMF2.0

    Does MMF give this ram back to Windows if you go to another frame.
    Yes, MMF2 frees unused memory and objects when you go to another frame.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on
    LIJI's Avatar
    Join Date
    Jun 2006
    Location
    Israel
    Posts
    1,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Ram QuestionMMF2.0

    All built in objects and extensions (Unless the extensions are badly programmed) free the memory when they're destoryed. (Leaving frame == destroyed)

  5. #5
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Ram QuestionMMF2.0

    To check if an object free the memory when it's destroyed, put this object on a frame, put some events to use it at start of frame, run the application, and press F2 several times. You'll see in the debugger if the memory increase or not.

    With this test, you'll see if there is a memory leak in the tested object.

  6. #6
    Clicker Fusion 2.5 Developer
    00J's Avatar
    Join Date
    Jun 2006
    Location
    Virginia, USA
    Posts
    1,510
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Ram QuestionMMF2.0

    Thanks Yves!
    Thanks for the clarification everyone.


    Cool so I was pretty sure the Debugger was showing the actual memory being used for the entire application on the frame you were on, but I just wanted to be sure what I was seeing was right.

    I guessed that if two frames showed 49mb and I went from one to the next, the last frame i went to should show 98mb if the ram wasn't freed.

    Thats why I love the debugger, it was a much needed improvement, to show under MMF's hood.

Posting Permissions

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