• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Slowness of execution
#5
There are a few techniques which I use whenever I want to test the efficiency of the script.

Firstly, I check the server tick-rate using GetServerTickRate(), it can be assumed as the FPS of the server just like FPS of a game, usually the tick-rate is around 200 when performing the best, by around + 15 this means around 185-200 range.

Now, you can run the profiler plugin for a while and put as much as load as possible, either using script to fake players or bots, depending on the result, you take an action. For example, you disable all the timer related code and then test the script with the same tick-rate method and re-write whatever code is necessary. Or disable something at all and then just re-do it completely differently. You may need to repeat this exercise a few times.

This includes but not limited to, changing timer-based code to use tick-count, or a single timer to be broken into many small timers (more timers doesn't mean more lag, get this over your mind). Maybe looking for code such as mysql queries etc...
  Reply


Messages In This Thread
Slowness of execution - by ViteSpirite - 2019-05-10, 03:41 PM
RE: Slowness of execution - by unix - 2019-05-12, 08:20 PM
RE: Slowness of execution - by ViteSpirite - 2019-05-12, 08:44 PM
RE: Slowness of execution - by Markski - 2019-05-13, 09:59 PM
RE: Slowness of execution - by Gravityfalls - 2019-05-14, 07:08 AM

Forum Jump: