Question
#1

solved
Reply
#2

No, it won't. If you used %= then it would assign the result but it would never just "reset" to zero. Yet I don't see the point. Just set a 30 second timer.
Reply
#3

I use a single timer for everything just for the sake of optimizing stuff.
Reply
#4

That's not optimizing. I would say on the contrary. The more code there is in a single block the more time it takes before the server can do another sync operation. It's better to have multiple timers with a few lines of code than one timer with a huge block of code. Also it doesn't improve readability in the slightest.
Reply
#5

What are things to keep in mind while optimizing a script?
Reply
#6

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
What are things to keep in mind while optimizing a script?
https://sampforum.blast.hk/showthread.php?tid=580289
https://sampforum.blast.hk/showthread.php?tid=583472
Reply
#7

Basically just run the profiler plugin for 24 hours or so and optimize whatever has the highest self time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)