Jump to content

Tips to reduce lag on a crowded server


Axel

Recommended Posts

Our server went over a peak of 205 players, and has constant 150, and lag has become a serious problem. What are some tips you, reader, can give me to reduce lag, loading time, etc on a crowded sever with lots of objects, vehicles, etc?

  • Sad 1
Link to comment
  • MTA Anti-Cheat Team

It's not only about elementdata, the case you describe can be a sign that your gamemode/scripts were just coded inefficiently, maybe not by very skilled scripters. You can achieve functionality of the desired script in several ways, using different kind of techniques, and one can be more well-thought out than the other approach. A good scripter won't start writing immediately, but will draw a plan or design an efficient core which he'll work from in that moment to add all functionality.

Sometimes it's said; development is 60% planning/thinking it out and 40% actively writing. If you first brainstorm about effective approaches and then pick the most performance friendly one, you'll not easily end up with the problem you are encountering now.

@Axel to resolve this I advise looking in performancebrowser (or ingame ''ipb'' default resource) to see which resource is peaking in usage with that amount of players, or just regularly, so you can make a list of culprits. Then take a look at each of those resources and identify the structural problems, so you can improve its code efficiency (you can call this ''duct taping'' already doomed resources, or just rewrite chunks using different and optimized techniques, then re-check on IPB/performance browser with the updated version if those rewritten parts were at the heart of the performance problem.. for some stuff you see in the code you can just know it plays a role in the slowdowns though)

  • Like 2
  • Thanks 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...