User Tag List

Results 1 to 10 of 10

Thread: Saving CPU

  1. #1
    Clicker Fusion 2.5+ DLCMultimedia Fusion 2HTML5 Export Module
    Kentronisk's Avatar
    Join Date
    Nov 2011
    Posts
    211
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Saving CPU

    My last project lagged. I just had too much stuff going on. And since Im gonna start all over again, Im gonna save as much as possible.

    A revolusion for me last time was replacing my fastloops with ForEach loops. Is this object better for other stuff too? And do anyone have any other tips about common stuff to save CPU use?

  2. #2
    No Products Registered

    Join Date
    Aug 2006
    Location
    Italy
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you explain me in with way you use the code about ForEach loops?
    I not understand where is this ForEach loop functionality.
    Thanks

  3. #3
    No Products Registered

    Join Date
    Dec 2006
    Posts
    319
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you sure you need to restart? You can just try to cut fat and optimize what you already have. E.g. keep events in groups and activate/deactivate according to what you need. Also make sure you keep your fast loops as light as possible. For example if there is a value that is a sin conversion that is the same for 1000 loops, instead of calculating it 1000 times, just do it once and then keep it in a global value to retrieve from.

  4. #4
    Clicker Fusion 2.5+ DLCMultimedia Fusion 2HTML5 Export Module
    Kentronisk's Avatar
    Join Date
    Nov 2011
    Posts
    211
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did not plan it through last time, I got so many new ideas :P And I learned from a lot of mistakes. I have changed a lot, so in many ways its a new game.

    And the ForEach loop can be used for.. something.. I think in my previous project, at the beginning, I had all the monsters moving with a fastloop. This made the game run slow as sh*t. By replacing these events with ForEach loops, it ran smoother than ever again.

  5. #5
    No Products Registered

    Join Date
    Aug 2006
    Location
    Italy
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Someone has an example with ForEach loop?

  6. #6
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    There are two examples that are supplied with the For Each Object. They are located in the example folder in the MMF Folder.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  7. #7
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    My company hosts an UltraCode service, where a user will optimise your MMF2 code for you, if you want to try that out send your mfa to ultracode@dark-wire.com

  8. #8
    Clicker Fusion 2.5+ DLCMultimedia Fusion 2HTML5 Export Module
    Kentronisk's Avatar
    Join Date
    Nov 2011
    Posts
    211
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, that sounds cool! But you arent doing that for free?

  9. #9
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    Depending on the number of optimisations, it's free or very cheap

  10. #10
    Clicker Fusion 2.5+ DLCMultimedia Fusion 2HTML5 Export Module
    Kentronisk's Avatar
    Join Date
    Nov 2011
    Posts
    211
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cool Ill remember it

Similar Threads

  1. iOS INI Saving?
    By XStar in forum Multimedia Fusion 2 - Technical Support
    Replies: 30
    Last Post: 11th August 2012, 05:00 PM
  2. saving
    By TheCrimsonTaco in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 14th April 2012, 08:32 PM
  3. Ini++ saving
    By FlinkGigitty in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 25th April 2010, 10:05 PM
  4. Saving
    By Klagmar in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 28th November 2009, 01:20 PM
  5. saving
    By Pritchy96 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th August 2008, 04:39 AM

Posting Permissions

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