* *

News

Nexon has recently updated Mabinogi to a 64 bit client. This update has broken many mods in memory patchers for the time being. The mod creators are working hard to essentially rebuild all mods from scratch, and this process will take some time. Please be patient, and stay tuned for more updates.

Keep in mind that you must register an account, and be logged in to view any content on this site.

Mabinogi Status

Erinn Timer

Time
Erinn Time 14:58
Local 01:34
Server 01:34
Moongate Prior G16 [ + / - ]
11:11 Tir Chonaill
12:22 Dunbarton
13:33 Emain Macha
14:44 Bangor
14:44 Emain Macha
16:66 Emain Macha

Ceo in days.

Price [ + / - ]
01:12 Emain Macha - Island in South Pathway
01:48 Sen Mag 5th house from West
Rua [ + / - ]
01:39 Resting
02:15 Resting

Themes





Author Topic: Lag fix compilation  (Read 16318 times)

0 Members and 1 Guest are viewing this topic.

Offline Marck

  • "This is the way the world ends, not with a bang, but a whimper."
  • Administrator
  • Honored Member
  • ******
  • Posts: 3638
  • 20 credits
  • View Inventory
  • Send Money To Marck
  • Total upvotes: 199
Lag fix compilation
« on: May 10, 2009, 06:35:30 pm »
Number 1. Disable Nagle's Algorithm.

Step:   This setting configures the maximum number of outstanding ACKs in Windows XP/2003/Vista/2008:

This is in registry editor, so make sure you have it up when doing this.

Start > Run > type regedit (Windows XP)

Windows 7:


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{NIC-id}

in services:
 

in tcpip


There will be multiple NIC interfaces listed there, for example: {1660430C-B14A-4AC2-8F83-B653E83E8297}. Find the correct one with your IP address listed. (If you aren't sure which one is the correct one to put it in, putting this in all of them doesn't hurt.) In this {NIC-id} key, create a new DWORD value:
TcpAckFrequency=1
(DWORD value, 1=disable, 2=default, 2-n=send ACKs if outstanding ACKs before timed interval. Setting not present by default).

For gaming performance, recommended is 1 (disable). For pure throughput and data streaming, you can experiment with values over 2. If you try larger values, just make sure TcpAckFrequency*MTU is less than RWIN, since the sender may stop sending data if RWIN fills without an acknowledgement.

Also, find the following key (If you can't find it, create the key yourself):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Parameters

in Software\Microsoft:


in MSMQ:

Add a new DWORD value:
TCPNoDelay=1 (DWORD value, 0 to enable Nagle's algorithm, 1 to disable, not present by default)

To configure the ACK interval timeout (only has effect if nagling is enabled), find the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{NIC-id}
TcpDelAckTicks=0  (DWORD value, default=2, 0=disable nagling, 1-6=100-600 ms). Note you can also set this to 1 to reduce the nagle effect from the default of 200ms without disabling it.

For Windows NT SP4, the TcpDelAckTicks path is:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\{NIC-id}\Parameters\Tcpip
TcpDelAckTicks=0 (Default=2, 0=disables nagling, 1-6=100-600 ms)

Notes:
Reportedly, the above gaming tweak (disabling nagle's algorithm) can reduce WoW (World of Warcraft) latency by almost half!
XP/2003 needs hotfix or SP2 for it to work (MS KB 815230)
Vista needs hotfix or SP1 for it to work (MS KB 935458)
Follow directions TO THE LETTER. Ask me for any questions you may have.

Number 2:
       
       TCP Optimizer. Latest TcpOptimzer
Follow the link, Download, Activate program, Click OPTIMAL SETTINGS and click APPLY. After clicking apply, click okay on the window that pops up. Then restart your computer and wa-la. Done. (For advanced users, you can set the MTU to 150 while playing Mabinogi, and that will greatly decrease your lag, be aware though, hyper text transfer protocol (http) connections cannot be used with a Maximum Transmissible Unit (MTU) size of less than 300.)


Number 3:

       Port forwarding. This is...kind of complicated, so I'll try to make it as simple as possible.

Step 1: Press the windows key + R to open the run command. Type "cmd" and press enter.



Then in the prompt that displays, type "ipconfig" without the quotes and press enter. You should see a list of adapters and various information.

 What matters here is the "Default Gateway". Enter the number that is displayed next to it into your browser URL.

(Windows XP) (Alternatively, click your wireless/LAN network icon next to system time bar, and click Support then click details. You should see several IP addresses. Type in each, one by one, until you find the correct IP.) Or open Command prompt and type ipconfig /all and type the IP address.

(Windows 7)


You're going to want to click your first adapter, e.g. in my case it's "Local Area Connection 2". Which brings up this window.

Then click details.

 You should see several IP addresses in the list of WINS, and IP address. Type in each, one by one, until you find the correct IP.) Or open Command prompt and type ipconfig /all and type the IP address.


Step 2: There should be a password window that pops up. These are (some) of the default user / password to try (When I type nothing in either space after / It means leave it blank.) If these do not work for you, google your router in google and look for the default password.
admin / nothing   ;   admin / admin    ;   nothing / admin    ;   nothing / nothing

Step 3 : You should be brought to your Router's main window. There should be a tab that says "ADVANCED" Or Applications. Click this. There then should be a side bar of different options to choose from. Click "Applications and Gaming" Or "Virtual server"

In this tab there should be text bars up top to type things in.

It should be thus :

NAME:       Private IP: ( IP you typed to router)  Protocol:


Client.exe                          (Insert IP here)               UDP Private/public port 11020

Number 4

 Taking Back 20% of your bandwidth
This is also commonly mistaken as being necessary, Vista only uses 20% of the bandwidth when the program that uses it is running, which is very rarely. If you still want to do so, here is instructions how to do it.

1. Open run.exe via the start menu under All Programs -> Accessories -> Run.exe. (Or press Windows key + R combination.)
2. Type Regedit into the box and press Enter.
3. 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.
4. Reboot your computer.

Number 5

Warning: Registry Edit!!
Use at your own risk, i will not take responsibility if you mess up your computer.  It is always advised that before making registry changes, you save your registry settings.


http://www.techmetica.com/howto/manage-irq-priority-in-windows-vista/


Most components directly attached to your motherboard - including PCI slots, IDE controllers, serial ports, the keyboard port, and even your motherboard's CMOS - have individual IRQs assigned to them. An interrupt request line, or IRQ, is a numbered hardware line over which a device can interrupt the normal flow of data to the processor, allowing the device to function.
Vista lets you prioritize one or more IRQs (which translate to one or more hardware devices), potentially improving the performance of those devices:
1) Start by opening the System Information utility (msinfo32.exe), and navigating to System Summary\Hardware Resources\IRQs to view the IRQs in use on your system, and the devices using them.
2) Next, open the Registry Editor, and navigate to HKEY_LOCAL_MACHINE\SYSTEM CurrentControlSet\Control\PriorityControl.
3) Create a new DWORD value in this key, and call it IRQ#Priority, where # is the IRQ of the device you wish to prioritize (e.g., IRQ13Priority for IRQ 13, which is your numeric processor).
4) Double-click the new value, and enter a number for its priority. Enter 1 for top priority, 2 for second, and so on. Make sure not to enter the same priority number for two entries, and keep it simple by experimenting with only one or two values at first.
5) Close the Registry Editor and reboot your computer when you're done.
Some users have gotten good results prioritizing IRQ 8 (for the system CMOS) and the IRQ corresponding to the video card (found in the first step).


Read more: http://www.techmetica.com/howto/manage-irq-priority-in-windows-vista/#ixzz1JHcuhXUp


Make sure you understand what's being said, or ask questions here, before changing anything.  Not limited strictly to vista.  On xp at least, uou can prioritize more than one IRQ as priority one, but having too many will possibly have negative effects on your pc. 


IRQ values vary from PC to PC so make sure you have the desired value first before assigning numbers.


Offline Statenisland

Re: Lag fix compilation
« Reply #1 on: May 10, 2009, 08:28:17 pm »
Nice compile
I smoke bud. I party.  I play online games. I work.

Offline Iesuok

Re: Lag fix compilation
« Reply #2 on: May 13, 2009, 03:16:52 pm »
You forgot to add TCPNoDelay :O

Offline MidnightGenius

Re: Lag fix compilation
« Reply #3 on: May 14, 2009, 02:01:58 pm »
How much does this decrease lag
It's an awful lot of work for if it doesn't do much...

adam

  • Guest
Re: Lag fix compilation
« Reply #4 on: May 14, 2009, 03:06:21 pm »
I live in the UK.

With those fixes, I play like I'm in the US, with a ping of around 160-170.

Offline Marck

  • "This is the way the world ends, not with a bang, but a whimper."
  • Administrator
  • Honored Member
  • ******
  • Posts: 3638
  • 20 credits
  • View Inventory
  • Send Money To Marck
  • Total upvotes: 199
Re: Lag fix compilation
« Reply #5 on: May 15, 2009, 06:59:26 am »
My ping is like... 115 at worst, 80 at best

Offline ComeClarity

  • SICK OF MABINOGI but will still post here in these forums just because i love these forums
  • Sr. Member
  • ****
  • Posts: 609
  • 388 credits
  • View Inventory
  • Send Money To ComeClarity
  • Total upvotes: 5
  • FUS RO DAH!!!
Re: Lag fix compilation
« Reply #6 on: June 18, 2009, 08:28:21 pm »
o_O My ping is like... 130 at worst, 115 at best
mines 49 at best XD

Offline Serif

Re: Lag fix compilation
« Reply #7 on: June 18, 2009, 10:16:33 pm »
nagels algorithm is what really helps.
it speeds up the game by about 100ms - 500ms.
Work smarter, not harder.

MeleeMarth

  • Guest
Re: Lag fix compilation
« Reply #8 on: June 26, 2009, 12:41:41 pm »
Port forwarding is different with each brand of router. portforward.com has guides to forward for just about any router brand out there. Just hit a random game, and replace the ports with Mabinogi's ports.

Offline logue

Re: Lag fix compilation
« Reply #9 on: July 21, 2009, 01:57:25 am »
Mabinogi official recommond MTU value is 597.
Did you change MTU value?

This will casting spell quickly and fix range attack bug.

Minka

  • Guest
Re: Lag fix compilation
« Reply #10 on: July 24, 2009, 08:01:27 pm »


Is this right?

Offline Marck

  • "This is the way the world ends, not with a bang, but a whimper."
  • Administrator
  • Honored Member
  • ******
  • Posts: 3638
  • 20 credits
  • View Inventory
  • Send Money To Marck
  • Total upvotes: 199
Re: Lag fix compilation
« Reply #11 on: July 25, 2009, 10:17:48 am »
Yes.

Add one to the Applications tab too, just to be sure.

That is, if you have one. xD

Offline Uzukamashi

Re: Lag fix compilation
« Reply #12 on: August 03, 2009, 10:24:59 am »
Can some1 post how to do this with veriozon fios o.e i get confused
i can get into my router but i get lost after there

Offline Acedhero

Re: Lag fix compilation
« Reply #13 on: August 08, 2009, 01:46:01 pm »
is this rite?
Enable :   
Name :  << Select Virtual   
IP Address :   
Protocol :  TCP UDP 
Private Port :   11020
Public Port :   11020
Schedule :  Always Never 
and wat am i missing ._.?

Offline Suren

Re: Lag fix compilation
« Reply #14 on: October 08, 2009, 06:38:48 pm »
can u help me with a linksys router???

Offline Anthony

Re: Lag fix compilation
« Reply #15 on: October 08, 2009, 07:06:13 pm »
Ill be glad to :D Wht do you need help with? Tell me your router model and i can get you a link to how to do it.

It is probably something like WRT54G
Quote from: Skai
Anthony is my Pimp 0_o

Quote from: Kevsprk
See yall on the homeslice biscuit yo skillet ma peepz.

Quote from: skitty
MM is full of trolls who are filled with intelligence whom can smell the mind numbing stupidity that reeks off the minds of the nubbles.

Offline Suren

Re: Lag fix compilation
« Reply #16 on: October 10, 2009, 09:52:12 am »
its the router by cisco broadband and wifi

Offline Anthony

Re: Lag fix compilation
« Reply #17 on: October 10, 2009, 11:29:12 am »
Im not sure what you asked but i need the model number, it should be on the bottom or side of the router.

Go here and it will tell you how to find the number. it will be the black one or whichever one you are using.

http://linksys.custhelp.com/cgi-bin/linksys.cfg/php/enduser/std_adp.php?p_faqid=3655#Routers%20and%20Access%20Points
Quote from: Skai
Anthony is my Pimp 0_o

Quote from: Kevsprk
See yall on the homeslice biscuit yo skillet ma peepz.

Quote from: skitty
MM is full of trolls who are filled with intelligence whom can smell the mind numbing stupidity that reeks off the minds of the nubbles.

Offline Suren

Re: Lag fix compilation
« Reply #18 on: October 11, 2009, 11:59:08 am »
 I  mean v3 hehe  :'(

Offline Amnesiax3

Re: Lag fix compilation
« Reply #19 on: December 14, 2009, 07:52:29 pm »
Can you post how to do it on a Motorola SBG900? it has a port start and port end. I don't get that

Offline Amnesiax3

Re: Lag fix compilation
« Reply #20 on: December 14, 2009, 07:53:32 pm »
Also what template?

Offline Motivator

Re: Lag fix compilation
« Reply #21 on: December 26, 2009, 04:07:18 pm »
Wow Thanks! This Helps Me lag a lot more less :D

BK-201

  • Guest
Re: Lag fix compilation
« Reply #22 on: January 14, 2010, 05:09:48 pm »
Nice compilation here, helps me a lot ^^ I heal really fast now too.

Offline thi_avatar

Re: Lag fix compilation
« Reply #23 on: January 16, 2010, 09:29:39 am »
new links to disable Nagle Algorithm, since that herbpig blog is invite only

for 2k/XP, scroll down to the "Gaming Tweak - Disable Nagle's algorithm" section:

http://www.speedguide.net/read_articles.php?id=158


for Vista, scroll down to the "Gaming Tweak - Disable Nagle's algorithm" section:

http://www.speedguide.net/read_articles.php?id=2574

I don't know if any of the other tweaks there affect Mabinogi.

As always, if you don't know what you're doing, please don't mess with your computer settings.

Offline Google

Re: Lag fix compilation
« Reply #24 on: January 17, 2010, 10:34:52 am »
wooo decreased my ms by alot thanks man
im a pvp hoar XD