Serious issue with tickcount() on Linux
#1

I recently discovered that something is wrong with tickcounts on my server, so I made a debug command:
Код:
cmd(debug,playerid,params[])
{
	gPlayerData[playerid][ACLastTick] = tickcount();
	SetTimerEx("CheckTicks",1000,0,"i", playerid);
	return 1;
}

forward CheckTicks(playerid);
public CheckTicks(playerid)
{
	format(gSString, sizeof(gSString), "%i", tickcount() - gPlayerData[playerid][ACLastTick]);
	SendClientMessage(playerid, COLOR_YELLOW, gSString);
}
and used it on homehosted (Win 7) and normal (Linux, at Volt) server.

Results on Win server were kinda normal (~1112 ticks), but on Linux it was showing ~150 ticks (140, 160, 120, etc, very inconsistent and always divisible by 10), raising with playercount (up to ~560 ticks) - definitely not normal value. Changing granularity didn't help at all.

I thought it's hosts' fault but they claim it's something with Linux build of SA:MP server. Could someone tell me what could be the problem here?
Reply


Messages In This Thread
Serious issue with tickcount() on Linux - by DiDok - 05.09.2012, 14:16
Re: Serious issue with tickcount() on Linux - by HB - 05.09.2012, 14:24
Re: Serious issue with tickcount() on Linux - by Lightning[SV] - 05.09.2012, 15:30
Re: Serious issue with tickcount() on Linux - by DiDok - 06.09.2012, 23:43

Forum Jump:


Users browsing this thread: 3 Guest(s)