Posts: 104
Threads: 36
Joined: Feb 2017
Reputation:
0
Hi guys, I've noticed that some players with slower internet desync without a decent reason, also I found out that the host isn't a problem for it.
Posts: 824
Threads: 6
Joined: Sep 2012
Reputation:
0
What's your question? If it's "why", you answered it yourself.
Posts: 104
Threads: 36
Joined: Feb 2017
Reputation:
0
The slow bandwidth shouldn't be the cause. I remember playing on LSRP with same speed of internet and having stable gameplay for 8hours+ without relogging/etc.
I was asking if anyone experienced similar things and what did he do to solve it.
Posts: 1,661
Threads: 47
Joined: May 2013
Reputation:
0
Revise your script.
Do you use a lot of timers, ticks, ..?
If so, there's your answer.
Also inefficient code on a large scale also causes this.
Posts: 104
Threads: 36
Joined: Feb 2017
Reputation:
0
I am using 3 timers in 3seconds period. One is called every 3000ms and it performs anticheat checks for each player, there's also one fast timer, called every 400ms that also does foreach checks, etc... What about memory? Will lowering MAX_PLAYERS and other array sizes make script more lightweight or it doesn't have anything to do with script performance?
Posts: 1,661
Threads: 47
Joined: May 2013
Reputation:
0
You can try it. You can run the performance plugin too but you should probably get some information on when the desync occurs so you can pinpoint it better.