User Tag List

Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 25

Thread: mmf 2 is silt! - calculations per second

  1. #11
    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

    try to do something like this for yourself:

    40 different numbers on the list, 8 numbers of components (eg 234 + 1534 + 3456 +...+...+...+...+...) course, the program is to calculate all possible combinations of numbers for 8 of the 40 (Just add these numbers) in addition to a separate list notes the results of all combinations is exactly the sum of: 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000th

    but I propose to use Newton's formula to even know how many of these loops to be. (The formula for the number of combinations)

    It's just part of the task should execute the program at a loop.

    Programs written in C + + do it without a problem

  2. #12
    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

    The number of loops should not cause crashes on mmf. I would say its something to do with your events, or you are using a windows object as mentioned by LB which causes massive slowdown.
    Maybe you should upload an example so we can check it out?

  3. #13
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Saml's Avatar
    Join Date
    Jan 2009
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: mmf 2 is silt! - calculations per second

    Yes, please do!

  4. #14
    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

    Here is example with some events of my app (version using loops)
    http://easy-site.pl/appz/examples/slit example.mfa

  5. #15
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Ryan's Avatar
    Join Date
    Nov 2008
    Location
    Australia
    Posts
    1,275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: mmf 2 is silt! - calculations per second

    Your application is asking for 6 trillion (6,000,000,000,000) loops without slowdown?

    Sure C++ can do it because theres no GUI.

    It's most likely the 'add line to your results list box' that is slowing it down. Constantly modifying an input box causes slows downs... you could add to an array and output it at the end, but I still have no idea how you wouldn't cause a delay with 6,000,000,000,000 loops.

    If you use an LUA extension you'd get better speeds, but I doubt theres a program that can add trillion of items to a list box without slowdown.

    Out of curiousity, of the six trillion loops, what percentage is likely to add to the list box?

  6. #16
    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

    You can do this with 'just' 76,904,685 loops.

  7. #17
    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

    Right, well what you are doing is stupid anyway as 40^8 > 32^8 = (2^5)^8 = 2^40 > 2^32, so you can't even use an index variable to loop that high so you obviously can't do it that way.

    Second, you are using order 8-tuples instead of unordered 8-tuples, despite it being an unordered problem. And even that is a fairly inefficient way of doing it compared to what you could do but at least it'd be easily solvable.

    The other thing is: Did you actually write the C++ version? If you tried to write this in C++ it still wouldn't run fast. In fact, I tested just running your loop with incrementing a variable inside and it definitely doesn't run for a couple of seconds. So I'm thinking that the C++ code is either not working properly, or it is written differently.

    A simple C++ program will run much faster as the processor can predict what is going to happen a lot easier compared to in MMF, and so there will be massive changes. But in this case, I think it is your approach that is wrong.

  8. #18
    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,750
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: mmf 2 is silt! - calculations per second

    Maybe not "stupid", but improper?

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

  9. #19
    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

    Application I created to test the mmf. And not in order to assess whether it is stupid or not.

    I am concerned about one more thing: If during the loop, has a lot of things happen, mmf some skips . or retrieves these values are not what you need. I think that this is due to delay. And it looks like this:

    + On loop
    - Add 1 to the Global A

    + On loop
    + Global A> 549
    + Global A <551
    - Set a line (list object) is a Global A / / / And mmf write: 558

  10. #20
    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

    Here is the thing: You cannot do what you are doing in C++ in decent time. I ran my test program for an hour and it didn't complete, and that did less than your program would have to do.

    So the problem is with your program technique and not with MMF.

    Do you want help being more efficient then? Also, are the 40 numbers input specified by the user or do you know them before hand? Also, are they unique or can there be duplicates?

Page 2 of 3 FirstFirst 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
  •