Slow Chat.. - 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: Slow Chat.. (
/showthread.php?tid=272632)
Slow Chat.. -
iJumbo - 29.07.2011
recently the chat of my server has become very slow to me im the server hosts and i sometimes reach up to 45 ping was usually at 18 .. what's the problem
Re: Slow Chat.. -
Godhimself - 29.07.2011
Large strings, bad code etc.
Re: Slow Chat.. -
iJumbo - 29.07.2011
only to host? and i dont change any code from normal to lag ..
Re: Slow Chat.. -
iJumbo - 29.07.2011
host = me ..
Re: Slow Chat.. -
Snipa - 29.07.2011
If you have a bunch of stuff in OnPlayerText, it might cause this.
Re: Slow Chat.. -
KeeDee - 29.07.2011
Maybe if you home hosted that's why.
Re: Slow Chat.. -
Kush - 29.07.2011
Quote:
Originally Posted by Snipa
If you have a bunch of stuff in OnPlayerText, it might cause this.
|
....? So what your saying is the OnPlayerText callback affects a server's capabilities and speed?
Re: Slow Chat.. -
Snipa - 29.07.2011
Quote:
Originally Posted by Kush
....? So what your saying is the OnPlayerText callback affects a server's capabilities and speed?
|
No, I'm saying that if there is a bunch of code in there, it might affect performance.
Would default OnPlayerText or OnPlayerText with 20 checks and a few loops perform better?
Re: Slow Chat.. -
Kush - 29.07.2011
Quote:
Originally Posted by Snipa
No, I'm saying that if there is a bunch of code in there, it might affect performance.
Would default OnPlayerText or OnPlayerText with 20 checks and a few loops perform better?
|
Hmm, I've seen various Godfather edits being hosted, and the players doesn't complain. And you must realize that that script must indeed have 'bad code'.
Re: Slow Chat.. -
dr.pepper - 29.07.2011
Does this happen to other players in your server? or just you.