User Tag List

Results 1 to 9 of 9

Thread: What are some ways to reduce lag?

  1. #1
    Clicker Fusion 2.5
    Jocastus's Avatar
    Join Date
    Jan 2008
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What are some ways to reduce lag?

    Maybe it's just my own inexperience, but every time I make a game with MMF2, I have to work really hard to avoid obvious lags in gameplay.

    Sometimes it's too many active objects or too many layers, but seriously, I'm using only a small fraction of the resources that a professional game might, so what gives?

    Why can't I have more than a dozen or so enemies on a frame with maybe 5 layers before my framerate drops to about half speed?

    Is there something obvious I'm just not getting? I swear, even other users of MMF2 seem to have less trouble with this than me.

  2. #2
    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: What are some ways to reduce lag?

    That does sound like a strangely low number of things you're doing before you get slowdown... can you describe roughly what you're doing with it, though? Any complex fastlooping or scaling/angle changing?

    If many collisions and general game events happen on a layer above 1, you may get slowdown from that, because the collision mask for layers above 1 have to be calculated in realtime.

    You could try using the hardware-accelerated runtime (see the HWA forum) to see if that helps.

  3. #3
    Clicker Fusion 2.5
    Jocastus's Avatar
    Join Date
    Jan 2008
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What are some ways to reduce lag?

    Alright here's what I've been doing lately: http://www.mediafire.com/?iytld22xfdm

    Please bear in mind that this is just a couple frames of testing for a potential game, so there's lots to be finished or deleted. Consider this a brainstorming space--even the sprites are mostly just placeholders.

    To play:
    Press the arrows to move.
    1 2 3 and 0 re-size the screen.
    Esc exits.
    F2 restarts.

    Open up the debug window while you play and watch the Frame rate drop from about 60 to about 30.
    There's another frame to the west of the start point, which is pretty empty and runs more smoothly, so you can compare.

    There are global events, frame events, and most moving objects have events in them too, if you're trying to find my code.

    Anything you can point out would help a great deal.

  4. #4
    Clicker Fusion 2.5 Developer

    Join Date
    Nov 2008
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What are some ways to reduce lag?

    No slowdown here.
    Running on standard.

    Are you sure you have the latest version of MMF?
    Latest version of all extensions?

    Nothing hogging up all the memory in your computer?

    How much RAM do you have? What Operating System?

  5. #5
    Clicker Fusion 2.5
    Jocastus's Avatar
    Join Date
    Jan 2008
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What are some ways to reduce lag?

    Running version 248 on Vista on my laptop. 2GB RAM.

  6. #6
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What are some ways to reduce lag?

    No Slowdown here, 249 Windows 7 4GB RAM

  7. #7
    Clicker Fusion 2.5 Developer

    Join Date
    Nov 2008
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What are some ways to reduce lag?

    try updating to v249. See if that fixes your problem.

  8. #8
    Clicker Fusion 2.5
    Jocastus's Avatar
    Join Date
    Jan 2008
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What are some ways to reduce lag?

    Alright, I'll not worry about it for now. If I ever finish a game that people complain is too slow, then I'll re-visit the issue. Thanks.

  9. #9
    No Products Registered

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

    Re: What are some ways to reduce lag?

    You probably have a slow computer. Time for an upgrade.

Similar Threads

  1. Action loop possibility to reduce slowdown?
    By Kid_Roleplay in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 8th March 2013, 02:33 AM
  2. Unable to reduce my app size
    By mobichan in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 17th May 2012, 06:49 AM
  3. Is it possible to reduce the Array object size?
    By BREK in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 8th May 2009, 12:10 AM
  4. Fraction Reduce
    By LB in forum File Archive
    Replies: 0
    Last Post: 10th March 2008, 10:22 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
  •