17.11.2010, 16:19
Is this server performance lag or framelag?
As in:
Server performance lag: The script 'freezes' for a second or two.
Framelag: The player freezes for a second or two.
Server performance lag can easily be detected by using a check of how long it took to complete the code with GetTickCount() and print():
As in:
Server performance lag: The script 'freezes' for a second or two.
Framelag: The player freezes for a second or two.
Server performance lag can easily be detected by using a check of how long it took to complete the code with GetTickCount() and print():
pawn Код:
new tc = GetTickCount();
new pRandom = random(sizeof(SFRandom));
SetPlayerPos(playerid,SFRandom[pRandom][0],SFRandom[pRandom][1],SFRandom[pRandom][2]);
printf("Ticks: %d", GetTickCount() - tc);