Raised This Month: $32 Target: $400
 8% 

[L4D2]Jerky gameplay on a 100 tick server (0 lerp)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KoMiKoZa
Senior Member
Join Date: Dec 2017
Location: Thy old times.
Old 12-27-2017 , 13:30   [L4D2]Jerky gameplay on a 100 tick server (0 lerp)
Reply With Quote #1

Update 2021: Follow the changes suggested by Lux or try MasterMe's settings.


Set nb_update_frequency to 0.01 to improve smoothness and hitreg on Common Infected. However, be warned that it's pretty demanding on server hardware, even more so if you have bigger hordes on yours. It also creates a variety of different issues for CI, but the value of frequency set to 0.01 seems to be optimal. If not, try experimenting. But remember that higher frequency may make things jerkier because sv_client_max_interp_ratio is set to 0 in the config.

After all's set up, it is night and day difference after default 30 tickrate servers.

OP hidden because outdated.
Spoiler

Last edited by KoMiKoZa; 06-19-2021 at 16:51.
KoMiKoZa is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 12-27-2017 , 15:12   Re: [L4D2]Jerky gameplay on a 100 tick server (0 lerp)
Reply With Quote #2

Choppy common infected is common on 100 tickrate sever. I’m on my phone but there are a few values that can help. Also setting your lerp lower will cause the same effect on stock server as well.

It could be that you are running out of resources. I would check the overall load on the machine.
__________________
Spirit_12 is offline
KoMiKoZa
Senior Member
Join Date: Dec 2017
Location: Thy old times.
Old 12-27-2017 , 15:23   Re: [L4D2]Jerky gameplay on a 100 tick server (0 lerp)
Reply With Quote #3

Quote:
Originally Posted by Spirit_12 View Post
Choppy common infected is common on 100 tickrate sever. I’m on my phone but there are a few values that can help. Also setting your lerp lower will cause the same effect on stock server as well.

It could be that you are running out of resources. I would check the overall load on the machine.
It's not common for me. All russian 100 tick servers are smooth/fluid in CI movement (hell, not just competetive, even COOP ones). Much easier to land hits on them and less crap like missing melee/shots not going through happen. And that all is on 0 lerp value with its ratio on 0 as well. I can send you the server IPs so you can check it yourself.

That's the point. Stock is 30, this is 100. It should behave differently.

It's barely loaded. So I just don't know.

I guess it wouldn't hurt if you posted those values. I can wait, not like I have a choice. : D
KoMiKoZa is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 12-27-2017 , 15:25   Re: [L4D2]Jerky gameplay on a 100 tick server (0 lerp)
Reply With Quote #4

Code:
//Server Rates
sm_cvar nb_update_frequency 0.01 // if you want to play on lerp of 10ms set this value to 0.01 (this will stop laggy zombies) or 0.0 to match server tickrate
sm_cvar net_splitpacket_maxrate 100000 //always match this to the server tick rate nether higher or clients will get loss math (tickrate * 1000)
sm_cvar net_splitrate 2 //also recommend putting this to 2 don't go higher than 2
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D

Last edited by Lux; 12-27-2017 at 15:27.
Lux is offline
KoMiKoZa
Senior Member
Join Date: Dec 2017
Location: Thy old times.
Old 12-27-2017 , 15:38   Re: [L4D2]Jerky gameplay on a 100 tick server (0 lerp)
Reply With Quote #5

Quote:
Originally Posted by Lux View Post
Code:
//Server Rates
sm_cvar nb_update_frequency 0.01 // if you want to play on lerp of 10ms set this value to 0.01 (this will stop laggy zombies) or 0.0 to match server tickrate
sm_cvar net_splitpacket_maxrate 100000 //always match this to the server tick rate nether higher or clients will get loss math (tickrate * 1000)
sm_cvar net_splitrate 2 //also recommend putting this to 2 don't go higher than 2
This fixed the problem. Thank you a lot.
KoMiKoZa is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 12-27-2017 , 22:52   Re: [L4D2]Jerky gameplay on a 100 tick server (0 lerp)
Reply With Quote #6

I think I remember enabling "sv_client_predict" will cause issues on clients who have average to high ping.
cravenge is offline
qwejax
New Member
Join Date: Apr 2019
Old 01-17-2020 , 04:20   Re: [L4D2]Jerky gameplay on a 100 tick server (0 lerp)
Reply With Quote #7

Quote:
Originally Posted by Lux View Post
Code:
//Server Rates
sm_cvar nb_update_frequency 0.01 // if you want to play on lerp of 10ms set this value to 0.01 (this will stop laggy zombies) or 0.0 to match server tickrate
was looking for 3 days for the problem with my zombies, they get stuck wherever he can and push each other when climbing over the fence \ wall, and this behavior bile just awful
the only plus is the command, that they did not twitch at low lerp
I do not recommend to use this command
https://youtu.be/I26hnQmrQEk
https://youtu.be/rniORU5IAUc
qwejax is offline
KoMiKoZa
Senior Member
Join Date: Dec 2017
Location: Thy old times.
Old 08-13-2020 , 11:29   Re: [L4D2]Jerky gameplay on a 100 tick server (0 lerp)
Reply With Quote #8

To finish this one once and for all.

The only cvar that has to be changed to fix common infected being janky is nb_update_frequency.

I've also updated the OP with best netcode settings that I've ever played.

Quote:
Originally Posted by qwejax View Post
was looking for 3 days for the problem with my zombies, they get stuck wherever he can and push each other when climbing over the fence \ wall, and this behavior bile just awful
the only plus is the command, that they did not twitch at low lerp
I do not recommend to use this command
https://youtu.be/I26hnQmrQEk
https://youtu.be/rniORU5IAUc
I had been trying to figure that one for a long long time. I did find a solution in the end.

The following cvars have to be tweaked in order to have commons running at nb_update_frequency 0.01 with minimal issues. I use these values on my server:

PHP Code:
sm_cvar z_max_neighbor_range 16 //def. 200 - how close can CI stack with each other

sm_cvar nb_friction_forward 0 //def. 3 - how often CI will try to lunge back 
Notice that I say "minimal" because the commons will still have troubles climbing over cars or small fences. I can't seem to fix that.

At the cost of that, however, you get much better hitreg on higher tickrates and smoother common infected.

Last edited by KoMiKoZa; 08-20-2020 at 11:50.
KoMiKoZa is offline
MasterMe
Member
Join Date: Mar 2010
Location: Netherlands
Old 10-07-2020 , 20:57   Re: [L4D2]Jerky gameplay on a 100 tick server (0 lerp)
Reply With Quote #9

Thanks a lot for posting all the updates and settings KoMiKoZa, just applied both net settings and the nb_update_frequency and it's really nice.
__________________
MasterMe is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 10-13-2020 , 05:40   Re: [L4D2]Jerky gameplay on a 100 tick server (0 lerp)
Reply With Quote #10

I guess you have no idea some of these settings do?
Quote:
Originally Posted by KoMiKoZa View Post
sm_cvar sv_alternateticks 1
sm_cvar sv_maxunlag 0.1
sm_cvar sv_minrate 100000
sm_cvar sv_maxrate 100000
sm_cvar sv_minupdaterate 100
sm_cvar sv_maxupdaterate 100
sm_cvar sv_mincmdrate 100
sm_cvar sv_maxcmdrate 100
sm_cvar net_minroutable 1000
sm_cvar net_maxroutable 1100
sm_cvar sv_client_min_interp_ratio 0
sm_cvar sv_client_max_interp_ratio 0
sm_cvar fps_max 0
sm_cvar net_maxcleartime 0.001
sm_cvar net_splitrate 4
sm_cvar net_splitpacket_maxrate 256000
sm_cvar sv_parallel_sendsnapshot 1
These settings will completely butcher the network and cause clients to get overflowed with packet splits if you are going way above MTU limit.



100tick settings.
Code:
sm_cvar sv_alternateticks 1 Kinda pointless
sm_cvar sv_maxunlag 0.5  // 500ms -> Maximum lag compensation in seconds default is 1.0, 0.5 i safe bet, anyone playing above 500ms latency will have shitty time anyway, but this is whatever you want it to be.
sm_cvar sv_minrate 100000 //don't really do anything with net_maxcleartime @ 0.0001
sm_cvar sv_maxrate 100000 //don't really do anything with net_maxcleartime @ 0.0001
sm_cvar sv_minupdaterate 100
sm_cvar sv_maxupdaterate 100
sm_cvar sv_mincmdrate 100
sm_cvar sv_maxcmdrate 100
sm_cvar net_minroutable 1000 //pointless sending clients huge amounts of pointless data and if you have network compression just wasting resources compessing shit anyway, leave it default @ 16.
sm_cvar net_maxroutable 1200 //default is 1200 should keep it that way unless your network provider's MTU limit is smaller.
sm_cvar sv_client_min_interp_ratio 0
sm_cvar sv_client_max_interp_ratio 0
sm_cvar fps_max 0
sm_cvar net_maxcleartime 0.001
sm_cvar net_splitrate 2 // 4 is asking for players to get dropped from the server when network is getting hammered with data being sent, 2 is the maximum if you not want to have catastrophic issues.
sm_cvar net_splitpacket_maxrate 100000 // I always say (tickrate * 1000) to be safe, however theoretical max limit should be (tickrate * 1200) if you go above can cause loss and full updates sent to clients leading to shitty time.

sm_cvar sv_parallel_sendsnapshot 1 // enabled by default and linux cannot change this at runtime like windows
Just wanted to post if you want maxminum performance that is stable, conditions may be different if you are running out of somthing e.g. CPU, upload bandwidth ect.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D

Last edited by Lux; 10-13-2020 at 06:02.
Lux is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode