Question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question (
/showthread.php?tid=633055)
Question -
StrikerZ - 24.04.2017
solved
Re: Question -
Vince - 24.04.2017
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.
Re: Question -
StrikerZ - 24.04.2017
I use a single timer for everything just for the sake of optimizing stuff.
Re: Question -
Vince - 24.04.2017
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.
Re: Question -
StrikerZ - 24.04.2017
What are things to keep in mind while optimizing a script?
Re: Question -
DarkSkull - 24.04.2017
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
Re: Question -
Vince - 24.04.2017
Basically just run the profiler plugin for 24 hours or so and optimize whatever has the highest self time.