[Tutorial] Fix Zombie/Player Lag @ Community Edition Release
Many people make a new thread, because the zombies/player are laggy, but there´s a solution already out! So may they look here before posting :)
Open your WarZ_Server.sln
file: obj_ServerPlayer.cpp
Find:
Code:
gKeepAliveReporter.SetStarted(true);
change:
Code:
::Sleep(10); // limit to 100 FPS
to
Code:
::Sleep(20); // limit to 100 FPS
ServerGame.cpp
find:
Code:
if(curTime > lastVisUpdateTime_ + 0.3f)
and change it to:
Code:
if(curTime > lastVisUpdateTime_ + 10.0f)
Thank you Yuri&Javaz :)
Credits: Yuri-BR; javaz97
Original post in help section: CLICK
Re: [Tutorial] Fix Zombie/Player Lag @ Community Edition Release
should learn the code fps lag = client side... not server side
Re: [Tutorial] Fix Zombie/Player Lag @ Community Edition Release
Quote:
Originally Posted by
jonnybravo
should learn the code fps lag = client side... not server side
Dont think he means FPS lag pretty sure he means it was updating to slow thus the other zombie / players in sight appeared to be lagging or rubberbanding abit.
(Unless I am completly wrong idk never tried the source)
Re: [Tutorial] Fix Zombie/Player Lag @ Community Edition Release
Yes if I recall correctly this is to do with lag created by the server not updating correctly.
Re: [Tutorial] Fix Zombie/Player Lag @ Community Edition Release
UNEXPECT , are you tested ?
Re: [Tutorial] Fix Zombie/Player Lag @ Community Edition Release
@jonnybravo how The Unknown already said, I mean the low packet flow of the server... @javaz97 Yeah, I´ve tested it and works very well. :)
Re: [Tutorial] Fix Zombie/Player Lag @ Community Edition Release
Re: [Tutorial] Fix Zombie/Player Lag @ Community Edition Release
Thanks @Yuri-BR @UNEXPECT it's working !
Re: [Tutorial] Fix Zombie/Player Lag @ Community Edition Release
work great, cpu decrease 20%
Re: [Tutorial] Fix Zombie/Player Lag @ Community Edition Release
Re: [Tutorial] Fix Zombie/Player Lag @ Community Edition Release
Re: [Tutorial] Fix Zombie/Player Lag @ Community Edition Release
So, I can see that instead of having 100 TICK servers, which is of course unnecessary we start having a 50 Tickrate gameserver, which is acceptable.
But what about the other thing, can you explain me what it does?
Re: [Tutorial] Fix Zombie/Player Lag @ Community Edition Release
cause the server isnt updating the zombies correctly
Re: [Tutorial] Fix Zombie/Player Lag @ Community Edition Release
And you know how to fix this?
- - - Updated - - -
And by the way, the players are lagging too.
Re: [Tutorial] Fix Zombie/Player Lag @ Community Edition Release
Follow this tutorial and it is fixed.