Can that lag? - 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)
+--- Thread: Can that lag? (
/showthread.php?tid=452863)
Can that lag? -
Blackazur - 22.07.2013
~fixed~
Re: Can that lag? -
MP2 - 22.07.2013
How often are you calling them?
AW: Can that lag? -
Blackazur - 22.07.2013
1 time in OnPlayerDisconnect. is there a method to make it more ressourcefree?
Re: Can that lag? -
ThePhenix - 22.07.2013
It won't lag. Just if you call it below OnPlayerUpdate or maybe in a 1 second timer.
Re: Can that lag? -
ZeroTheScyther - 23.07.2013
Yeah I know he fixed it allready but I wanted to say that a 1sec timer uses less CPU than OnPlayerUpdate (I got a "realtime" save system and first time I used OnPlayerUpdate ... only me on the server and everything was slow and crappy. Then I used a 1sec timer and everything was fine. Also tryed the 1sec timer with 8 players on server and still no problem)
Quote:
Originally Posted by ThePhenix
It won't lag. Just if you call it below OnPlayerUpdate or maybe in a 1 second timer.
|