Profiler result's -Optimization mode
#3

I can get why you want to kick cheaters fast, but using OnPlayerUpdate is overkill.
This callback is called at least 30 times per second FOR EVERY PLAYER.
If you have 250 players online, you're executing OnPlayerUpdate 7500 times or more every second.

It won't hurt your server when you just transfer all that code to a 1-second timer.
Then that code runs 250 times per second, which is more than enough.

Optimization starts with clearing OnPlayerUpdate.
I never used that callback and I never will, because I can see no reason for any code that needs to run 30 times per second.

If someone cheats with a speed hack, kicking him within 30ms or 1 second won't make any difference, the cheater will be kicked before he can do more damage anyways.
He won't do that much extra damage in 1 second.
Reply


Messages In This Thread
Profiler result's -Optimization mode - by GospodinX - 28.02.2018, 10:21
Re: Profiler result's -Optimization mode - by GospodinX - 28.02.2018, 13:13
Re: Profiler result's -Optimization mode - by AmigaBlizzard - 08.06.2018, 18:36
Re: Profiler result's -Optimization mode - by Logic_ - 08.06.2018, 21:25
Re: Profiler result's -Optimization mode - by GospodinX - 21.10.2018, 15:34
Re: Profiler result's -Optimization mode - by GospodinX - 21.10.2018, 19:02

Forum Jump:


Users browsing this thread: 1 Guest(s)