Advertisement
LukasCCB

[Tutorial] Fix Zombie/Player Lag

Jun 25th, 2016
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. 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 :)
  2.  
  3. Open your WarZ_Server.sln
  4.  
  5. file: obj_ServerPlayer.cpp
  6. Find:
  7. gKeepAliveReporter.SetStarted(true);
  8.  
  9. change:
  10. ::Sleep(10);        // limit to 100 FPS
  11.  
  12. ServerGame.cpp
  13. find:
  14. if(curTime > lastVisUpdateTime_ + 0.3f)
  15.  
  16. and change it to:
  17. if(curTime > lastVisUpdateTime_ + 10.0f)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement