#1

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?
Reply
#2

Lag, in what way, graphical or ping?
Reply
#3

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.
Reply
#4

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?
Reply
#5

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

Decrease your string to 129 and make it static.

0,00001ms faster.
Reply
#7

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.
Reply
#8

But seriously, decrease the string to 129.
Reply
#9

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


Forum Jump:


Users browsing this thread: 1 Guest(s)