User Tag List

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

Thread: How To NOT Lag?

  1. #1
    No Products Registered

    Join Date
    Oct 2009
    Posts
    480
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How To NOT Lag?

    While working on a game I noticed after a certain amount of enemies were created the game started to lag, how do you get rid of lag? Do you increase the framerate or something?

    -Thanks, Variant

  2. #2
    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,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: How To NOT Lag?

    Try a timer based movement if it is a scrolling type game. The timer system works the same for all computers.

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

  3. #3
    No Products Registered

    Join Date
    Oct 2009
    Posts
    480
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How To NOT Lag?

    I don't understand what you mean.

    -Thanks, Variant

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: How To NOT Lag?

    Code more efficiently? There's no simple solution for that.

    You could check out HWA which should increase your FPS dramatically, but it's not compatible with some extensions.

  5. #5
    No Products Registered

    Join Date
    Oct 2009
    Posts
    480
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How To NOT Lag?

    First of all what in the world does HWA stand for??

    -Thanks, Variant

  6. #6
    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,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: How To NOT Lag?

    variant, by chance do you have the MMF Tech Manual from my site? There is an explanation for timer based movement. And I agree with Looki.

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

  7. #7
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    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)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: How To NOT Lag?

    Quote Originally Posted by variant
    First of all what in the world does HWA stand for??

    -Thanks, Variant
    Hardware Acceleration. Currently in beta, you can download it from the forums.

    But if I had to guess I would say its most likely to just how you're coding something. Could be repeatedly creating an object because you didn't add a limit like "only one action when event loops". HWA could help if its just because you have tons of objects on the screen at once, but first I'd make sure it isn't a mistake in your events when creating or shooting an object.

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: How To NOT Lag?

    Hardware-acceleration. Your graphics card will render the actives, counters etc. on the screen, that's what 3D games do, too.
    Install it.
    Open your mfa.
    Go to the application properties => runtime options.
    Change the display mode from Standard to Direct3D 9.
    That's it.

    Note that some extension like Lens are not compatible.

  9. #9
    No Products Registered

    Join Date
    Oct 2009
    Posts
    480
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How To NOT Lag?

    No I'm afraid I haven't. I feared it would come to that. It looks like I may have to remake my game engine.

    -Variant

  10. #10
    No Products Registered

    Join Date
    Oct 2009
    Posts
    480
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How To NOT Lag?

    Quote Originally Posted by Looki
    Hardware-acceleration. Your graphics card will render the actives, counters etc. on the screen, that's what 3D games do, too.
    Install it.
    Open your mfa.
    Go to the application properties => runtime options.
    Change the display mode from Standard to Direct3D 9.
    That's it.

    Note that some extension like Lens are not compatible.
    I will do that as soon as I finish and backup all my projects.

    -Variant

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •