Morate se registrovati na forum "Srpskog fronta" da bi videli postove. Hvala...

kako da podesim lag???

View previous topic View next topic Go down

kako da podesim lag???

Post by shaner on Mon Sep 07, 2009 10:01 pm

kako da podesim rateove i lag????


Posts : 1
Points : 1199203
Join date : 2009-09-07

View user profile

Back to top Go down

Evo odgoora za lag!

Post by | Eagle* on Wed Sep 09, 2009 6:56 pm

Step 1 - The firs step is that the server has "Realtime" priority.
Start the server, press CTRl + Alt + Del, click Processes, find hlds.exe in the list, and right click on it, Set Priority - Realtime.

- Step 2 - The second step is:
- Go o the hlds.exe folder (from where you have opened the server), make a shortcut to the hlds.exe, then you will find in the same folder another file "Shortcut to hlds". Right click on this one, press Proprieties, and in the first raw you have Target, and there yo have something like HDD:\location\hlds.exe .
Now add -console -game cstrike -pingboost 3 +sys_ticrate 1000 +heapsize 250000 +maxplayers 20 +map de_nuke.

- Step 3 - the third step is to install HL Booster

- Step 4 - Step 4 is for more quick change of the map:
- Enter the cstrike folder, where you have the installed the server , find the custom.hpk file and remove it for good.

- Step 5 - Can be used as a script for rates:
alias "dslow" "sv_minrate 2500;sv_maxrate 2500;sv_minupdaterate 5;sv_maxupdaterate 5;echo dead slow"
alias "vslow" "sv_minrate 3500;sv_maxrate 3500;sv_minupdaterate 13;sv_maxupdaterate 13;echo very slow"
alias "slow" "sv_minrate 3500;sv_maxrate 5000;sv_minupdaterate 14;sv_maxupdaterate 14;echo slow"
alias "norm" "sv_minrate 3500;sv_maxrate 7500;sv_minupdaterate 15;sv_maxupdaterate 15;echo normal"
alias "fast" "sv_minrate 3500;sv_maxrate 9999;sv_minupdaterate 20;sv_maxupdaterate 20;echo fast"
alias "vfast" "sv_minrate 3500;sv_maxrate 20000;sv_minupdaterate 20;sv_maxupdaterate 60;echo LAN fast"
alias "rates" "sv_minrate;sv_maxrate;sv_minupdaterate;sv_maxupdaterate"

Add the file server.cfg to the script, in the cstrike folder where you have installed the server.
Usage: After you have started the server, write in the console what setting you want, considering the type of internet connexion you have, and also considering the type of computer that you keep the server on. For exemple, if you have a server on lan, write in the console vfast, or if you have a server where you have players in the same network you can use fast or norm. You can acces this script by "rcon" considering the variation of the lag on the server. you should not have any setting about the rate in server.cfg, listenserver.cfg, game.cfg, settings.cfg, amx.cfg etc.

- Step 6 - It refers to some setings that you should add on the server.
- You have the following settings:
log off
sv_logbans 0
sv_logecho 0
sv_logfile 0
sv_log_onefile 0
mp_logmessages 0
mp_logdetail 0
sv_unlag 1
sv_maxunlag .1
fps_max 600

You shoul add these settings in server.cfg .

- Step 7 - It refers to some settings that you should use considering the type of internet connexion you have.
// Modem 56k //
rate 5000
sv_rate 5500
sv_cmdrate 40
sv_cmdbackup 2
sv_updaterate 45
mp_resend 2
sv_dlmax 40
mp_decals 50

// 128k //
rate 10000
sv_rate 10000
sv_cmdrate 60
sv_cmdbackup 3
mp_updaterate 60
sv_resend 2
sv_dlmax 100
mp_decals 100

// 256k //
rate 12000
sv_rate 12000
sv_cmdrate 101
sv_cmdbackup 4
sv_updaterate 101
sv_resend 3
mp_dlmax 256
mp_decals 100

// 512k //
rate 15000
sv_rate 15000
sv_cmdrate 80
sv_cmdbackup 4
mp_updaterate 45
sv_resend 3
mp_dlmax 400
mp_decals 100

// 1024k //
rate 20000
sv_rate 20000
sv_cmdrate 80
sv_cmdbackup 6
mp_updaterate 80
sv_resend 6
mp_dlmax 800
mp_decals 300

// 2048K //
rate 25000
sv_rate 25000
sv_cmdrate 101
sv_cmdbackup 6
sv_updaterate 101
sv_resend 6

// DSL High //
rate "12001.000521"
sv_rate "9999"
sv_latency "-21.000521"
sv_updaterate "160"
sv_cmdrate "40"
mp_resend "2"
mp_cmdbackup "2"
sv_dlmax "768"
ex_interp "0.01"
ex_extrapmax "10"

// DSL Low //
rate "9001.000521"
sv_rate "9999"
mp_latency "-51.000521"
mp_updaterate "67"
sv_cmdrate "40"
sv_resend "2.5"
mp_cmdbackup "51"
mp_dlmax "512"
ex_interp "0.05"
ex_extrapmax "4"
cl_dlmax 800
mp_decals 300

// qDSL //
rate "15001.000521"
cl_rate "9999"
cl_latency "-16.000521"
cl_updaterate "101"
cl_cmdrate "400"
cl_resend "1.5"
cl_cmdbackup "2"
cl_dlmax "1024"
ex_interp "0.01"
ex_extrapmax "10"

You should add these settings in server.cfg, but not all of them. Add only the ones you think you need!!!

- Step 8.
In step 8 you will learn some Windows settngs:
- Right click on My Computer, press Properties, click up on the Advanced, and in Performance, click Settings and do like in the image below:

- Step 9 - About the optimization of some processes, and how to disable the unuseful ones.
- Press the Start button, click Run... and write regedit, then press [+] from HKEY_LOCAL_MACHINE, than press [+] from SYSTEM, then press [+] from CurrentControlSet, then [+] from Control, than press [+] from Session Manager and then press on Memory Management. In the right you will have a list with some registers.
Double click DisablePagingExecutive and at Value data change the 0 with 1.
- In order to stop the unusefull processes:
Press Start, clik Run and write msconfig. A window will apear, click on Services and click the ones you do not need. Also, press Startup and click on those you think you do not need.

- Step 10 -
- Click on Start, press Run... and then write gpedit.msc. Under Computer Configuration press the [+] from Network, and then press QoS Packet Scheduler and you will have a lst in the right, where you can make some settings. Double click on Liit reservable bandwith, then mark Enabled and change rom 20% to 0% at the Bandwith limit. Then click Apply and OK.

- Step 11-
- Right click on the Desktop - Properties - Apperance - Effects. In this window, only the raw Hide underlined letters... should be marked.

-Step 12 -
- Click Start - Run and write Sigverifexe. Then press Start.

- Stept 13 -
- Go to Control Panel and then Administrative Tools - Services. Right click - stop on the following:
Application Management
Error Reporting
Distributed Link Tracking Client
Help and Support
Remote Registry Service
Windows Time
WMI Performance Adapter

- Step 14 -
- Go to Start - Run and write regedit. Then go to HKEY_LOCAL_MACHINE\SYSTEM -> CurrentControlSet -> Control -> Session Manager -> Memory Management -> PrefetchParameters. Then enter the EnabePrefetcher and set the value 3.

-Step 15 -
- Enter Start - Run and write regedit. Then go to HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -> Control -> PriorityControl. In the right press New - DWORD Value. Write IRQ8Priority. Then press Modify and put the value 1.

- Step 16 -
- Use the "TCP Optimizer" software in order to optimize the internet. It is a good software that I tested.

CAUTION! It is not mandatory to follow all the steps, follow only the ones you think you need.
I do not assume any risk in case you damage your pc or your server, even though I know that nothing can happen. But you can modify by mistake other things an you can blame me.

I will keep you informed with the new changes and I will add new steps. If you want to upload this guide to your own web site, first send me an email to check if I agree. | Eagle*

Posts : 47
Points : 1199757
Join date : 2009-09-06
Age : 27
Location : Beograd

View user profile

Back to top Go down

Evo i na nashem neshto okvirnije reshenje,ali ipak znachi:).

Post by | Eagle* on Wed Sep 09, 2009 7:09 pm


Ovo je brzina vašeg downloada u bajtovima / sekundi.
Ako je vaša brzina u kbita/s (kao 512k je zapravo 64kB/s),
onda sve što treba da uradite je da podelite vašu brzinu sa 8 i da je pomnožite sa 1024.

Na primer :

(512)64 / 8 = 8 kB/s (1 bajt = 8 bitova)
8 * 1024 = 8192 B/s (1 kbajt = 1024 bajtova)

Vas rate bi trebao da bude:

rate 8192

Treba da znate da nikada nećete downloadovati @8192, jer je to maksimalni teoretski limit.
Trebali bi biti realni i da uzmemo 90% od tog limita da dobijemo download brzinu koju bi ste imali na većini servera.

90% od 8192 = 8192 * 0.9 = 7372

rate 7372

To je otprilike to, i trebalo bi najbolje da radi ako imate 512k .


Ovo je vaša upload brzina u bajtovima / sekundi.

Ovo je kojom brzinom šaljete podatke na server.
Ali vaš upload nije iste brzine kao download,
pa morate da odradite par kalkulacija za "cl_rate" i onda za "rate".

Na primer :

Da zamislimo da imate ADSL, sa upload brzinom od 128k.
Ova brzina je u kbitima/s.

128 / 8 = 16 kB/s
16 * 1024 = 16384 B/s

Opet, nećete uploadovati tom brzinom, zapravo vaša brzina ce biti 90% od reklamne brzine.

16384 * 0.9 = 14746 b/s

Pa će vas cl_rate da bude:

cl_rate 14746


Ovo je zapravo koliko puta dobijate "obnovu" (update) podataka sa servera u sekundi.

Najveći paketi mogu da budu do 180 bajtova. (Paketi su delovi informacija koje dobijate).
Ako podelite vaš rate sa najvećim fajlom, dobićemo naš cl_updaterate.

Na primer :

7372 / 180 = 41

cl_updaterate 40

Ovde ne moramo da uzimamo 90% od updaterate-a, jer smo to uradili u kalkulacijama za rate.


Ovo je kao cl_updaterate, jedino ovo je koliko puta vi šaljete "obnovu" podataka na server.

Najveća veličina paketa koji vi (klient) šaljete na server je otprilike 30 bajtova.
Zato treba da podelimo cl_rate sa najvećim paketom koji možemo da pošaljemo.

Na primer :

14746 / 30 = ~491

Problem? Da, jer ne možemo da šaljemo 491 "obnovu" (update-a) u sekundi. Gotovo je nemoguće da server obradi sve te pakete.
"Half-Life" je zato ograničio cl_cmdrate na 100.

Ako izračunate da je cl_cmdrate veći od 100, podesite ga na 100 .

cl_cmdrate 100


Server na koji se konektujete ima maksimalne i minimalne rate-ove.
Šta to znači?
To znači da vaša računanja neće dobro raditi i imaćete zastoj i gubitak podataka (choke i loss).

Kako da podesite ovo?

-Treba da znate koliki je sv_maxrate na serveru

KGB Serveri - sv_maxrate 12000

Ako znate koji je sv_maxrate, možemo da podesimo naše rate-ove.

sv_maxrate je 12000

Ako je sv_maxrate 12000, naš rate bi isto trebalo da bude 12000
(ako je vaš rate manji od sv_maxrate-a, vi nemorate više da računate, vi imate najbolje rate-ove za vašu internet konekciju).

Ono što treba da uradimo je da promenimo naš cl_updaterate da bi izbegli zastoj podataka (choke).

Znači treba da izračunamo cl_updaterate na osnovu rate-a od 12000.

Na primer :

12000 / 180 = ~66

cl_updaterate 66

To će biti naš novi cl_updaterate.
Kada ste to uradili, vi ste izračunali najbolje moguće rate-ove za server na kojem igrate.
Sve što treba da uradite je da kucate u konzolu "cl_updaterate 66".

Ako i dalje imate problema sa zastojem i gubitkom podataka (choke i loss), smanjite vaš cl_updaterate i cl_cmdrate, ne vaš rate/cl_rate. | Eagle*

Posts : 47
Points : 1199757
Join date : 2009-09-06
Age : 27
Location : Beograd

View user profile

Back to top Go down

Re: kako da podesim lag???

Post by Sponsored content

Sponsored content

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum