User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Thread: Looping in HWA - slower

  1. #1
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jun 2006
    Posts
    888
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Looping in HWA - slower

    I have made some tests and the results are strange:

    600 moving objects with alfa channels:
    HWA = 50 FPS
    Standard = 32 FPS


    With simple loop that set each objects val A to 1:
    (spread value, then if that value=loopindex...)

    HWA=21
    Standard=19


    Isnt that pretty strange? It slows down much more than standard and difference between HWA and standard gets from 20 to 2 FPS.


    You can check on attached file. Just remove (or later add) action Set alt.value A to 1 in the loop condition and check both display modes.
    Attached files Attached files

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looping in HWA - slower

    has nothing to do with HWA, though. They both decrease in performance, but HWA just happened to already have the huge boost in performance, so it'll keep being a tad better than standard.

    I'm not sure what the expected outcome would be though, and I can't look for errors in the file since it is removed.

  3. #3
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jun 2006
    Posts
    888
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looping in HWA - slower

    With HWA, loops slow it down by 30 FPS...with standard only by 12-13.

    Mecha, in other words: using fastloops causes that HWA runs as slow as Standard.


  4. #4
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,538
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Looping in HWA - slower

    The limitation on fast loops being slow has to do mostly with the MMF2 parser, which is identical to all other klik products. The game treats a fast loop by reading all loop events irregardless of what loop they are in, and comparing the string result for their loop index. So running large amounts of loops will cause an exponential slowdown; it will read X events Y times, for X*Y complexity. I wrote something about it here, with how to overcome this limitation:
    http://create-games.com/article.asp?id=1937

    Bear in mind that running any large amount of loops inside an MMF2 project will cause slowdown, irregardless of what it does. If your project needs to work upon a very large number of elements and doing it via fast loop would be too slow, I suggest looking into using an extension like the xLua object, which can allow you to do this outside the boundaries of MMF2.

    So thats a limitation of the speed of the MMF2 structure. HWA does not change the way MMF2 reads events, it purely speeds up how it draws objects onto the screen. Graphical things, like apply effects to objects or rotating sprites or displaying more sprites can all occur faster. Computational things like sorting elements in a list, go at the exact same speed.

  5. #5
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jun 2006
    Posts
    888
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looping in HWA - slower

    Pixelthief: of course, that is why I started this thread - looping should be the same, but why HWA then slows down much more than Standard? With ran loop in the example, both run on almost same speed.

  6. #6
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Looping in HWA - slower

    Probably because when looping, MMF doesn't redraw, so you don't profit from HWA's faster drawing.

  7. #7
    Clicker Multimedia Fusion 2
    BrandonC's Avatar
    Join Date
    Jun 2006
    Location
    PA, USA
    Posts
    931
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looping in HWA - slower

    Graphical and processor speed both have seperate impacts on the application. The game will only go as fast as the slowest one, so if loops are causing MMF2 to come slower in processor then graphical, then irregardless of HWA, it's going to be however fast the processor is able to keep up.

  8. #8
    No Products Registered

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

    Re: Looping in HWA - slower

    Yep exactly as BrandonC said above. HWA will result in drawing things much faster on the screen, but things like loops are reliant on CPU not GPU

  9. #9
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looping in HWA - slower

    Quote Originally Posted by Blizna
    With HWA, loops slow it down by 30 FPS...with standard only by 12-13.

    Mecha, in other words: using fastloops causes that HWA runs as slow as Standard.
    Yes, fastloops run at the same speed as it would in standard, because it relies on the CPU, not the GPU (as already mentioned).
    HWA just drops by the double fps because it already has the double of fps to give.
    Which is what I already stated in my first post in this topic

  10. #10
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,538
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Looping in HWA - slower

    If standard is running faster instead of the 'same speed' or slower, then there is indeed something to look into; the HWA components must be taking up some processing time.

    So yes you are definitely on to something, i'll take a look later

Page 1 of 2 1 2 LastLast

Similar Threads

  1. iPad 1 & iOS 5 slower
    By mikec in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 30th November 2011, 09:34 PM
  2. Slower fast loops?
    By ChrisBurrows in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 15th November 2011, 12:12 PM
  3. Java is slower?
    By RickyRombo in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 20th May 2009, 02:35 PM
  4. Under what situations is HWA slower then Standard?
    By Taofeld in forum Hardware Accelerated Runtime
    Replies: 22
    Last Post: 17th April 2009, 10:47 PM
  5. Game gets slower and slower...
    By Mantoid in forum Hardware Accelerated Runtime
    Replies: 14
    Last Post: 1st April 2009, 02:47 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
  •