Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
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.
Posts: 1,050
Threads: 153
Joined: Mar 2016
Reputation:
0
I use a single timer for everything just for the sake of optimizing stuff.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
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.
Posts: 1,050
Threads: 153
Joined: Mar 2016
Reputation:
0
What are things to keep in mind while optimizing a script?
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Basically just run the profiler plugin for 24 hours or so and optimize whatever has the highest self time.