SA-MP Forums Archive
Lagg? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Lagg? (/showthread.php?tid=185497)



Lagg? - Whizion - 24.10.2010

Will logging my chat lagg my server? Because people tend to write much and i don't know is it a good idea (but i really need it). So will it lagg or im just being paranoid?


Respuesta: Lagg? - The_Moddler - 24.10.2010

Lag, in what way, graphical or ping?


Re: Lagg? - Hal - 24.10.2010

it will not lag your server. Not to the point where its noticeable.

Unless you are using a really crappy file saving system it may lag.


Re: Lagg? - Whizion - 24.10.2010

Im using it like this:

pawn Код:
forward ChatLog(string[]); // At top.

public ChatLog(string[]) // Function.
{
    new entry[256];
    format(entry, sizeof(entry), "%s\r\n",string);
    new File:hFile;
    hFile = fopen("RPG/Logs/chat.log", io_append);
    fwrite(hFile, entry);
    fclose(hFile);
}

new string[256]; // Where i want to use.
format(string, sizeof(string), "........",variables,variables); // Format the string.
ChatLog(string); // And save.
So lagg or no lagg?


Re: Lagg? - Luis- - 24.10.2010

It should not lag with that system you are using, I use it and is does not lag my server


Respuesta: Lagg? - The_Moddler - 24.10.2010

Decrease your string to 129 and make it static.

0,00001ms faster.


Re: Respuesta: Lagg? - Whizion - 24.10.2010

Quote:
Originally Posted by The_Moddler
Посмотреть сообщение
Decrease your string to 129 and make it static.

0,00001ms faster.
Well i think i could live with 0,00001ms lagg.


Respuesta: Lagg? - The_Moddler - 24.10.2010

But seriously, decrease the string to 129.


Re: Lagg? - Whizion - 24.10.2010

I can't because a big string goes there, the chat + date/time and some more info about the player.