[Guide] Simple Lag Fix

02/05/2010 02:56 Celestial Link#1
For you idiots who still suffer from lag and haven't done these fixes, I have two methods to fix some of it. Also, before any of you pms because you're from Mabizone, I am Xenon if you have not read my signature. So don't freak out about any leeching, it simply isn't. I planned to post this guide on both EPvPer and Mabizone, just never got around to posting it here.

THIS IS NOT AN IN-GAME EDIT OR MOD, BUT SIMPLY A NICE FIX. DON'T HATE FOR IT NOT BEING FOR AN UBER MOD. THANKS ;.;

I'm really unsure if most people are aware of these fixes or not, but they go hand-in-hand as good fixes with Denagle and Leatrix lag fix. First off, the first edit we're going to do is accomplished through two methods, depending on which OS you use. I haven't tested the results on XP or below, though, since it was hard to do so on my older computer and mabi didn't work well with it, as it had a ton of lag to begin with and wasn't to be played on it. This edit is a network tweak and the part we're editing is called, MTU edit. MTU stands for Maximum Transmission Unit. Basically, it determines the maximum size for data packets that you transfer while performing an internet based task. We're going to lower it, so that you will be able to transfer packets faster at a lower size. It works very well with both fast and slow connections alike, making speed demanding tasks easier or just increasing your performance with a fast connection in Mabi.

XP/ME/9x/2000
This is a slightly more harder method, as it seems you may have to restart your computer for it to take affect and might not be available to make use of at a moment's notice. (As I said, I've been unable to test the results with this method because of my older computer with XP on it) First off, you need to download a program called TCP optimizer, which I've conveniently attached to this post. Now extract the rar, then open the exe and once it pops up, check the "custom settings" option near the bottom. Make sure the bar is set to the speed of your connection and click the box next to mtu, and enter in a number from 1400-48. I recommend 150 or so. I do not recommend you got for 50 or 48 unless you have a high-quality connection, around B+-A+ (to see rating, do a ping test at pingtest.net). If you use 48 to 50, you must already have Mabi at the login screen and must not be using any other internet application, because in most cases.. doing so will cause your internet connection not to work until you reset your mtu to 1500 and disable and re-enable your connection in the network connection settings. In fact, I recommend you already have mabi at the login screen when you are doing this, otherwise, it might take longer to boot up Mabi because the edit decreases throughput speed (page loading speed and such). Hit apply changes. Now, it will ask if you wish to restart, click "Restart Later"/No. Then log into your mabinogi account and play. Check your weapon/tool changing speed now.. if it is faster than before, it has worked. If not, that means you actually need to restart your computer before the mtu change will take affect. And if so, you will need to change your mtu to a higher level, around 150 or higher, if you used 50-48 mtu. You will not be able to make a connection to your network because your thoroughput will be too slow to hook with the HTTP end. I am unsure about this on high-end connections, as I have not crashed with 50-48 mtu yet.

Note: Could someone post their results on the end without restarting so I could make the edit if it does not work?

Vista/7
This method is much more simple and efficient, as it can be definitely performed without restarting your computer and with a simple command line entering. Make sure you are at the mabinogi login screen already, then find cmd.exe through the search option in your start bar or by going to all programs -> accessories -> command prompt. Make sure to right click and select "run as administrator" first. Now that you have it open, there are two differences in the command you enter depending on whether your connection is wired or wireless.

Wired

Wireless

Now, after you finish, if set at mtu 50-48, make sure Mabi is the only application running that uses your network connection, then log in. It may take a while depending on your connection's speed and the set mtu. You should notice an increase in your weapon switching speed, your bolt shooting speed, ranged shooting speed, and sometimes, even your visual lag. Also, sometimes, you may need to adjust your mtu setting to something higher than 50 if at that level for it to properly load some characters or your skill bar. As long as you don't move from area to area or change channels, the mtu you entered and set it as before logging in should stay in effect even though you changed it again. The changing is simply to allow for easier loading of everything and may not be needed for everybody, but is recommended if you come into the game and nobody is in town and your skill bar is taking a while to load.

Note: 368-150 is the recommended level for mtu, anything lower can result in unwanted server lag issues sometimes, where you will freeze in place and won't be able to do anything or connection crashes depending on the quality and speed of your connection. Also, I am unsure if this fix is available in macs or not. Normally, if you are on a mac, you shouldn't be playing mabi.

Fix 2
Ah, now that we're done with mtu edit, it's time to do the "Take back your bandwidth" fix. You may not be aware of this, but the default setting for windows is to reserve 20% of your bandwidth via a windows policy. With this edit, we're going to take that back and possibly increase your ranged accuracy/effectiveness and thoroughput speed on the internet. Results may vary, though, as I'm unsure of how well it works for others. So far, it has enabled me to do in-range SoG by timing my shot and enabled me to hit at lower percentages more often than usual. Okay, once more, the way this edit is accomplished is done in two different manners depending on your OS. I have no idea how to perform this edit or if this setting is in effect in an OS older than XP.

XP Professional
Note: Make sure you are on an administrative account before performing this edit.

Go to Start -> run, then type in gpedit.msc and click okay. It should bring up a small window called Group Policy Editor. Within this window, navigate to Local Computer Policy -> Computer Configuration -> Administrative Templates -> Network -> QoS Packet Scheduler. Now at the right pane, there should be something called Limit reservable bandwidth, double click it. A window will pop up, and there will be options to enable, disable it, or configure the limited amount. Either click disable or lower the 20% amount to 0% and click okay. You should have your bandwidth back now. Now, if you cannot find it or are on a different version of XP, then follow the steps in the next portion of the guide to try to edit it with a different method. (It is untested in versions besides Vista, so results may vary once more)

Vista/Other versions of XP/7
Open run.exe via the start menu by either clicking it, searching for it, or navigating to All Programs -> Accessories -> Run.exe. Now, type in regedit in the run box and click ok. It should bring up the Regedit.exe. In Regedit, navigate to “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Wi ndows”. In the left pane, right-click on Windows and create a new key called “Psched“, then right click on the blank white part in the right pane and create a new “DWORD” entry by clicking the "New DWORD" option. Name it “NonBestEffortLimit” and set the value to zero to disable the reserve bandwidth.

If all works well, your speed should increase a bit and your ranged efficiency within mabi should work well. If you do not see a change in anything, try rebooting and see if performance is improved any.
02/05/2010 03:13 Theri#2
Hadn't heard about the QoS bandwith limiting in windows before, reading up on that in google. I think I'm going to have to write myself a script to edit some registry keys for future use, automated tweaks ftw <.<

Thanks for sharing :p

Wish we could get the kind of networks in the US that other countries have but then again we're so much larger I doubt it'll ever happen. Then mtu tweaks and such wouldnt really ever be necessary to improve some game lag.
02/05/2010 03:31 Uncreative.#3
YOU BROKE MY COMPUTER.
WHAT THE FUUUUUUUUUUUUUUUUUUUUUUUUUU--- Nah, jk.
02/05/2010 03:40 Celestial Link#4
If I did, you wouldn't be posting now. =3
02/05/2010 14:29 Aldeel#5
Oh great D: Give EVERYONE the lag-fixes they hardly know about ;; gg
02/05/2010 16:46 fenrir2037#6
^lol wut? Hater? .-.
02/05/2010 18:56 Theri#7
Quote:
Originally Posted by Aldeel View Post
Oh great D: Give EVERYONE the lag-fixes they hardly know about ;; gg
Are you for real?
02/05/2010 20:59 darockiscookin#8
Thank You Celestial now im able to keep up with the west coast players. I lowered the MTU to 180 and Mabi is like 3 times faster but my regular internet speed is 8 times slower. Is this suppose to happen?
02/05/2010 21:14 Theri#9
Typically if you lower your mtu your web browsing will go slower. You can always switch back and forth.
02/05/2010 21:33 Celestial Link#10
Yes, if you had read through the guide properly, you would have noticed that I stated.. "When you decrease your mtu, you decrease thoroughput speed". Mtu stands for Maximum Transmission Unit, or the maximum size of the data packets you send through the net. When you decrease the mtu, you decrease the maximum size of data you send and receive. Which will result in compressed speeds and less amounts of data being sent at one time. So, your download and upload speed is decreased. And if you're thankful, +thanks me. The button is there for a reason. Also, mtu edit gives you speed, but not the complete laglessness and efficiency you get from being on the west coast. Trust me, if you lived in Cali, your ranged attack at even novice rank is pretty accurate with the right connection. I know somebody with epic speed with a less than 2 mb dsl connection and they live in california, near Nexon. You should see him spam when he's in pvp... but he's also an ass and an elf (typical), so yeah.
Note: If you need more fixes, google some up. Look on youtube and in other places, you might find something new.
02/05/2010 22:27 crespoking#11
Would connecting to a router be considered wireless? because my internet on my other laptop just stopped working.o.o;;
02/06/2010 01:35 Halfslashed#12
Wired = Connecting a cord to your computer

Else, it's wireless.
02/06/2010 03:40 Uncreative.#13
Wiring your computer to your modem/router is better than having it wireless. Kills about 1~2 ms ping.
02/06/2010 07:42 Bondlie#14
1~2 totally makes a difference when you're constantly at 30.
:|
02/13/2010 06:28 omgjesus#15
you do know that reducing latency actually increases stress load on the mabi servers. thus creating more lag in an attempt to get a better connection.

i think i read it on the nagle wiki page but what it does is create more network congestion. meaning that it takes more power and bandwidth on nexons part to speed you up and just think if your sapping bandwidth and 100k other people are to then the out come will still be lag no matter if you got nagle dissabled or not.

its actually a waste of time i renalbled nagle on my comp and its running faster now then when i dissabled it.


heres the wiki. Nagle's algorithm - Wikipedia, the free encyclopedia

and dont think im flaming u im just saying that if everyone does this nexons gonna get all like WDF we lagin so much from
:O