[Help] Zombies and players lags
Can anyone else faced a similar problem? Previously, these lags were not. It is only in the new version of DNC. Prompt if you know what it is.
http://youtu.be/CT13gGFmMOE
http://i.imgur.com/u3oayGP.jpg
http://i.imgur.com/CYEUR7z.jpghttp://i.imgur.com/UQodX5x.jpg
Re: [Help] Zombies and players lags
this is a problem with packets :ott1:
- - - Updated - - -
and your server is not supporting a range of players and cause lag on the server
Re: [Help] Zombies and players lags
In the old source DNC and InvasionMMO this was not.
Please Yuri tell me how to fix it?
- - - Updated - - -
Found another post about this issue
http://forum.ragezone.com/f792/request-vps-1011578/
Re: [Help] Zombies and players lags
Quote:
Originally Posted by
AlexRedd
I do not know to fix it, because the aomsin, made several modifications, and never told me what was modified in packets
so I'm using the latest source, and do not have that problem :D
- - - Updated - - -
Try it
find
PHP Code:
// limit to 100 FPS
Set to
and
PHP Code:
if(curTime > lastVisUpdateTime_ +
to
PHP Code:
if(curTime > lastVisUpdateTime_ + 10
it will decrease cpu usage and can support 100+ player :D
- - - Updated - - -
3.7Ghz CPU can support max 250 players
2.3Ghz can support only 100 players
Re: [Help] Zombies and players lags
Thanks Yuri, I'll try your advice. Only now I can not check, there are no players on the server, tomorrow I will inform you about the result.
Re: [Help] Zombies and players lags
file: obj_ServerPlayer.cpp
Code:
BOOL obj_ServerPlayer::Update()
{
parent::Update();
const float timePassed = r3dGetFrameTime();
const float curTime = r3dGetTime();
// pereodically update network objects visibility
if(curTime > lastVisUpdateTime_ + 0.3f)
{
lastVisUpdateTime_ = r3dGetTime();
gServerLogic.UpdateNetObjVisData(this);
}
if(loadout_->Alive == 0)
{
return TRUE;
}
change 0.3f to 10.0f right ??
- - - Updated - - -
and file: ServerGame.cpp
Code:
r3dOutToLog("server main loop started\n");
r3dResetFrameTime();
gServerLogic.OnGameStart();
gKeepAliveReporter.SetStarted(true);
while(1)
{
::Sleep(20); // limit to 100 FPS default-10
r3dEndFrame();
r3dStartFrame();
//if(GetAsyncKeyState(VK_F1)&0x8000) r3dError("r3dError test");
//if(GetAsyncKeyState(VK_F2)&0x8000) r3d_assert(false && "r3d_Assert test");
gKeepAliveReporter.Tick(gServerLogic.curPlayers_);
gServerLogic.Tick();
gMasterServerLogic.Tick();
- - - Updated - - -
if(curTime > lastVisUpdateTime_ + 10) // double
or
if(curTime > lastVisUpdateTime_ + 10.0f) // float
- - - Updated - - -
thank Yuri-BR
- - - Updated - - -
i will testing...
Re: [Help] Zombies and players lags
helped me! Thank you Yuri!