04.02.2014, 05:06
Some code optimisations - https://sampforum.blast.hk/showthread.php?tid=57018
As mentioned above, the lag could be due to several reasons. If you use MySQL, are you using threaded queries, are there useless variables declared, is your mysql_debug() mode on, are there unnecessary loops or extra loops (use foreach) or are there huge enums like [MAX_PLAYERS][MAX_VEHICLES] which use (500 * 500) cells. As such no direct solution exists, but you can always use Zeex's performance profiler.
As mentioned above, the lag could be due to several reasons. If you use MySQL, are you using threaded queries, are there useless variables declared, is your mysql_debug() mode on, are there unnecessary loops or extra loops (use foreach) or are there huge enums like [MAX_PLAYERS][MAX_VEHICLES] which use (500 * 500) cells. As such no direct solution exists, but you can always use Zeex's performance profiler.