User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 25

Thread: mmf 2 is silt! - calculations per second

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    EasySite's Avatar
    Join Date
    Aug 2009
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mmf 2 is silt! - calculations per second

    I created a program that calculates and displays certain number of all possible combinations. Unfortunately, with 6 variables and 14 figures MMF are calculated tragically slow.

    For example, I created the same program in C + +
    and here is the result:

    MMF2Dev - 1000 fps (max) - 1000 calculations per second - about 2.5 hours (with luck)

    C + + app - fps X (possibly computer) - X calculations - about one/two seconds

    And now my question:

    Does the mmf is impossible to calculate faster than a 1 calculation / millisecond?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: mmf 2 is silt! - calculations per second

    What are your events?

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: mmf 2 is silt! - calculations per second

    It sounds like you would benefit from using fastloops to perform these calculations, so you're not waiting for the event list to roll around again once the frame is updated.

  4. #4
    Clicker Multimedia Fusion 2 Developer
    Jax's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    702
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: mmf 2 is silt! - calculations per second

    Also, it is bound to be slower as it is interpreted not compiled.

    What problem exactly are you trying to solve?

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: mmf 2 is silt! - calculations per second

    Quote Originally Posted by Jax
    Also, it is bound to be slower as it is interpreted not compiled.
    But the overhead of this won't be enough to turn 2 seconds into 2.5 hours. His events must be very poorly structured.

  6. #6
    Clicker Multimedia Fusion 2 Developer
    Jax's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    702
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: mmf 2 is silt! - calculations per second

    No true, I just mean that overall you probably shouldn't be doing brute force things in MMF.

  7. #7
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: mmf 2 is silt! - calculations per second

    He is only doing 1 calculation per MMF frame, my bet in an always event.
    OP what you need to do is a fastloop, see below.

    + Start of frame
    - start loop "calculate" -1 times

    + OnLoop("calculate")
    - do calculations here

    + OnLoop("calculate")
    + result has been found
    - Stop Loop "calculate"

  8. #8
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    EasySite's Avatar
    Join Date
    Aug 2009
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: mmf 2 is silt! - calculations per second

    I tried also with fastloop. Unfortunately, mmf hangs (no response). When using fastloops mmf overlooks some calculations: for example, would need to calculate 5 234 761 and the calculation is calculated, eg 4 835 332 (for here is talking about large numbers and not 1000 or 2000) if not completely mmf crashes.

    during each loop, the program must calculate some figures and classify them in the list of results by using the "string parser obiect". at this point sort takes place only in 20%

  9. #9
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: mmf 2 is silt! - calculations per second

    If you are using anything like List object then that is Windows' fault because it tries to redraw objects like List and Edit every time they have a change.
    Working as fast as I can on Fusion 3

  10. #10
    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,896
    Mentioned
    21 Post(s)
    Tagged
    0 Thread(s)

    Re: mmf 2 is silt! - calculations per second

    I've made a program that can calculate expressions up to 16 decimal places, do any Sqrt() etc command, x, /, +, -, etc, and it barely takes a second.
    Although admittedly it's around 4 layers of loops and located in an AI program.

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. Help with calculations!
    By J3sseM in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th July 2013, 12:29 PM
  2. calculations via string
    By Skyhunter in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 26th November 2012, 07:31 PM
  3. Heavy calculations
    By King_Cool in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 25th July 2012, 01:39 AM
  4. Need help here with distance calculations.
    By Ravenius in forum File Archive
    Replies: 2
    Last Post: 25th December 2007, 12:21 PM
  5. Calculate Calculations?
    By Looki in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 11th January 2007, 05:46 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
  •