User Tag List

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

Thread: A Way to Speed up Fast Loops?

  1. #1
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    A Way to Speed up Fast Loops?

    It seems even if I have a fastloop running in the background doing absolutely nothing, my game still lags when I get to upwards of 300+ iterations. Is there any way to alleviate this?

    I should clarify that I'm using I think Nifflas' example on how to use a platform movement object for multiple objects at once, so I have to run a fastloop for each object constantly.

  2. #2
    No Products Registered

    Join Date
    Feb 2012
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I read somewhere that for each loops are supposed to be faster.

  3. #3
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah they are because you can control how many for each loops iterations are created, but I'm making this for XNA in the end and I read ForEach isn't compatible with the XNA exporter.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Corlen View Post
    Yeah they are because you can control how many for each loops iterations are created, but I'm making this for XNA in the end and I read ForEach isn't compatible with the XNA exporter.
    As far as i heard, the ForEach should be made compatible with XNA ( after release of XNA ).

  5. #5
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,197
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    If it isn't compatible now, it will be in the next version. No reason as to why it wouldn't be compatible asides from it just hasn't been done yet.

  6. #6
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Corlen View Post
    fastloop running in the background doing absolutely nothing
    It's doing something.
    I have to run a fastloop for each object constantly.
    See. It's doing something. What is it doing?
    Is there any way to alleviate this?
    Yes. Figure out when you need it to fastloop, and then only fastloop when needed. I can almost guarantee you that you don't need to be running the fastloop at all times.

  7. #7
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's all good and well Konidias, but I meant even when the fastloop isn't applied to anything and is simply running in the background, it still slows the game down. I need to have the fastloop running constantly because I'm using Nifflas' example for the PMO to be applied to multiple objects.

    At any rate, I'm just going to use ForEach and hope by the time I can buy the XNA exporter and release the game, the ForEach will be compatible with XNA. ForEach runs faster because I can force it to apply iterations only to objects on the screen rather than all objects in the entire frame.

  8. #8
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Empty fast loops will not effect your framerate.
    Attached files Attached files

  9. #9
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's weird, I ran those 10,000 fastloops always and it was fine but when I run an empty fastloop in my current game, it slows it down after 300+ iterations.

  10. #10
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Well, unless you feel like uploading your mfa, I guess this is a dead end.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Fast Loops
    By Verbage in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 12th April 2012, 03:07 PM
  2. Fast Loops vs Grouped Fast Loops vs ForEach
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 6th August 2010, 12:22 PM
  3. Fast loops?
    By BrandonC in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 21st March 2009, 09:04 PM
  4. How to Speed Up Fast Loops
    By Pixelthief in forum Articles
    Replies: 4
    Last Post: 7th March 2009, 09:56 PM
  5. Help with fast loops
    By BenMo in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 29th December 2006, 05:48 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
  •