31.12.2013, 10:03
As the tittle says, when someone on the server quits,crashes or gets kicked the server lags for about 3 seconds, what could cause that issue? Any help is appriciated.
You should use the Performance profiler and compile your mode with the -d3 flag
Than run your gamemode and join / disconnect sometime and check the log Afterwards you will know if it was SavePlayer, UnrentVehicle or just the 4 MAX_PLAYERS loops in OnPlayerDisconnect Either way you will need to rewrite that part of your code or delay it with a timer |