How to Reduce Lag in MMM

Discuss level design, whether in general or related to your levels
Post Reply
User avatar
Pika Luigi
Posts: 140
Joined: Wed Jul 19, 2017 12:48 am

How to Reduce Lag in MMM

Post by Pika Luigi » Wed Jul 01, 2020 12:50 am

I wanted to find a list of factors that affect lag in levels for my current project. After searching, I found that no one has made such a list, and while there have been quite a few posts about it over the course of the forums, I decided to make a definitive list of all the factors that affect lag and extend loading times.

1. Large Level Size

A given. The larger the amount of rooms in a level, the more the level will lag, especially on lower end computers.

2. Animated Tiles and Backgrounds

Many a time, it has been told that animated backgrounds, such as the likes of Metal Man's Background and the Animated Flash Man tiles. Especially when building larger levels, these create a lot of lag.

3. Enemy Count

Simply put, the more enemies in room, the more the game can lag. Once again, this goes hand in hand with larger level sizes.

4. Larger Rooms

Now, this one is not as exactly tested as the other ones so far, but it seems to be a general consensus, and it makes sense in any case. Many connected screens stringed together seems to cause the game to lag and increase loading times, especially when there are multiple strings.

5. Many Global Elements

There are different objects in the game that load globally, and having many of them in a level forces the engine to load them all at once, causing lag as a result. Often times, these elements slowly stack up over time when building a stage, so being mindful of them is important. Some examples of Global Elements are Footholders and Yoku Blocks.

6. Clumped Rooms

This is my least definite point I've found, but it's been stated to have worked quite a few times. Positioning rooms apart from each other when building a level seems to reduce lag while playing. The game seems to load the rooms around the player, so moving the pieces of the stage apart and connecting them with teleporters reduces lag.


These are definitely not all the factors, as I don't know all the ways the game can lag, and I've probably forgotten a few as well, so please feel free to let me know the things I left off the list so I can add them :D
I'm-a Pika Luigi!

User avatar
Blue_Bummer
Posts: 1490
Joined: Sat Jun 22, 2019 7:38 pm

Re: How to Reduce Lag in MMM

Post by Blue_Bummer » Fri Jul 03, 2020 12:28 pm

Very helpful insight. Maybe this topic should be pinned?

User avatar
DestroyerOfDestruction
Posts: 981
Joined: Thu Oct 18, 2018 2:42 am
Location: Colombia
Discord: BigMaster#4335
Contact:

Re: How to Reduce Lag in MMM

Post by DestroyerOfDestruction » Sun Jul 05, 2020 3:27 am

Blue_Bummer wrote:
Fri Jul 03, 2020 12:28 pm
Very helpful insight. Maybe this topic should be pinned?
Done.
Crossing a dangerous river

User avatar
NMario84
Posts: 3902
Joined: Sun Jul 16, 2017 11:08 pm
Location: My House
Discord: NMario84#6935
Contact:

Re: How to Reduce Lag in MMM

Post by NMario84 » Sun Sep 06, 2020 12:44 am

How about everyone just stop making bad garbage levels, and take a lesson on level design, watch a tutorial or something.. It's not THAT hard.

I also blame the game engine for its lag, and long load times. Given that it was built on top of Game Maker Studio, which I really despise in the first place.
Image
Just a few buds hangin' out

User avatar
Mad Man
Posts: 47
Joined: Sun Jun 14, 2020 9:16 pm
Location: MadWorld
Discord: M.A.G.E#5298
Contact:

Re: How to Reduce Lag in MMM

Post by Mad Man » Tue Oct 20, 2020 3:02 pm

Here's how to reduce lag in MMM: don't make levels that are more than 100 screens unless it's absolutely necessary, also water may cause issues in said screen amounts which can seriously fuck with frames.
I'm just a guy who tests things out on this game, trying to take this whole "moderator" thing over here.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests