Posts: 277
Threads: 40
Joined: Nov 2012
Reputation:
0
Hello!
If I added 10 seconds timer in the OnPlayerUpdate, and transfared everything from onplayerupdate to the timer will it help to optimize the server cpu?
Posts: 21
Threads: 1
Joined: Apr 2012
Reputation:
0
in onplayerupdate the client sends a lot of information to the server such as player position, shooting position, weapon etcc. you can't set a timer on it, it sends requests without stopping.
Posts: 277
Threads: 40
Joined: Nov 2012
Reputation:
0
Do it take big space in the cpu? the 'OnPlayerUpdate' I got much 'If' in it
Posts: 422
Threads: 107
Joined: Sep 2013
Reputation:
0
Yes, i highly recommend you to put all your stuff on other public or just create one. you can use normal timers for that.
Posts: 724
Threads: 62
Joined: Dec 2008
Reputation:
0
OPU is called several times every second, which would result in your server being spammed with timers every time a person's client sends an update.
Posts: 277
Threads: 40
Joined: Nov 2012
Reputation:
0
So what you guys recommend me to do exactly?