User Tag List

Results 1 to 6 of 6

Thread: How to better optimize running?

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)

    Join Date
    Jan 2016
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy How to better optimize running?

    hi guys.
    My project is coming to end, but I have to re-optimize it. cause I met the Out of Memory curse.Out of Memory when building the application.
    When running.I noticed that a window would tell me how many objects I ran and how much memory I used.This is system ram or GPU ram?cause i used 1.7G really bad i know.
    I tried to delete the used object in the code, but it is still 1.7g and tried activate "Load on Call Object" in the Active Object Runtime settings and Disable "Create at start".Create when need .Delete when unuseful.it's work.But when I run to the end of the project, the memory will continue to increase rapidly.Just like I have never deleted them.
    I wrote a code that deletes everything in the project when my character touches object A. But the memory is still not much changed.
    I narrowed down the background image and used jpeg to make memory usage less, which is useful. But I need more methods.
    I fell into a bottleneck, I guess. And I sincerely hope for your guidance.THX.

  2. #2
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Christian_Wheel's Avatar
    Join Date
    Mar 2010
    Location
    Los Angeles
    Posts
    405
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I don't have much advice for you, but using jpeg won't reduce memory usage - Any imported image is converted to a BMP-like pixel array by Fusion, so image compression is discarded. The 1.7g refers to system ram, and as Fusion is a 32-bit application 2gb is the max so you're really pushing it. The best thing you can really do is reduce the number of Active Objects.

    If it gets too bad, it's not unheard of to split your project into a few projects and have an EXE launch the other EXEs as players progress through your game. Of course you'll need to save state information between apps in an INI or something.

    Good luck!

  3. #3
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleFirefly 3D Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    fnkycoldmadeanr's Avatar
    Join Date
    Jul 2017
    Location
    Melbourne, Australia
    Posts
    323
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Search the forum for power of 2 image size

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)

    Join Date
    Jan 2016
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    YEP.I know.I have started using this method.

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)

    Join Date
    Jan 2016
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know how fusion2.5 looks at another problem. When you delete some objects, they seem to never disappear from memory.They are just cant see

  6. #6
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Christian_Wheel's Avatar
    Join Date
    Mar 2010
    Location
    Los Angeles
    Posts
    405
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Fusion keeps objects in memory in case you undo the delete. Save your project, close and reopen it, see if you notice the decrease then.

    I've noticed this when removing sound files, they don't disappear from the sounds list until you close your project and reopen it.

Similar Threads

  1. how can i extension for android?
    By naiking in forum dotNet Scripting
    Replies: 0
    Last Post: 20th December 2018, 02:05 PM
  2. How to calculate the direction?
    By DragonWing in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 23rd October 2012, 03:04 AM
  3. Isometric Tetris?
    By webwolf in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 29th November 2011, 01:48 PM
  4. My mfa is 322 mb! Please help me optimize!
    By Aloan in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 15th June 2010, 04:33 AM
  5. Trying to optimize a rotation shader
    By Pixelthief in forum Hardware Accelerated Runtime
    Replies: 11
    Last Post: 5th November 2009, 10:17 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
  •