OnPlayerUpdate Optimize
#1

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

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

Do it take big space in the cpu? the 'OnPlayerUpdate' I got much 'If' in it
Reply
#4

Yes, i highly recommend you to put all your stuff on other public or just create one. you can use normal timers for that.
Reply
#5

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

So what you guys recommend me to do exactly?
Reply
#7

Read Cessils's topic, he has info about how to limit OPU.

https://sampforum.blast.hk/showthread.php?tid=220089
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)