Lag Issue Solved!

oliverw92

Retired Administrator
I've spent the last few hours trying to work out what has been causing the lag and crashes, and I have finally managed to solve it - Minecart Mania has been giving us all these issues.

I have removed McMania and all it's plugins until a better version is released that doesn't cause so much lag. Apologies to all those who have set up minecart networks using McMania, but the insane amount of lag it was causing is just not acceptable.

Since I know some of you like statistics, here are some for you:
  • With McMania and all its plugins enabled - server clock error: -72%
  • With McMania core only - server clock error: -45%
  • Without McMania at all - server clock error: -1.5%
To explain what that means - with a 72% clock error, every 5 seconds of server clock time takes 18 seconds of real time to process (relatively).


Happy New Year :)
 

Pikabuzz1

One day I went to Lidl
Thanks Oli. Yet another job well done by The Genius Cow!

P.S. Happy New Year to you too! :D
 

PD400

<3
Does this mean that we could possibly bring back XP farms? In my opinion, it seems like they wouldn't actually have any more impact than a regular mob harvester.
 

Marine05

Server Moderator
PD the thing with that, the regular mob harvesters killed mobs as they spawned, the xp harvesters just build up massive amounts of mobs and force them into a 1x1 area.
 

oliverw92

Retired Administrator
Does this mean that we could possibly bring back XP farms? In my opinion, it seems like they wouldn't actually have any more impact than a regular mob harvester.
No, XP farms are an entirely different matter
 

SgtSpike

Site Admin & Server Owner
Staff member
PD the thing with that, the regular mob harvesters killed mobs as they spawned, the xp harvesters just build up massive amounts of mobs and force them into a 1x1 area.
On top of that, forcing a bunch of mobs into the same area causes a problem of exponetial proportions. If two entities are forced into the same square, they try to force each other out of said square (it's how we push people off of cliffs when they are AFK). So there would be 2 calculations to be made for an interaction between two entities. But if 3 entities are in the same square, they each try to force each of the other two out. So that's 2 calculations per entity, or 6 calculations total. If 4 entities, then 3 calculations per entity, or 12 calculations total.

If you have 30 entities in the same square, then 29 calculations per entity would need to be made, or 870 calculations.

I don't know how many times Notch programmed these calculations to be made per second, but hopefully you can see how it would cause more problems than a simple harvester.
 

DrMadFellow

I'm out, come find me elsewhere.
*log in to see this
*think... Wait loader has been saying this for months and oli always told him he was wrong..
*see post above me.
*Literally laughing out loud.
 

PD400

<3
Once an updated version is out, will we try it again? It does add some fun mechanics to minecarts, which are basically otherwise useless.

In response to Dr, I would like to point out Loader was saying this with the belief anyone who used it were "filthy little cheaters".
 

Marine05

Server Moderator
yea, also remember that loader had been saying this before the bug was even there that caused the lag. loader likes trains. period. And if the updated version doesn't lag/cause other issues PD, we're still hoping to have it back due to the many things it adds OTHER than just the ability to make stations (think of the pyramid challenge.)
 
Top